From e637cd51681007849c3ee2a57579abe80e18b2ba Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Fri, 10 Apr 2026 14:27:34 +0800 Subject: [PATCH 1/3] generated from swagger:de8103ff8e94ea51c56bb22094ded5d2dfc45a6a --- .../azure-mgmt-datamigration/CHANGELOG.md | 4 + .../azure-mgmt-datamigration/MANIFEST.in | 8 +- .../azure-mgmt-datamigration/_metadata.json | 8 +- .../azure/__init__.py | 2 +- .../azure/mgmt/__init__.py | 2 +- .../mgmt/datamigration/_configuration.py | 21 +- .../_data_migration_management_client.py | 24 +- .../datamigration/_utils/serialization.py | 43 +- .../azure/mgmt/datamigration/_version.py | 2 +- .../mgmt/datamigration/aio/_configuration.py | 21 +- .../aio/_data_migration_management_client.py | 24 +- ..._mongo_to_cosmos_db_ru_mongo_operations.py | 25 +- ...ngo_to_cosmos_dbv_core_mongo_operations.py | 25 +- .../_database_migrations_sql_db_operations.py | 5 +- .../_database_migrations_sql_mi_operations.py | 5 +- .../_database_migrations_sql_vm_operations.py | 5 +- .../aio/operations/_files_operations.py | 40 +- .../_migration_services_operations.py | 40 +- .../aio/operations/_operations.py | 5 +- .../aio/operations/_projects_operations.py | 30 +- .../operations/_resource_skus_operations.py | 10 +- .../operations/_service_tasks_operations.py | 35 +- .../aio/operations/_services_operations.py | 65 +- .../_sql_migration_services_operations.py | 5 +- .../aio/operations/_tasks_operations.py | 40 +- .../aio/operations/_usages_operations.py | 10 +- .../mgmt/datamigration/models/_models_py3.py | 590 +- ..._mongo_to_cosmos_db_ru_mongo_operations.py | 33 +- ...ngo_to_cosmos_dbv_core_mongo_operations.py | 33 +- .../_database_migrations_sql_db_operations.py | 15 +- .../_database_migrations_sql_mi_operations.py | 15 +- .../_database_migrations_sql_vm_operations.py | 15 +- .../operations/_files_operations.py | 54 +- .../_migration_services_operations.py | 54 +- .../datamigration/operations/_operations.py | 7 +- .../operations/_projects_operations.py | 40 +- .../operations/_resource_skus_operations.py | 12 +- .../operations/_service_tasks_operations.py | 47 +- .../operations/_services_operations.py | 89 +- .../_sql_migration_services_operations.py | 27 +- .../operations/_tasks_operations.py | 54 +- .../operations/_usages_operations.py | 12 +- .../code_report_swagger.json | 57655 ++++++++++++++++ ...create_or_update_database_migration_max.py | 2 +- ...create_or_update_database_migration_min.py | 2 +- ...smos_db_mongo_delete_database_migration.py | 2 +- .../cosmos_db_mongo_get_database_migration.py | 2 +- ...b_mongo_get_database_migration_expanded.py | 2 +- ..._mongo_list_by_scope_database_migration.py | 2 +- .../create_or_update_migration_service_max.py | 2 +- .../create_or_update_migration_service_min.py | 2 +- ...ate_or_update_sql_migration_service_max.py | 2 +- ...ate_or_update_sql_migration_service_min.py | 2 +- .../delete_integration_runtime_node.py | 2 +- .../delete_migration_service.py | 2 +- .../delete_sql_migration_service.py | 2 +- .../files_create_or_update.py | 2 +- .../generated_samples/files_delete.py | 2 +- .../generated_samples/files_get.py | 2 +- .../generated_samples/files_list.py | 2 +- .../generated_samples/files_read.py | 2 +- .../generated_samples/files_read_write.py | 2 +- .../generated_samples/files_update.py | 2 +- .../get_migration_service.py | 2 +- .../get_monitor_data_sql_migration_service.py | 2 +- .../get_sql_migration_service.py | 2 +- .../list_auth_keys_sql_migration_service.py | 2 +- ...ist_by_resource_group_migration_service.py | 2 +- ...by_resource_group_sql_migration_service.py | 2 +- .../list_by_subscription_migration_service.py | 2 +- ...t_by_subscription_sql_migration_service.py | 2 +- .../list_migrations_by_migration_service.py | 2 +- ...ist_migrations_by_sql_migration_service.py | 2 +- .../generated_samples/list_operation.py | 2 +- .../projects_create_or_update.py | 2 +- .../generated_samples/projects_delete.py | 2 +- .../generated_samples/projects_get.py | 2 +- .../generated_samples/projects_list.py | 2 +- .../generated_samples/projects_update.py | 2 +- .../regen_auth_keys_sql_migration_service.py | 2 +- .../resource_skus_list_skus.py | 2 +- .../generated_samples/service_tasks_cancel.py | 2 +- .../service_tasks_create_or_update.py | 2 +- .../generated_samples/service_tasks_delete.py | 2 +- .../generated_samples/service_tasks_get.py | 2 +- .../generated_samples/service_tasks_list.py | 2 +- .../generated_samples/service_tasks_update.py | 2 +- ...rvices_check_children_name_availability.py | 2 +- .../services_check_name_availability.py | 2 +- .../services_check_status.py | 2 +- .../services_create_or_update.py | 2 +- .../generated_samples/services_delete.py | 2 +- .../generated_samples/services_get.py | 2 +- .../generated_samples/services_list.py | 2 +- .../services_list_by_resource_group.py | 2 +- .../generated_samples/services_list_skus.py | 2 +- .../generated_samples/services_start.py | 2 +- .../generated_samples/services_stop.py | 2 +- .../generated_samples/services_update.py | 2 +- .../sql_db_cancel_database_migration.py | 2 +- ...create_or_update_database_migration_max.py | 3 +- ...create_or_update_database_migration_min.py | 3 +- .../sql_db_delete_database_migration.py | 2 +- .../sql_db_get_database_migration.py | 2 +- .../sql_db_get_database_migration_expanded.py | 2 +- .../sql_db_retry_database_migration.py | 2 +- .../sql_mi_cancel_database_migration.py | 2 +- ...atabase_migration_blob_managed_identity.py | 3 +- ...create_or_update_database_migration_max.py | 3 +- ...create_or_update_database_migration_min.py | 3 +- .../sql_mi_cutover_database_migration.py | 2 +- .../sql_mi_delete_database_migration.py | 2 +- .../sql_mi_get_database_migration.py | 2 +- .../sql_mi_get_database_migration_expanded.py | 2 +- .../sql_vm_cancel_database_migration.py | 2 +- ...create_or_update_database_migration_max.py | 3 +- ...create_or_update_database_migration_min.py | 3 +- .../sql_vm_cutover_database_migration.py | 2 +- .../sql_vm_delete_database_migration.py | 2 +- .../sql_vm_get_database_migration.py | 2 +- .../sql_vm_get_database_migration_expanded.py | 2 +- .../generated_samples/tasks_cancel.py | 2 +- .../generated_samples/tasks_command.py | 2 +- .../tasks_create_or_update.py | 2 +- .../generated_samples/tasks_delete.py | 2 +- .../generated_samples/tasks_get.py | 2 +- .../generated_samples/tasks_list.py | 2 +- .../generated_samples/tasks_update.py | 2 +- .../update_migration_service.py | 2 +- .../update_sql_migration_service.py | 2 +- .../generated_samples/usages_list.py | 2 +- ..._mongo_to_cosmos_db_ru_mongo_operations.py | 8 +- ..._to_cosmos_db_ru_mongo_operations_async.py | 8 +- ...ngo_to_cosmos_dbv_core_mongo_operations.py | 8 +- ..._cosmos_dbv_core_mongo_operations_async.py | 8 +- ...t_database_migrations_sql_db_operations.py | 11 +- ...base_migrations_sql_db_operations_async.py | 11 +- ...t_database_migrations_sql_mi_operations.py | 11 +- ...base_migrations_sql_mi_operations_async.py | 11 +- ...t_database_migrations_sql_vm_operations.py | 11 +- ...base_migrations_sql_vm_operations_async.py | 11 +- ...a_migration_management_files_operations.py | 14 +- ...ation_management_files_operations_async.py | 14 +- ...anagement_migration_services_operations.py | 14 +- ...ent_migration_services_operations_async.py | 14 +- ...st_data_migration_management_operations.py | 2 +- ...a_migration_management_operations_async.py | 2 +- ...igration_management_projects_operations.py | 10 +- ...on_management_projects_operations_async.py | 10 +- ...ion_management_resource_skus_operations.py | 2 +- ...nagement_resource_skus_operations_async.py | 2 +- ...ion_management_service_tasks_operations.py | 12 +- ...nagement_service_tasks_operations_async.py | 12 +- ...igration_management_services_operations.py | 24 +- ...on_management_services_operations_async.py | 24 +- ...ement_sql_migration_services_operations.py | 22 +- ...sql_migration_services_operations_async.py | 22 +- ...a_migration_management_tasks_operations.py | 14 +- ...ation_management_tasks_operations_async.py | 14 +- ..._migration_management_usages_operations.py | 2 +- ...tion_management_usages_operations_async.py | 2 +- .../azure-mgmt-datamigration/pyproject.toml | 77 +- .../azure-mgmt-datamigration/setup.py | 83 - 163 files changed, 59023 insertions(+), 906 deletions(-) create mode 100644 sdk/datamigration/azure-mgmt-datamigration/code_report_swagger.json delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/setup.py diff --git a/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md b/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md index f10368f6f18c..2e27bce37893 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md +++ b/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 10.2.0b1 (2026-04-10) + +skip changelog generation + ## 10.1.0 (2025-09-22) ### Features Added diff --git a/sdk/datamigration/azure-mgmt-datamigration/MANIFEST.in b/sdk/datamigration/azure-mgmt-datamigration/MANIFEST.in index 42d5b680d6dc..c8a9f0b299c2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/MANIFEST.in +++ b/sdk/datamigration/azure-mgmt-datamigration/MANIFEST.in @@ -1,7 +1,7 @@ -recursive-include tests *.py *.json -recursive-include samples *.py *.md include *.md -include azure/__init__.py -include azure/mgmt/__init__.py include LICENSE include azure/mgmt/datamigration/py.typed +recursive-include tests *.py +recursive-include samples *.py *.md +include azure/__init__.py +include azure/mgmt/__init__.py diff --git a/sdk/datamigration/azure-mgmt-datamigration/_metadata.json b/sdk/datamigration/azure-mgmt-datamigration/_metadata.json index 987e69c05c78..2f332fac6ed8 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/_metadata.json +++ b/sdk/datamigration/azure-mgmt-datamigration/_metadata.json @@ -1,11 +1,11 @@ { - "commit": "4bf96d0b0334d1f2e95205ca8f0d7495f7db2f0f", + "commit": "de8103ff8e94ea51c56bb22094ded5d2dfc45a6a", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ - "@autorest/python@6.38.2", + "@autorest/python@6.50.0", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/datamigration/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --keep-setup-py=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2025-06 --use=@autorest/python@6.38.2 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/datamigration/resource-manager/readme.md" + "autorest_command": "autorest specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/v-chenjiang/spec/worktrees/sdk-azure-mgmt-datamigration/sdk --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "readme": "specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/readme.md" } \ No newline at end of file diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/__init__.py index 8db66d3d0f0f..d55ccad1f573 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/__init__.py @@ -1 +1 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/__init__.py index 8db66d3d0f0f..d55ccad1f573 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/__init__.py @@ -1 +1 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py index 729c0cc670f0..b044e819b12a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy @@ -14,6 +14,7 @@ from ._version import VERSION if TYPE_CHECKING: + from azure.core import AzureClouds from azure.core.credentials import TokenCredential @@ -27,13 +28,22 @@ class DataMigrationManagementClientConfiguration: # pylint: disable=too-many-in :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Subscription ID that identifies an Azure subscription. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2025-06-30". Note that overriding this - default value may result in unsupported behavior. + :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :type cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str """ - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2025-06-30") + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + cloud_setting: Optional["AzureClouds"] = None, + **kwargs: Any + ) -> None: + api_version: str = kwargs.pop("api_version", "2025-09-01-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -42,6 +52,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs self.credential = credential self.subscription_id = subscription_id + self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-datamigration/{}".format(VERSION)) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py index 4b9a39178a5c..45d30b555dba 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py @@ -39,6 +39,7 @@ ) if TYPE_CHECKING: + from azure.core import AzureClouds from azure.core.credentials import TokenCredential @@ -89,23 +90,36 @@ class DataMigrationManagementClient: # pylint: disable=too-many-instance-attrib :type subscription_id: str :param base_url: Service URL. Default value is None. :type base_url: str - :keyword api_version: Api Version. Default value is "2025-06-30". Note that overriding this - default value may result in unsupported behavior. + :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :paramtype cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( - self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any + self, + credential: "TokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + *, + cloud_setting: Optional["AzureClouds"] = None, + **kwargs: Any ) -> None: - _cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore + _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) self._config = DataMigrationManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs + credential=credential, + subscription_id=subscription_id, + cloud_setting=cloud_setting, + credential_scopes=credential_scopes, + **kwargs ) _policies = kwargs.pop("policies", None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py index f5187701d7be..6da830e0cf4a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py @@ -21,7 +21,6 @@ import sys import codecs from typing import ( - Dict, Any, cast, Optional, @@ -31,7 +30,6 @@ Mapping, Callable, MutableMapping, - List, ) try: @@ -229,12 +227,12 @@ class Model: serialization and deserialization. """ - _subtype_map: Dict[str, Dict[str, Any]] = {} - _attribute_map: Dict[str, Dict[str, Any]] = {} - _validation: Dict[str, Dict[str, Any]] = {} + _subtype_map: dict[str, dict[str, Any]] = {} + _attribute_map: dict[str, dict[str, Any]] = {} + _validation: dict[str, dict[str, Any]] = {} def __init__(self, **kwargs: Any) -> None: - self.additional_properties: Optional[Dict[str, Any]] = {} + self.additional_properties: Optional[dict[str, Any]] = {} for k in kwargs: # pylint: disable=consider-using-dict-items 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__) @@ -311,7 +309,7 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: def as_dict( self, keep_readonly: bool = True, - key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + key_transformer: Callable[[str, dict[str, Any], Any], Any] = attribute_transformer, **kwargs: Any ) -> JSON: """Return a dict that can be serialized using json.dump. @@ -380,7 +378,7 @@ def deserialize(cls, data: Any, content_type: Optional[str] = None) -> Self: def from_dict( cls, data: Any, - key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None, + key_extractors: Optional[Callable[[str, dict[str, Any], Any], Any]] = None, content_type: Optional[str] = None, ) -> Self: """Parse a dict using given key extractor return a model. @@ -414,7 +412,7 @@ def _flatten_subtype(cls, key, objects): return {} result = dict(cls._subtype_map[key]) for valuetype in cls._subtype_map[key].values(): - result.update(objects[valuetype]._flatten_subtype(key, objects)) # pylint: disable=protected-access + result |= objects[valuetype]._flatten_subtype(key, objects) # pylint: disable=protected-access return result @classmethod @@ -528,7 +526,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies: Dict[str, type] = dict(classes) if classes else {} + self.dependencies: dict[str, type] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -579,7 +577,7 @@ def _serialize( # pylint: disable=too-many-nested-blocks, too-many-branches, to if attr_name == "additional_properties" and attr_desc["key"] == "": if target_obj.additional_properties is not None: - serialized.update(target_obj.additional_properties) + serialized |= target_obj.additional_properties continue try: @@ -789,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs): # If dependencies is empty, try with current data class # It has to be a subclass of Enum anyway - enum_type = self.dependencies.get(data_type, data.__class__) + enum_type = self.dependencies.get(data_type, cast(type, data.__class__)) if issubclass(enum_type, Enum): return Serializer.serialize_enum(data, enum_obj=enum_type) @@ -823,13 +821,20 @@ def serialize_basic(cls, data, data_type, **kwargs): :param str data_type: Type of object in the iterable. :rtype: str, int, float, bool :return: serialized object + :raises TypeError: raise if data_type is not one of str, int, float, bool. """ custom_serializer = cls._get_custom_serializers(data_type, **kwargs) if custom_serializer: return custom_serializer(data) if data_type == "str": return cls.serialize_unicode(data) - return eval(data_type)(data) # nosec # pylint: disable=eval-used + if data_type == "int": + return int(data) + if data_type == "float": + return float(data) + if data_type == "bool": + return bool(data) + raise TypeError("Unknown basic data type: {}".format(data_type)) @classmethod def serialize_unicode(cls, data): @@ -1184,7 +1189,7 @@ def rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argumen while "." in key: # Need the cast, as for some reasons "split" is typed as list[str | Any] - dict_keys = cast(List[str], _FLATTEN.split(key)) + dict_keys = cast(list[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1386,7 +1391,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None: "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies: Dict[str, type] = dict(classes) if classes else {} + self.dependencies: dict[str, type] = 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 @@ -1759,7 +1764,7 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return :param str data_type: deserialization data type. :return: Deserialized basic type. :rtype: str, int, float or bool - :raises TypeError: if string format is not valid. + :raises TypeError: if string format is not valid or data_type is not one of str, int, float, bool. """ # If we're here, data is supposed to be a basic type. # If it's still an XML node, take the text @@ -1785,7 +1790,11 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return if data_type == "str": return self.deserialize_unicode(attr) - return eval(data_type)(attr) # nosec # pylint: disable=eval-used + if data_type == "int": + return int(attr) + if data_type == "float": + return float(attr) + raise TypeError("Unknown basic data type: {}".format(data_type)) @staticmethod def deserialize_unicode(data): 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 c1257f7f4e11..a1e5cf8bc16e 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.0" +VERSION = "10.2.0b1" diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py index c5cb5ecac662..5acb53c90da4 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, TYPE_CHECKING +from typing import Any, Optional, TYPE_CHECKING from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy @@ -14,6 +14,7 @@ from .._version import VERSION if TYPE_CHECKING: + from azure.core import AzureClouds from azure.core.credentials_async import AsyncTokenCredential @@ -27,13 +28,22 @@ class DataMigrationManagementClientConfiguration: # pylint: disable=too-many-in :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Subscription ID that identifies an Azure subscription. Required. :type subscription_id: str - :keyword api_version: Api Version. Default value is "2025-06-30". Note that overriding this - default value may result in unsupported behavior. + :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :type cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str """ - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2025-06-30") + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + cloud_setting: Optional["AzureClouds"] = None, + **kwargs: Any + ) -> None: + api_version: str = kwargs.pop("api_version", "2025-09-01-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") @@ -42,6 +52,7 @@ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **k self.credential = credential self.subscription_id = subscription_id + self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-datamigration/{}".format(VERSION)) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py index 8ceaddd9e842..491251cf8bef 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py @@ -39,6 +39,7 @@ ) if TYPE_CHECKING: + from azure.core import AzureClouds from azure.core.credentials_async import AsyncTokenCredential @@ -90,23 +91,36 @@ class DataMigrationManagementClient: # pylint: disable=too-many-instance-attrib :type subscription_id: str :param base_url: Service URL. Default value is None. :type base_url: str - :keyword api_version: Api Version. Default value is "2025-06-30". Note that overriding this - default value may result in unsupported behavior. + :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is + None. + :paramtype cloud_setting: ~azure.core.AzureClouds + :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( - self, credential: "AsyncTokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any + self, + credential: "AsyncTokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + *, + cloud_setting: Optional["AzureClouds"] = None, + **kwargs: Any ) -> None: - _cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore + _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: base_url = _endpoints["resource_manager"] credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"]) self._config = DataMigrationManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs + credential=credential, + subscription_id=subscription_id, + cloud_setting=cloud_setting, + credential_scopes=credential_scopes, + **kwargs ) _policies = kwargs.pop("policies", None) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py index af02d5143d5e..10ecafeb2d79 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -42,7 +42,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class DatabaseMigrationsMongoToCosmosDbRUMongoOperations: # pylint: disable=name-too-long @@ -117,7 +118,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) @@ -186,7 +190,10 @@ async def _create_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -383,7 +390,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -543,7 +553,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py index 5d731f1946b4..04bcd3e5cdd6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -42,7 +42,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations: # pylint: disable=name-too-long @@ -117,7 +118,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) @@ -186,7 +190,10 @@ async def _create_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -383,7 +390,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -543,7 +553,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py index d11521108b0b..10b5f3b8bafd 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload from azure.core import AsyncPipelineClient from azure.core.exceptions import ( @@ -40,7 +40,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class DatabaseMigrationsSqlDbOperations: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py index ec7c4554f45f..6e2ae8a8fe02 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload from azure.core import AsyncPipelineClient from azure.core.exceptions import ( @@ -40,7 +40,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class DatabaseMigrationsSqlMiOperations: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py index 356111576a06..625feaef1605 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload from azure.core import AsyncPipelineClient from azure.core.exceptions import ( @@ -40,7 +40,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class DatabaseMigrationsSqlVmOperations: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py index 5e74590cba57..3f0668bed24f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -41,7 +41,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class FilesOperations: @@ -147,7 +148,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -210,7 +214,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) @@ -364,7 +371,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) @@ -429,7 +439,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -579,7 +592,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) @@ -645,7 +661,10 @@ async def read( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) @@ -710,7 +729,10 @@ async def read_write( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py index 3c9c5e6fbb69..0bab2c19bd61 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -45,7 +45,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class MigrationServicesOperations: @@ -117,7 +118,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("MigrationService", pipeline_response.http_response) @@ -184,7 +188,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -361,7 +368,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -487,7 +497,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -702,7 +715,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -778,7 +794,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -864,7 +883,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py index 326e9f75f0eb..102f1d7f45d7 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Dict, Optional, TypeVar +from typing import Any, Callable, Optional, TypeVar import urllib.parse from azure.core import AsyncPipelineClient @@ -31,7 +31,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class Operations: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py index 6ffc3517dbfd..3eeba071aeaa 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -39,7 +39,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class ProjectsOperations: @@ -140,7 +141,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -284,7 +288,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Project", pipeline_response.http_response) @@ -345,7 +352,10 @@ async def get(self, group_name: str, service_name: str, project_name: str, **kwa if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Project", pipeline_response.http_response) @@ -417,7 +427,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -560,7 +573,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Project", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py index a562717a1d30..e3e425c8810a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Dict, Optional, TypeVar +from typing import Any, Callable, Optional, TypeVar import urllib.parse from azure.core import AsyncPipelineClient @@ -31,7 +31,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class ResourceSkusOperations: @@ -125,7 +126,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py index 41e479fa92aa..39ce3c95e443 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -40,7 +40,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class ServiceTasksOperations: @@ -148,7 +149,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -298,7 +302,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -364,7 +371,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -437,7 +447,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -583,7 +596,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -644,7 +660,10 @@ async def cancel(self, group_name: str, service_name: str, task_name: str, **kwa if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py index 7c386c311755..7769494f060f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -51,7 +51,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class ServicesOperations: @@ -132,7 +133,10 @@ async def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -343,7 +347,10 @@ async def get(self, group_name: str, service_name: str, **kwargs: Any) -> _model if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) @@ -395,7 +402,10 @@ async def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -523,7 +533,10 @@ async def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -725,7 +738,10 @@ async def check_status( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DataMigrationServiceStatusResponse", pipeline_response.http_response) @@ -774,7 +790,10 @@ async def _start_initial(self, group_name: str, service_name: str, **kwargs: Any except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -879,7 +898,10 @@ async def _stop_initial(self, group_name: str, service_name: str, **kwargs: Any) except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -1025,7 +1047,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1156,7 +1181,10 @@ async def check_children_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) @@ -1242,7 +1270,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1322,7 +1353,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1435,7 +1469,10 @@ async def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py index 227b26df289e..7b734df9143c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -50,7 +50,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class SqlMigrationServicesOperations: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py index ce6efbb954d1..f40fa732f8f3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -41,7 +41,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class TasksOperations: @@ -152,7 +153,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -312,7 +316,10 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -387,7 +394,10 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -463,7 +473,10 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -619,7 +632,10 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -685,7 +701,10 @@ async def cancel( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -842,7 +861,10 @@ async def command( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CommandProperties", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py index e30f28cfd472..f3cf6a9b03f9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Dict, Optional, TypeVar +from typing import Any, Callable, Optional, TypeVar import urllib.parse from azure.core import AsyncPipelineClient @@ -31,7 +31,8 @@ from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +List = list class UsagesOperations: @@ -129,7 +130,10 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response 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 c2c46c252e9d..e55e5360f708 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 @@ -9,7 +9,7 @@ from collections.abc import MutableMapping import datetime -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union +from typing import Any, Optional, TYPE_CHECKING, Union from .._utils import serialization as _serialization @@ -430,7 +430,7 @@ def __init__( last_lsn: Optional[str] = None, last_modified_time: Optional[datetime.datetime] = None, backup_type: Optional[Union[str, "_models.BackupType"]] = None, - list_of_backup_files: Optional[List["_models.BackupFileInfo"]] = None, + list_of_backup_files: Optional[list["_models.BackupFileInfo"]] = None, database_name: Optional[str] = None, backup_start_date: Optional[datetime.datetime] = None, backup_finished_date: Optional[datetime.datetime] = None, @@ -541,7 +541,7 @@ def __init__(self, *, installed_driver: Optional["_models.OracleOCIDriverInfo"] """ super().__init__(**kwargs) self.installed_driver = installed_driver - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ProjectTaskProperties(_serialization.Model): @@ -665,16 +665,16 @@ class ProjectTaskProperties(_serialization.Model): } } - def __init__(self, *, client_data: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + 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] """ super().__init__(**kwargs) self.task_type: Optional[str] = None - self.errors: Optional[List["_models.ODataError"]] = None + self.errors: Optional[list["_models.ODataError"]] = None self.state: Optional[Union[str, "_models.TaskState"]] = None - self.commands: Optional[List["_models.CommandProperties"]] = None + self.commands: Optional[list["_models.CommandProperties"]] = None self.client_data = client_data @@ -740,7 +740,7 @@ class CheckOCIDriverTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.CheckOCIDriverTaskInput"] = None, **kwargs: Any ) -> None: @@ -753,7 +753,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Service.Check.OCI" self.input = input - self.output: Optional[List["_models.CheckOCIDriverTaskOutput"]] = None + self.output: Optional[list["_models.CheckOCIDriverTaskOutput"]] = None class CommandProperties(_serialization.Model): @@ -804,7 +804,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.command_type: Optional[str] = None - self.errors: Optional[List["_models.ODataError"]] = None + self.errors: Optional[list["_models.ODataError"]] = None self.state: Optional[Union[str, "_models.CommandState"]] = None @@ -922,7 +922,7 @@ class ConnectToMongoDbTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MongoDbConnectionInfo"] = None, **kwargs: Any ) -> None: @@ -935,7 +935,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Connect.MongoDb" self.input = input - self.output: Optional[List["_models.MongoDbClusterInfo"]] = None + self.output: Optional[list["_models.MongoDbClusterInfo"]] = None class ConnectToSourceMySqlTaskInput(_serialization.Model): @@ -1060,7 +1060,7 @@ class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToSourceMySqlTaskInput"] = None, **kwargs: Any ) -> None: @@ -1073,7 +1073,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToSource.MySql" self.input = input - self.output: Optional[List["_models.ConnectToSourceNonSqlTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToSourceNonSqlTaskOutput"]] = None class ConnectToSourceNonSqlTaskOutput(_serialization.Model): @@ -1115,8 +1115,8 @@ def __init__(self, **kwargs: Any) -> None: self.id: Optional[str] = None self.source_server_brand_version: Optional[str] = None self.server_properties: Optional["_models.ServerProperties"] = None - self.databases: Optional[List[str]] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.databases: Optional[list[str]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToSourceOracleSyncTaskInput(_serialization.Model): @@ -1178,9 +1178,9 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.source_server_version: Optional[str] = None - self.databases: Optional[List[str]] = None + self.databases: Optional[list[str]] = None self.source_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToSourceOracleSyncTaskProperties(ProjectTaskProperties): @@ -1245,7 +1245,7 @@ class ConnectToSourceOracleSyncTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToSourceOracleSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -1258,7 +1258,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToSource.Oracle.Sync" self.input = input - self.output: Optional[List["_models.ConnectToSourceOracleSyncTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToSourceOracleSyncTaskOutput"]] = None class ConnectToSourcePostgreSqlSyncTaskInput(_serialization.Model): @@ -1325,9 +1325,9 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.source_server_version: Optional[str] = None - self.databases: Optional[List[str]] = None + self.databases: Optional[list[str]] = None self.source_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -1393,7 +1393,7 @@ class ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): # pyl def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToSourcePostgreSqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -1406,7 +1406,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToSource.PostgreSql.Sync" self.input = input - self.output: Optional[List["_models.ConnectToSourcePostgreSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToSourcePostgreSqlSyncTaskOutput"]] = None class ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -1472,7 +1472,7 @@ class ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): # pyli def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, **kwargs: Any ) -> None: @@ -1485,7 +1485,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToSource.SqlServer.Sync" self.input = input - self.output: Optional[List["_models.ConnectToSourceSqlServerTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToSourceSqlServerTaskOutput"]] = None class ConnectToSourceSqlServerTaskInput(_serialization.Model): @@ -1687,7 +1687,7 @@ def __init__(self, **kwargs: Any) -> None: self.is_enabled: Optional[bool] = None self.job_owner: Optional[str] = None self.last_executed_on: Optional[datetime.datetime] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None self.migration_eligibility: Optional["_models.MigrationEligibilityInfo"] = None @@ -1747,7 +1747,7 @@ def __init__(self, **kwargs: Any) -> None: self.result_type: str = "DatabaseLevelOutput" self.name: Optional[str] = None self.size_mb: Optional[float] = None - self.database_files: Optional[List["_models.DatabaseFileInfo"]] = None + self.database_files: Optional[list["_models.DatabaseFileInfo"]] = None self.compatibility_level: Optional[Union[str, "_models.DatabaseCompatLevel"]] = None self.database_state: Optional[Union[str, "_models.DatabaseState"]] = None @@ -1871,7 +1871,7 @@ def __init__(self, **kwargs: Any) -> None: self.database_tde_certificate_mapping: Optional[str] = None self.source_server_version: Optional[str] = None self.source_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): @@ -1940,7 +1940,7 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, task_id: Optional[str] = None, **kwargs: Any @@ -1956,7 +1956,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToSource.SqlServer" self.input = input - self.output: Optional[List["_models.ConnectToSourceSqlServerTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToSourceSqlServerTaskOutput"]] = None self.task_id = task_id @@ -2048,9 +2048,9 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.server_version: Optional[str] = None - self.databases: Optional[List[str]] = None + self.databases: Optional[list[str]] = None self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -2117,7 +2117,7 @@ class ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): # py def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetAzureDbForMySqlTaskInput"] = None, **kwargs: Any ) -> None: @@ -2130,7 +2130,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.AzureDbForMySql" self.input = input - self.output: Optional[List["_models.ConnectToTargetAzureDbForMySqlTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetAzureDbForMySqlTaskOutput"]] = None class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): # pylint: disable=name-too-long @@ -2214,9 +2214,9 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.target_server_version: Optional[str] = None - self.databases: Optional[List[str]] = None + self.databases: Optional[list[str]] = None self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -2284,7 +2284,7 @@ class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskPropertie def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -2298,7 +2298,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.AzureDbForPostgreSql.Sync" self.input = input - self.output: Optional[List["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput"]] = None class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): # pylint: disable=name-too-long @@ -2371,7 +2371,7 @@ def __init__( self, *, database_schema_map: Optional[ - List["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem"] + list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem"] ] = None, **kwargs: Any ) -> None: @@ -2382,9 +2382,9 @@ def __init__( """ super().__init__(**kwargs) self.target_server_version: Optional[str] = None - self.databases: Optional[List[str]] = None + self.databases: Optional[list[str]] = None self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None self.database_schema_map = database_schema_map @@ -2404,7 +2404,7 @@ class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapIt "schemas": {"key": "schemas", "type": "[str]"}, } - def __init__(self, *, database: Optional[str] = None, schemas: Optional[List[str]] = None, **kwargs: Any) -> None: + def __init__(self, *, database: Optional[str] = None, schemas: Optional[list[str]] = None, **kwargs: Any) -> None: """ :keyword database: :paramtype database: str @@ -2483,7 +2483,7 @@ class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties( def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -2497,7 +2497,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync" self.input = input - self.output: Optional[List["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput"]] = None class ConnectToTargetSqlDbSyncTaskInput(_serialization.Model): @@ -2602,7 +2602,7 @@ class ConnectToTargetSqlDbSyncTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlDbSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -2615,7 +2615,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.SqlDb.Sync" self.input = input - self.output: Optional[List["_models.ConnectToTargetSqlDbTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetSqlDbTaskOutput"]] = None class ConnectToTargetSqlDbTaskInput(_serialization.Model): @@ -2761,7 +2761,7 @@ class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlDbTaskInput"] = None, created_on: Optional[str] = None, **kwargs: Any @@ -2777,7 +2777,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.SqlDb" self.input = input - self.output: Optional[List["_models.ConnectToTargetSqlDbTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetSqlDbTaskOutput"]] = None self.created_on = created_on @@ -2857,7 +2857,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.target_server_version: Optional[str] = None self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): @@ -2922,7 +2922,7 @@ class ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlMISyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -2935,7 +2935,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.AzureSqlDbMI.Sync.LRS" self.input = input - self.output: Optional[List["_models.ConnectToTargetSqlMISyncTaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetSqlMISyncTaskOutput"]] = None class ConnectToTargetSqlMITaskInput(_serialization.Model): @@ -3035,9 +3035,9 @@ def __init__(self, **kwargs: Any) -> None: self.id: Optional[str] = None self.target_server_version: Optional[str] = None self.target_server_brand_version: Optional[str] = None - self.logins: Optional[List[str]] = None - self.agent_jobs: Optional[List[str]] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.logins: Optional[list[str]] = None + self.agent_jobs: Optional[list[str]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): @@ -3102,7 +3102,7 @@ class ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlMITaskInput"] = None, **kwargs: Any ) -> None: @@ -3115,7 +3115,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ConnectToTarget.AzureSqlDbMI" self.input = input - self.output: Optional[List["_models.ConnectToTargetSqlMITaskOutput"]] = None + self.output: Optional[list["_models.ConnectToTargetSqlMITaskOutput"]] = None class CopyProgressDetails(_serialization.Model): @@ -3390,7 +3390,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.database_name: Optional[str] = None self.backup_type: Optional[Union[str, "_models.BackupType"]] = None - self.backup_files: Optional[List[str]] = None + self.backup_files: Optional[list[str]] = None self.position: Optional[int] = None self.is_damaged: Optional[bool] = None self.is_compressed: Optional[bool] = None @@ -3723,7 +3723,7 @@ class DatabaseMigrationBaseListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value: Optional[List["_models.DatabaseMigrationBase"]] = None + self.value: Optional[list["_models.DatabaseMigrationBase"]] = None self.next_link: Optional[str] = None @@ -3909,7 +3909,7 @@ def __init__( provisioning_error: Optional[str] = None, source_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, target_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, - collection_list: Optional[List["_models.MongoMigrationCollection"]] = None, + collection_list: Optional[list["_models.MongoMigrationCollection"]] = None, **kwargs: Any ) -> None: """ @@ -3968,7 +3968,7 @@ class DatabaseMigrationCosmosDbMongoListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value: Optional[List["_models.DatabaseMigrationCosmosDbMongo"]] = None + self.value: Optional[list["_models.DatabaseMigrationCosmosDbMongo"]] = None self.next_link: Optional[str] = None @@ -3996,7 +3996,7 @@ class DatabaseMigrationListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value: Optional[List["_models.DatabaseMigration"]] = None + self.value: Optional[list["_models.DatabaseMigration"]] = None self.next_link: Optional[str] = None @@ -4041,6 +4041,10 @@ class DatabaseMigrationProperties(DatabaseMigrationBaseProperties): :vartype source_server_name: str :ivar target_database_collation: Database collation to be used for the target database. :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str """ _validation = { @@ -4068,6 +4072,7 @@ class DatabaseMigrationProperties(DatabaseMigrationBaseProperties): "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, "source_server_name": {"key": "sourceServerName", "type": "str"}, "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, + "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, } _subtype_map = { @@ -4088,6 +4093,7 @@ def __init__( source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, source_database_name: Optional[str] = None, target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -4105,6 +4111,10 @@ def __init__( :paramtype source_database_name: str :keyword target_database_collation: Database collation to be used for the target database. :paramtype target_database_collation: str + :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :paramtype sql_server_instance_id: str """ super().__init__( scope=scope, @@ -4118,6 +4128,7 @@ def __init__( self.source_database_name = source_database_name self.source_server_name: Optional[str] = None self.target_database_collation = target_database_collation + self.sql_server_instance_id = sql_server_instance_id class DatabaseMigrationPropertiesCosmosDbMongo(DatabaseMigrationBaseProperties): @@ -4191,7 +4202,7 @@ def __init__( provisioning_error: Optional[str] = None, source_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, target_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, - collection_list: Optional[List["_models.MongoMigrationCollection"]] = None, + collection_list: Optional[list["_models.MongoMigrationCollection"]] = None, **kwargs: Any ) -> None: """ @@ -4260,6 +4271,10 @@ class DatabaseMigrationPropertiesSqlDb(DatabaseMigrationProperties): :vartype source_server_name: str :ivar target_database_collation: Database collation to be used for the target database. :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str :ivar migration_status_details: Detailed migration status. Not included by default. :vartype migration_status_details: ~azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails :ivar target_sql_connection: Target SQL DB connection details. @@ -4297,6 +4312,7 @@ class DatabaseMigrationPropertiesSqlDb(DatabaseMigrationProperties): "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, "source_server_name": {"key": "sourceServerName", "type": "str"}, "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, + "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, "migration_status_details": {"key": "migrationStatusDetails", "type": "SqlDbMigrationStatusDetails"}, "target_sql_connection": {"key": "targetSqlConnection", "type": "SqlConnectionInformation"}, "offline_configuration": {"key": "offlineConfiguration", "type": "SqlDbOfflineConfiguration"}, @@ -4313,8 +4329,9 @@ def __init__( source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, source_database_name: Optional[str] = None, target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, target_sql_connection: Optional["_models.SqlConnectionInformation"] = None, - table_list: Optional[List[str]] = None, + table_list: Optional[list[str]] = None, **kwargs: Any ) -> None: """ @@ -4332,6 +4349,10 @@ def __init__( :paramtype source_database_name: str :keyword target_database_collation: Database collation to be used for the target database. :paramtype target_database_collation: str + :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :paramtype sql_server_instance_id: str :keyword target_sql_connection: Target SQL DB connection details. :paramtype target_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation :keyword table_list: List of tables to copy. @@ -4345,6 +4366,7 @@ def __init__( source_sql_connection=source_sql_connection, source_database_name=source_database_name, target_database_collation=target_database_collation, + sql_server_instance_id=sql_server_instance_id, **kwargs ) self.kind: str = "SqlDb" @@ -4391,6 +4413,10 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties): :vartype source_server_name: str :ivar target_database_collation: Database collation to be used for the target database. :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str :ivar migration_status_details: Detailed migration status. Not included by default. :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails :ivar backup_configuration: Backup configuration info. @@ -4425,6 +4451,7 @@ class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties): "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, "source_server_name": {"key": "sourceServerName", "type": "str"}, "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, + "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, "migration_status_details": {"key": "migrationStatusDetails", "type": "MigrationStatusDetails"}, "backup_configuration": {"key": "backupConfiguration", "type": "BackupConfiguration"}, "offline_configuration": {"key": "offlineConfiguration", "type": "OfflineConfiguration"}, @@ -4440,6 +4467,7 @@ def __init__( source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, source_database_name: Optional[str] = None, target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, backup_configuration: Optional["_models.BackupConfiguration"] = None, offline_configuration: Optional["_models.OfflineConfiguration"] = None, **kwargs: Any @@ -4459,6 +4487,10 @@ def __init__( :paramtype source_database_name: str :keyword target_database_collation: Database collation to be used for the target database. :paramtype target_database_collation: str + :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :paramtype sql_server_instance_id: str :keyword backup_configuration: Backup configuration info. :paramtype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration :keyword offline_configuration: Offline configuration. @@ -4472,6 +4504,7 @@ def __init__( source_sql_connection=source_sql_connection, source_database_name=source_database_name, target_database_collation=target_database_collation, + sql_server_instance_id=sql_server_instance_id, **kwargs ) self.kind: str = "SqlMi" @@ -4517,6 +4550,10 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties): :vartype source_server_name: str :ivar target_database_collation: Database collation to be used for the target database. :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str :ivar migration_status_details: Detailed migration status. Not included by default. :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails :ivar backup_configuration: Backup configuration info. @@ -4551,6 +4588,7 @@ class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties): "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, "source_server_name": {"key": "sourceServerName", "type": "str"}, "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, + "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, "migration_status_details": {"key": "migrationStatusDetails", "type": "MigrationStatusDetails"}, "backup_configuration": {"key": "backupConfiguration", "type": "BackupConfiguration"}, "offline_configuration": {"key": "offlineConfiguration", "type": "OfflineConfiguration"}, @@ -4566,6 +4604,7 @@ def __init__( source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, source_database_name: Optional[str] = None, target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, backup_configuration: Optional["_models.BackupConfiguration"] = None, offline_configuration: Optional["_models.OfflineConfiguration"] = None, **kwargs: Any @@ -4585,6 +4624,10 @@ def __init__( :paramtype source_database_name: str :keyword target_database_collation: Database collation to be used for the target database. :paramtype target_database_collation: str + :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :paramtype sql_server_instance_id: str :keyword backup_configuration: Backup configuration info. :paramtype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration :keyword offline_configuration: Offline configuration. @@ -4598,6 +4641,7 @@ def __init__( source_sql_connection=source_sql_connection, source_database_name=source_database_name, target_database_collation=target_database_collation, + sql_server_instance_id=sql_server_instance_id, **kwargs ) self.kind: str = "SqlVm" @@ -4987,7 +5031,7 @@ class DataIntegrityValidationResult(_serialization.Model): def __init__( self, *, - failed_objects: Optional[Dict[str, str]] = None, + failed_objects: Optional[dict[str, str]] = None, validation_errors: Optional["_models.ValidationError"] = None, **kwargs: Any ) -> None: @@ -5089,7 +5133,7 @@ def __init__(self, **kwargs: Any) -> None: self.target_username: Optional[str] = None self.target_db_name: Optional[str] = None self.target_using_win_auth: Optional[bool] = None - self.selected_migration_tables: Optional[List["_models.MigrationTableMetadata"]] = None + self.selected_migration_tables: Optional[list["_models.MigrationTableMetadata"]] = None class TrackedResourceAutoGenerated(_serialization.Model): @@ -5127,7 +5171,7 @@ class TrackedResourceAutoGenerated(_serialization.Model): "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, location: Optional[str] = None, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: :paramtype location: str @@ -5215,7 +5259,7 @@ def __init__( self, *, location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, + tags: Optional[dict[str, str]] = None, etag: Optional[str] = None, kind: Optional[str] = None, sku: Optional["_models.ServiceSku"] = None, @@ -5281,7 +5325,7 @@ class DataMigrationServiceList(_serialization.Model): def __init__( self, *, - value: Optional[List["_models.DataMigrationService"]] = None, + value: Optional[list["_models.DataMigrationService"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: @@ -5328,7 +5372,7 @@ def __init__( agent_configuration: Optional[JSON] = None, status: Optional[str] = None, vm_size: Optional[str] = None, - supported_task_types: Optional[List[str]] = None, + supported_task_types: Optional[list[str]] = None, **kwargs: Any ) -> None: """ @@ -5448,8 +5492,8 @@ def __init__(self, **kwargs: Any) -> None: self.code: Optional[str] = None self.message: Optional[str] = None self.target: Optional[str] = None - self.details: Optional[List["_models.ErrorDetail"]] = None - self.additional_info: Optional[List["_models.ErrorAdditionalInfo"]] = None + self.details: Optional[list["_models.ErrorDetail"]] = None + self.additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = None class ErrorInfo(_serialization.Model): @@ -5533,9 +5577,9 @@ def __init__( execution_count: Optional[int] = None, cpu_time_ms: Optional[float] = None, elapsed_time_ms: Optional[float] = None, - wait_stats: Optional[Dict[str, "_models.WaitStatistics"]] = None, + wait_stats: Optional[dict[str, "_models.WaitStatistics"]] = None, has_errors: Optional[bool] = None, - sql_errors: Optional[List[str]] = None, + sql_errors: Optional[list[str]] = None, **kwargs: Any ) -> None: """ @@ -5577,7 +5621,7 @@ class FileList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.ProjectFile"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.ProjectFile"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: List of files. @@ -5644,7 +5688,7 @@ class FileStorageInfo(_serialization.Model): "headers": {"key": "headers", "type": "{str}"}, } - def __init__(self, *, uri: Optional[str] = None, headers: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + 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 @@ -5723,7 +5767,7 @@ def __init__( *, connection_info: "_models.SqlConnectionInfo", backup_file_share: "_models.FileShare", - selected_certificates: List["_models.SelectedCertificateInput"], + selected_certificates: list["_models.SelectedCertificateInput"], **kwargs: Any ) -> None: """ @@ -5768,7 +5812,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.base64_encoded_certificates: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): @@ -5833,7 +5877,7 @@ class GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.GetTdeCertificatesSqlTaskInput"] = None, **kwargs: Any ) -> None: @@ -5846,7 +5890,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "GetTDECertificates.Sql" self.input = input - self.output: Optional[List["_models.GetTdeCertificatesSqlTaskOutput"]] = None + self.output: Optional[list["_models.GetTdeCertificatesSqlTaskOutput"]] = None class GetUserTablesMySqlTaskInput(_serialization.Model): @@ -5871,7 +5915,7 @@ class GetUserTablesMySqlTaskInput(_serialization.Model): } def __init__( - self, *, connection_info: "_models.MySqlConnectionInfo", selected_databases: List[str], **kwargs: Any + self, *, connection_info: "_models.MySqlConnectionInfo", selected_databases: list[str], **kwargs: Any ) -> None: """ :keyword connection_info: Connection information for SQL Server. Required. @@ -5914,7 +5958,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.databases_to_tables: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class GetUserTablesMySqlTaskProperties(ProjectTaskProperties): @@ -5979,7 +6023,7 @@ class GetUserTablesMySqlTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.GetUserTablesMySqlTaskInput"] = None, **kwargs: Any ) -> None: @@ -5992,7 +6036,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "GetUserTablesMySql" self.input = input - self.output: Optional[List["_models.GetUserTablesMySqlTaskOutput"]] = None + self.output: Optional[list["_models.GetUserTablesMySqlTaskOutput"]] = None class GetUserTablesOracleTaskInput(_serialization.Model): @@ -6018,7 +6062,7 @@ class GetUserTablesOracleTaskInput(_serialization.Model): } def __init__( - self, *, connection_info: "_models.OracleConnectionInfo", selected_schemas: List[str], **kwargs: Any + self, *, connection_info: "_models.OracleConnectionInfo", selected_schemas: list[str], **kwargs: Any ) -> None: """ :keyword connection_info: Information for connecting to Oracle source. Required. @@ -6061,8 +6105,8 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.schema_name: Optional[str] = None - self.tables: Optional[List["_models.DatabaseTable"]] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.tables: Optional[list["_models.DatabaseTable"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class GetUserTablesOracleTaskProperties(ProjectTaskProperties): @@ -6127,7 +6171,7 @@ class GetUserTablesOracleTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.GetUserTablesOracleTaskInput"] = None, **kwargs: Any ) -> None: @@ -6140,7 +6184,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "GetUserTablesOracle" self.input = input - self.output: Optional[List["_models.GetUserTablesOracleTaskOutput"]] = None + self.output: Optional[list["_models.GetUserTablesOracleTaskOutput"]] = None class GetUserTablesPostgreSqlTaskInput(_serialization.Model): @@ -6165,7 +6209,7 @@ class GetUserTablesPostgreSqlTaskInput(_serialization.Model): } def __init__( - self, *, connection_info: "_models.PostgreSqlConnectionInfo", selected_databases: List[str], **kwargs: Any + self, *, connection_info: "_models.PostgreSqlConnectionInfo", selected_databases: list[str], **kwargs: Any ) -> None: """ :keyword connection_info: Information for connecting to PostgreSQL source. Required. @@ -6208,8 +6252,8 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.database_name: Optional[str] = None - self.tables: Optional[List["_models.DatabaseTable"]] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.tables: Optional[list["_models.DatabaseTable"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class GetUserTablesPostgreSqlTaskProperties(ProjectTaskProperties): @@ -6274,7 +6318,7 @@ class GetUserTablesPostgreSqlTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.GetUserTablesPostgreSqlTaskInput"] = None, **kwargs: Any ) -> None: @@ -6287,7 +6331,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "GetUserTablesPostgreSql" self.input = input - self.output: Optional[List["_models.GetUserTablesPostgreSqlTaskOutput"]] = None + self.output: Optional[list["_models.GetUserTablesPostgreSqlTaskOutput"]] = None class GetUserTablesSqlSyncTaskInput(_serialization.Model): @@ -6324,8 +6368,8 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_source_databases: List[str], - selected_target_databases: List[str], + selected_source_databases: list[str], + selected_target_databases: list[str], **kwargs: Any ) -> None: """ @@ -6382,7 +6426,7 @@ def __init__(self, **kwargs: Any) -> None: self.databases_to_source_tables: Optional[str] = None self.databases_to_target_tables: Optional[str] = None self.table_validation_errors: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): @@ -6447,7 +6491,7 @@ class GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.GetUserTablesSqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -6460,7 +6504,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "GetUserTables.AzureSqlDb.Sync" self.input = input - self.output: Optional[List["_models.GetUserTablesSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.GetUserTablesSqlSyncTaskOutput"]] = None class GetUserTablesSqlTaskInput(_serialization.Model): @@ -6491,7 +6535,7 @@ def __init__( self, *, connection_info: "_models.SqlConnectionInfo", - selected_databases: List[str], + selected_databases: list[str], encrypted_key_for_secure_fields: Optional[str] = None, **kwargs: Any ) -> None: @@ -6539,7 +6583,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.databases_to_tables: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class GetUserTablesSqlTaskProperties(ProjectTaskProperties): @@ -6607,7 +6651,7 @@ class GetUserTablesSqlTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.GetUserTablesSqlTaskInput"] = None, task_id: Optional[str] = None, **kwargs: Any @@ -6623,7 +6667,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "GetUserTables.Sql" self.input = input - self.output: Optional[List["_models.GetUserTablesSqlTaskOutput"]] = None + self.output: Optional[list["_models.GetUserTablesSqlTaskOutput"]] = None self.task_id = task_id @@ -6667,7 +6711,7 @@ class InstallOCIDriverTaskOutput(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class InstallOCIDriverTaskProperties(ProjectTaskProperties): @@ -6732,7 +6776,7 @@ class InstallOCIDriverTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.InstallOCIDriverTaskInput"] = None, **kwargs: Any ) -> None: @@ -6745,7 +6789,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Service.Install.OCI" self.input = input - self.output: Optional[List["_models.InstallOCIDriverTaskOutput"]] = None + self.output: Optional[list["_models.InstallOCIDriverTaskOutput"]] = None class IntegrationRuntimeMonitoringData(_serialization.Model): @@ -6773,7 +6817,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name: Optional[str] = None - self.nodes: Optional[List["_models.NodeMonitoringData"]] = None + self.nodes: Optional[list["_models.NodeMonitoringData"]] = None class ManagedServiceIdentity(_serialization.Model): @@ -6818,7 +6862,7 @@ def __init__( self, *, type: Union[str, "_models.ManagedServiceIdentityType"], - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentity"]] = None, + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None, **kwargs: Any ) -> None: """ @@ -6877,7 +6921,7 @@ class MigrateMISyncCompleteCommandOutput(_serialization.Model): "errors": {"key": "errors", "type": "[ReportableException]"}, } - def __init__(self, *, errors: Optional[List["_models.ReportableException"]] = None, **kwargs: Any) -> None: + 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] @@ -6996,7 +7040,7 @@ class MigrateMongoDbTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MongoDbMigrationSettings"] = None, **kwargs: Any ) -> None: @@ -7009,7 +7053,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.MongoDb" self.input = input - self.output: Optional[List["_models.MongoDbProgress"]] = None + self.output: Optional[list["_models.MongoDbProgress"]] = None class MigrateMySqlAzureDbForMySqlOfflineDatabaseInput(_serialization.Model): # pylint: disable=name-too-long @@ -7036,7 +7080,7 @@ def __init__( *, name: Optional[str] = None, target_database_name: Optional[str] = None, - table_map: Optional[Dict[str, str]] = None, + table_map: Optional[dict[str, str]] = None, **kwargs: Any ) -> None: """ @@ -7100,10 +7144,10 @@ def __init__( *, source_connection_info: "_models.MySqlConnectionInfo", target_connection_info: "_models.MySqlConnectionInfo", - selected_databases: List["_models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput"], + selected_databases: list["_models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput"], make_source_server_read_only: bool = False, started_on: Optional[datetime.datetime] = None, - optional_agent_settings: Optional[Dict[str, str]] = None, + optional_agent_settings: Optional[dict[str, str]] = None, encrypted_key_for_secure_fields: Optional[str] = None, **kwargs: Any ) -> None: @@ -7286,7 +7330,7 @@ def __init__(self, **kwargs: Any) -> None: self.error_count: Optional[int] = None self.error_prefix: Optional[str] = None self.result_prefix: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None self.last_storage_update: Optional[datetime.datetime] = None self.object_summary: Optional[str] = None @@ -7442,7 +7486,7 @@ def __init__( self.source_server_brand_version: Optional[str] = None self.target_server_version: Optional[str] = None self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None self.last_storage_update: Optional[datetime.datetime] = None @@ -7599,7 +7643,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateMySqlAzureDbForMySqlOfflineTaskInput"] = None, is_cloneable: Optional[bool] = None, task_id: Optional[str] = None, @@ -7618,7 +7662,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.MySql.AzureDbForMySql" self.input = input - self.output: Optional[List["_models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput"]] = None + self.output: Optional[list["_models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput"]] = None self.is_cloneable = is_cloneable self.task_id = task_id @@ -7655,10 +7699,10 @@ def __init__( *, name: Optional[str] = None, target_database_name: Optional[str] = None, - migration_setting: Optional[Dict[str, str]] = None, - source_setting: Optional[Dict[str, str]] = None, - target_setting: Optional[Dict[str, str]] = None, - table_map: Optional[Dict[str, str]] = None, + migration_setting: Optional[dict[str, str]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, + table_map: Optional[dict[str, str]] = None, **kwargs: Any ) -> None: """ @@ -7718,7 +7762,7 @@ def __init__( *, source_connection_info: "_models.MySqlConnectionInfo", target_connection_info: "_models.MySqlConnectionInfo", - selected_databases: List["_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput"], + selected_databases: list["_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput"], **kwargs: Any ) -> None: """ @@ -7820,7 +7864,7 @@ def __init__( self, *, error_message: Optional[str] = None, - events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any ) -> None: """ @@ -8204,7 +8248,7 @@ class MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): # p def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateMySqlAzureDbForMySqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -8217,7 +8261,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.MySql.AzureDbForMySql.Sync" self.input = input - self.output: Optional[List["_models.MigrateMySqlAzureDbForMySqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.MigrateMySqlAzureDbForMySqlSyncTaskOutput"]] = None class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -8284,7 +8328,7 @@ class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties) def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -8297,7 +8341,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.Oracle.AzureDbForPostgreSql.Sync" self.input = input - self.output: Optional[List["_models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput"]] = None class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(_serialization.Model): # pylint: disable=name-too-long @@ -8340,11 +8384,11 @@ def __init__( case_manipulation: Optional[str] = None, name: Optional[str] = None, schema_name: Optional[str] = None, - table_map: Optional[Dict[str, str]] = None, + table_map: Optional[dict[str, str]] = None, target_database_name: Optional[str] = None, - migration_setting: Optional[Dict[str, str]] = None, - source_setting: Optional[Dict[str, str]] = None, - target_setting: Optional[Dict[str, str]] = None, + migration_setting: Optional[dict[str, str]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, **kwargs: Any ) -> None: """ @@ -8408,7 +8452,7 @@ class MigrateOracleAzureDbPostgreSqlSyncTaskInput(_serialization.Model): # pyli def __init__( self, *, - selected_databases: List["_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput"], + selected_databases: list["_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput"], target_connection_info: "_models.PostgreSqlConnectionInfo", source_connection_info: "_models.OracleConnectionInfo", **kwargs: Any @@ -8512,7 +8556,7 @@ def __init__( self, *, error_message: Optional[str] = None, - events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any ) -> None: """ @@ -8878,10 +8922,10 @@ def __init__( *, name: Optional[str] = None, target_database_name: Optional[str] = None, - migration_setting: Optional[Dict[str, Any]] = None, - source_setting: Optional[Dict[str, str]] = None, - target_setting: Optional[Dict[str, str]] = None, - selected_tables: Optional[List["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = None, + migration_setting: Optional[dict[str, Any]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, + selected_tables: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = None, **kwargs: Any ) -> None: """ @@ -8975,7 +9019,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): def __init__( self, *, - selected_databases: List["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput"], + selected_databases: list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput"], target_connection_info: "_models.PostgreSqlConnectionInfo", source_connection_info: "_models.PostgreSqlConnectionInfo", encrypted_key_for_secure_fields: Optional[str] = None, @@ -9084,7 +9128,7 @@ def __init__( self, *, error_message: Optional[str] = None, - events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any ) -> None: """ @@ -9243,7 +9287,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError( } def __init__( - self, *, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any + self, *, events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any ) -> None: """ :keyword events: List of error events. @@ -9512,7 +9556,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskPropert def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput"] = None, task_id: Optional[str] = None, created_on: Optional[str] = None, @@ -9535,7 +9579,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2" self.input = input - self.output: Optional[List["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput"]] = None self.task_id = task_id self.created_on = created_on self.is_cloneable = is_cloneable @@ -9663,7 +9707,7 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_databases: List["_models.MigrateSchemaSqlServerSqlDbDatabaseInput"], + selected_databases: list["_models.MigrateSchemaSqlServerSqlDbDatabaseInput"], encrypted_key_for_secure_fields: Optional[str] = None, started_on: Optional[str] = None, **kwargs: Any @@ -9996,7 +10040,7 @@ class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties): # pylin def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateSchemaSqlServerSqlDbTaskInput"] = None, created_on: Optional[str] = None, task_id: Optional[str] = None, @@ -10018,7 +10062,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "MigrateSchemaSqlServerSqlDb" self.input = input - self.output: Optional[List["_models.MigrateSchemaSqlServerSqlDbTaskOutput"]] = None + self.output: Optional[list["_models.MigrateSchemaSqlServerSqlDbTaskOutput"]] = None self.created_on = created_on self.task_id = task_id self.is_cloneable = is_cloneable @@ -10084,7 +10128,7 @@ def __init__( name: Optional[str] = None, restore_database_name: Optional[str] = None, backup_and_restore_folder: Optional[str] = None, - database_files: Optional[List["_models.DatabaseFileInput"]] = None, + database_files: Optional[list["_models.DatabaseFileInput"]] = None, **kwargs: Any ) -> None: """ @@ -10137,7 +10181,7 @@ def __init__( name: Optional[str] = None, target_database_name: Optional[str] = None, make_source_db_read_only: Optional[bool] = None, - table_map: Optional[Dict[str, str]] = None, + table_map: Optional[dict[str, str]] = None, schema_setting: Optional[JSON] = None, id: Optional[str] = None, # pylint: disable=redefined-builtin **kwargs: Any @@ -10205,10 +10249,10 @@ def __init__( name: Optional[str] = None, target_database_name: Optional[str] = None, schema_name: Optional[str] = None, - table_map: Optional[Dict[str, str]] = None, - migration_setting: Optional[Dict[str, str]] = None, - source_setting: Optional[Dict[str, str]] = None, - target_setting: Optional[Dict[str, str]] = None, + table_map: Optional[dict[str, str]] = None, + migration_setting: Optional[dict[str, str]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, **kwargs: Any ) -> None: """ @@ -10275,7 +10319,7 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_databases: List["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], validation_options: Optional["_models.MigrationValidationOptions"] = None, **kwargs: Any ) -> None: @@ -10379,7 +10423,7 @@ def __init__( self, *, error_message: Optional[str] = None, - events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any ) -> None: """ @@ -10765,7 +10809,7 @@ class MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateSqlServerSqlDbSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -10778,7 +10822,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.SqlServer.AzureSqlDb.Sync" self.input = input - self.output: Optional[List["_models.MigrateSqlServerSqlDbSyncTaskOutput"]] = None + self.output: Optional[list["_models.MigrateSqlServerSqlDbSyncTaskOutput"]] = None class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): @@ -10794,14 +10838,12 @@ class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): :vartype selected_databases: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] :ivar validation_options: Options for enabling various post migration validations. Available - options, - 1.) Data Integrity Check: Performs a checksum based comparison on source and target tables - after the migration to ensure the correctness of the data. - 2.) Schema Validation: Performs a thorough schema comparison between the source and target - tables and provides a list of differences between the source and target database, 3.) Query - Analysis: Executes a set of queries picked up automatically either from the Query Plan Cache or - Query Store and execute them and compares the execution time between the source and target - database. + options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target + tables after the migration to ensure the correctness of the data. 2.) Schema Validation: + Performs a thorough schema comparison between the source and target tables and provides a list + of differences between the source and target database, 3.) Query Analysis: Executes a set of + queries picked up automatically either from the Query Plan Cache or Query Store and execute + them and compares the execution time between the source and target database. :vartype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions :ivar started_on: Date and time relative to UTC when the migration was started on. :vartype started_on: str @@ -10829,7 +10871,7 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_databases: List["_models.MigrateSqlServerSqlDbDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlDbDatabaseInput"], validation_options: Optional["_models.MigrationValidationOptions"] = None, started_on: Optional[str] = None, encrypted_key_for_secure_fields: Optional[str] = None, @@ -10844,14 +10886,12 @@ def __init__( :paramtype selected_databases: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] :keyword validation_options: Options for enabling various post migration validations. Available - options, - 1.) Data Integrity Check: Performs a checksum based comparison on source and target tables - after the migration to ensure the correctness of the data. - 2.) Schema Validation: Performs a thorough schema comparison between the source and target - tables and provides a list of differences between the source and target database, 3.) Query - Analysis: Executes a set of queries picked up automatically either from the Query Plan Cache or - Query Store and execute them and compares the execution time between the source and target - database. + options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target + tables after the migration to ensure the correctness of the data. 2.) Schema Validation: + Performs a thorough schema comparison between the source and target tables and provides a list + of differences between the source and target database, 3.) Query Analysis: Executes a set of + queries picked up automatically either from the Query Plan Cache or Query Store and execute + them and compares the execution time between the source and target database. :paramtype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions :keyword started_on: Date and time relative to UTC when the migration was started on. :paramtype started_on: str @@ -11012,7 +11052,7 @@ def __init__(self, **kwargs: Any) -> None: self.error_count: Optional[int] = None self.error_prefix: Optional[str] = None self.result_prefix: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None self.object_summary: Optional[str] = None @@ -11339,7 +11379,7 @@ def __init__( self.source_server_brand_version: Optional[str] = None self.target_server_version: Optional[str] = None self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSqlServerSqlDbTaskOutputTableLevel(MigrateSqlServerSqlDbTaskOutput): # pylint: disable=name-too-long @@ -11452,7 +11492,7 @@ class MigrationValidationResult(_serialization.Model): def __init__( self, *, - summary_results: Optional[Dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, + summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, **kwargs: Any ) -> None: """ @@ -11509,7 +11549,7 @@ class MigrateSqlServerSqlDbTaskOutputValidationResult( def __init__( self, *, - summary_results: Optional[Dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, + summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, **kwargs: Any ) -> None: """ @@ -11596,7 +11636,7 @@ class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateSqlServerSqlDbTaskInput"] = None, task_id: Optional[str] = None, is_cloneable: Optional[bool] = None, @@ -11618,7 +11658,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.SqlServer.SqlDb" self.input = input - self.output: Optional[List["_models.MigrateSqlServerSqlDbTaskOutput"]] = None + self.output: Optional[list["_models.MigrateSqlServerSqlDbTaskOutput"]] = None self.task_id = task_id self.is_cloneable = is_cloneable self.created_on = created_on @@ -11660,7 +11700,7 @@ def __init__( name: str, restore_database_name: str, backup_file_share: Optional["_models.FileShare"] = None, - backup_file_paths: Optional[List[str]] = None, + backup_file_paths: Optional[list[str]] = None, id: Optional[str] = None, # pylint: disable=redefined-builtin **kwargs: Any ) -> None: @@ -11728,7 +11768,7 @@ class SqlServerSqlMISyncTaskInput(_serialization.Model): def __init__( self, *, - selected_databases: List["_models.MigrateSqlServerSqlMIDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], storage_resource_id: str, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.MiSqlConnectionInfo", @@ -11811,7 +11851,7 @@ class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): def __init__( self, *, - selected_databases: List["_models.MigrateSqlServerSqlMIDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], storage_resource_id: str, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.MiSqlConnectionInfo", @@ -11980,11 +12020,11 @@ def __init__(self, **kwargs: Any) -> None: self.ended_on: Optional[datetime.datetime] = None self.full_backup_set_info: Optional["_models.BackupSetInfo"] = None self.last_restored_backup_set_info: Optional["_models.BackupSetInfo"] = None - self.active_backup_sets: Optional[List["_models.BackupSetInfo"]] = None + self.active_backup_sets: Optional[list["_models.BackupSetInfo"]] = None self.container_name: Optional[str] = None self.error_prefix: Optional[str] = None self.is_full_backup_restored: Optional[bool] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput): @@ -12174,7 +12214,7 @@ class MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateSqlServerSqlMISyncTaskInput"] = None, created_on: Optional[str] = None, **kwargs: Any @@ -12190,7 +12230,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS" self.input = input - self.output: Optional[List["_models.MigrateSqlServerSqlMISyncTaskOutput"]] = None + self.output: Optional[list["_models.MigrateSqlServerSqlMISyncTaskOutput"]] = None self.created_on = created_on @@ -12255,11 +12295,11 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_databases: List["_models.MigrateSqlServerSqlMIDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], backup_blob_share: "_models.BlobShare", started_on: Optional[str] = None, - selected_logins: Optional[List[str]] = None, - selected_agent_jobs: Optional[List[str]] = None, + selected_logins: Optional[list[str]] = None, + selected_agent_jobs: Optional[list[str]] = None, backup_file_share: Optional["_models.FileShare"] = None, backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, aad_domain_name: Optional[str] = None, @@ -12417,7 +12457,7 @@ def __init__(self, **kwargs: Any) -> None: self.started_on: Optional[datetime.datetime] = None self.ended_on: Optional[datetime.datetime] = None self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutput): # pylint: disable=name-too-long @@ -12488,7 +12528,7 @@ def __init__(self, **kwargs: Any) -> None: self.started_on: Optional[datetime.datetime] = None self.ended_on: Optional[datetime.datetime] = None self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): @@ -12589,7 +12629,7 @@ def __init__(self, **kwargs: Any) -> None: self.started_on: Optional[datetime.datetime] = None self.ended_on: Optional[datetime.datetime] = None self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOutput): # pylint: disable=name-too-long @@ -12690,13 +12730,13 @@ def __init__(self, **kwargs: Any) -> None: self.logins: Optional[str] = None self.message: Optional[str] = None self.server_role_results: Optional[str] = None - self.orphaned_users_info: Optional[List["_models.OrphanedUserInfo"]] = None + self.orphaned_users_info: Optional[list["_models.OrphanedUserInfo"]] = None self.databases: Optional[str] = None self.source_server_version: Optional[str] = None self.source_server_brand_version: Optional[str] = None self.target_server_version: Optional[str] = None self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): @@ -12773,7 +12813,7 @@ class MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateSqlServerSqlMITaskInput"] = None, task_id: Optional[str] = None, created_on: Optional[str] = None, @@ -12798,7 +12838,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.SqlServer.AzureSqlDbMI" self.input = input - self.output: Optional[List["_models.MigrateSqlServerSqlMITaskOutput"]] = None + self.output: Optional[list["_models.MigrateSqlServerSqlMITaskOutput"]] = None self.task_id = task_id self.created_on = created_on self.parent_task_id = parent_task_id @@ -12972,7 +13012,7 @@ def __init__(self, **kwargs: Any) -> None: self.source_server_brand_version: Optional[str] = None self.target_server_version: Optional[str] = None self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None self.stage: Optional[Union[str, "_models.SsisMigrationStage"]] = None @@ -13044,7 +13084,7 @@ def __init__(self, **kwargs: Any) -> None: self.started_on: Optional[datetime.datetime] = None self.ended_on: Optional[datetime.datetime] = None self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class MigrateSsisTaskProperties(ProjectTaskProperties): @@ -13110,7 +13150,7 @@ class MigrateSsisTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateSsisTaskInput"] = None, **kwargs: Any ) -> None: @@ -13123,7 +13163,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Migrate.Ssis" self.input = input - self.output: Optional[List["_models.MigrateSsisTaskOutput"]] = None + self.output: Optional[list["_models.MigrateSsisTaskOutput"]] = None class MigrateSyncCompleteCommandInput(_serialization.Model): @@ -13185,7 +13225,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id: Optional[str] = None - self.errors: Optional[List["_models.ReportableException"]] = None + self.errors: Optional[list["_models.ReportableException"]] = None class MigrateSyncCompleteCommandProperties(CommandProperties): @@ -13272,7 +13312,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.is_eligible_for_migration: Optional[bool] = None - self.validation_messages: Optional[List[str]] = None + self.validation_messages: Optional[list[str]] = None class MigrationOperationInput(_serialization.Model): @@ -13369,7 +13409,7 @@ class TrackedResource(Resource): "location": {"key": "location", "type": "str"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -13431,7 +13471,7 @@ class MigrationService(TrackedResource): "integration_runtime_state": {"key": "properties.integrationRuntimeState", "type": "str"}, } - def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Resource tags. :paramtype tags: dict[str, str] @@ -13467,7 +13507,7 @@ class MigrationServiceListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value: Optional[List["_models.MigrationService"]] = None + self.value: Optional[list["_models.MigrationService"]] = None self.next_link: Optional[str] = None @@ -13482,7 +13522,7 @@ class MigrationServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Dictionary of :code:``. :paramtype tags: dict[str, str] @@ -13563,13 +13603,13 @@ def __init__(self, **kwargs: Any) -> None: self.migration_state: Optional[str] = None self.full_backup_set_info: Optional["_models.SqlBackupSetInfo"] = None self.last_restored_backup_set_info: Optional["_models.SqlBackupSetInfo"] = None - self.active_backup_sets: Optional[List["_models.SqlBackupSetInfo"]] = None - self.invalid_files: Optional[List[str]] = None + self.active_backup_sets: Optional[list["_models.SqlBackupSetInfo"]] = None + self.invalid_files: Optional[list[str]] = None self.blob_container_name: Optional[str] = None self.is_full_backup_restored: Optional[bool] = None self.restore_blocking_reason: Optional[str] = None self.complete_restore_error_message: Optional[str] = None - self.file_upload_blocking_errors: Optional[List[str]] = None + self.file_upload_blocking_errors: Optional[list[str]] = None self.current_restoring_filename: Optional[str] = None self.last_restored_filename: Optional[str] = None self.pending_log_backups_count: Optional[int] = None @@ -13893,7 +13933,7 @@ class MongoDbClusterInfo(_serialization.Model): def __init__( self, *, - databases: List["_models.MongoDbDatabaseInfo"], + databases: list["_models.MongoDbDatabaseInfo"], supports_sharding: bool, type: Union[str, "_models.MongoDbClusterType"], version: str, @@ -14215,7 +14255,7 @@ def __init__( bytes_copied: int, documents_copied: int, elapsed_time: str, - errors: Dict[str, "_models.MongoDbError"], + errors: dict[str, "_models.MongoDbError"], events_pending: int, events_replayed: int, state: Union[str, "_models.MongoDbMigrationState"], @@ -14368,7 +14408,7 @@ def __init__( bytes_copied: int, documents_copied: int, elapsed_time: str, - errors: Dict[str, "_models.MongoDbError"], + errors: dict[str, "_models.MongoDbError"], events_pending: int, events_replayed: int, state: Union[str, "_models.MongoDbMigrationState"], @@ -14682,7 +14722,7 @@ def __init__( document_count: int, name: str, qualified_name: str, - collections: List["_models.MongoDbCollectionInfo"], + collections: list["_models.MongoDbCollectionInfo"], supports_sharding: bool, **kwargs: Any ) -> None: @@ -14807,7 +14847,7 @@ def __init__( bytes_copied: int, documents_copied: int, elapsed_time: str, - errors: Dict[str, "_models.MongoDbError"], + errors: dict[str, "_models.MongoDbError"], events_pending: int, events_replayed: int, state: Union[str, "_models.MongoDbMigrationState"], @@ -14817,7 +14857,7 @@ def __init__( last_replay_time: Optional[datetime.datetime] = None, name: Optional[str] = None, qualified_name: Optional[str] = None, - collections: Optional[Dict[str, "_models.MongoDbCollectionProgress"]] = None, + collections: Optional[dict[str, "_models.MongoDbCollectionProgress"]] = None, **kwargs: Any ) -> None: """ @@ -14909,7 +14949,7 @@ class MongoDbDatabaseSettings(_serialization.Model): def __init__( self, *, - collections: Dict[str, "_models.MongoDbCollectionSettings"], + collections: dict[str, "_models.MongoDbCollectionSettings"], target_r_us: Optional[int] = None, **kwargs: Any ) -> None: @@ -15142,7 +15182,7 @@ def __init__( bytes_copied: int, documents_copied: int, elapsed_time: str, - errors: Dict[str, "_models.MongoDbError"], + errors: dict[str, "_models.MongoDbError"], events_pending: int, events_replayed: int, state: Union[str, "_models.MongoDbMigrationState"], @@ -15152,7 +15192,7 @@ def __init__( last_replay_time: Optional[datetime.datetime] = None, name: Optional[str] = None, qualified_name: Optional[str] = None, - databases: Optional[Dict[str, "_models.MongoDbDatabaseProgress"]] = None, + databases: Optional[dict[str, "_models.MongoDbDatabaseProgress"]] = None, **kwargs: Any ) -> None: """ @@ -15260,7 +15300,7 @@ class MongoDbMigrationSettings(_serialization.Model): def __init__( self, *, - databases: Dict[str, "_models.MongoDbDatabaseSettings"], + databases: dict[str, "_models.MongoDbDatabaseSettings"], source: "_models.MongoDbConnectionInfo", target: "_models.MongoDbConnectionInfo", boost_r_us: Optional[int] = None, @@ -15394,7 +15434,7 @@ class MongoDbShardKeyInfo(_serialization.Model): "is_unique": {"key": "isUnique", "type": "bool"}, } - def __init__(self, *, fields: List["_models.MongoDbShardKeyField"], is_unique: bool, **kwargs: Any) -> None: + 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] @@ -15427,7 +15467,7 @@ class MongoDbShardKeySetting(_serialization.Model): } def __init__( - self, *, fields: List["_models.MongoDbShardKeyField"], is_unique: Optional[bool] = None, **kwargs: Any + self, *, fields: list["_models.MongoDbShardKeyField"], is_unique: Optional[bool] = None, **kwargs: Any ) -> None: """ :keyword fields: The fields within the shard key. Required. @@ -15798,7 +15838,7 @@ class NodeMonitoringData(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.additional_properties: Optional[Dict[str, JSON]] = None + self.additional_properties: Optional[dict[str, JSON]] = None self.node_name: Optional[str] = None self.available_memory_in_mb: Optional[int] = None self.cpu_utilization: Optional[int] = None @@ -15881,7 +15921,7 @@ def __init__(self, **kwargs: Any) -> None: self.source_row_count: Optional[int] = None self.target_row_count: Optional[int] = None self.elapsed_time_in_miliseconds: Optional[float] = None - self.errors: Optional[List["_models.DataMigrationError"]] = None + self.errors: Optional[list["_models.DataMigrationError"]] = None class NonSqlMigrationTaskInput(_serialization.Model): @@ -15925,7 +15965,7 @@ def __init__( target_database_name: str, project_name: str, project_location: str, - selected_tables: List["_models.NonSqlDataMigrationTable"], + selected_tables: list["_models.NonSqlDataMigrationTable"], **kwargs: Any ) -> None: """ @@ -16033,7 +16073,7 @@ def __init__( *, code: Optional[str] = None, message: Optional[str] = None, - details: Optional[List["_models.ODataError"]] = None, + details: Optional[list["_models.ODataError"]] = None, **kwargs: Any ) -> None: """ @@ -16107,7 +16147,7 @@ class OperationListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value: Optional[List["_models.OperationsDefinition"]] = None + self.value: Optional[list["_models.OperationsDefinition"]] = None self.next_link: Optional[str] = None @@ -16153,7 +16193,7 @@ def __init__(self, *, is_data_action: Optional[bool] = None, **kwargs: Any) -> N self.is_data_action = is_data_action self.display: Optional["_models.OperationsDisplayDefinition"] = None self.origin: Optional[Union[str, "_models.OperationOrigin"]] = None - self.properties: Optional[Dict[str, JSON]] = None + self.properties: Optional[dict[str, JSON]] = None class OperationsDisplayDefinition(_serialization.Model): @@ -16320,7 +16360,7 @@ def __init__(self, **kwargs: Any) -> None: self.archive_checksum: Optional[str] = None self.oracle_checksum: Optional[str] = None self.assembly_version: Optional[str] = None - self.supported_oracle_versions: Optional[List[str]] = None + self.supported_oracle_versions: Optional[list[str]] = None class OrphanedUserInfo(_serialization.Model): @@ -16537,14 +16577,14 @@ def __init__( self, *, location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, + tags: Optional[dict[str, str]] = None, etag: Optional[str] = None, source_platform: Optional[Union[str, "_models.ProjectSourcePlatform"]] = None, azure_authentication_info: Optional["_models.AzureActiveDirectoryApp"] = None, target_platform: Optional[Union[str, "_models.ProjectTargetPlatform"]] = None, source_connection_info: Optional["_models.ConnectionInfo"] = None, target_connection_info: Optional["_models.ConnectionInfo"] = None, - databases_info: Optional[List["_models.DatabaseInfo"]] = None, + databases_info: Optional[list["_models.DatabaseInfo"]] = None, **kwargs: Any ) -> None: """ @@ -16740,7 +16780,7 @@ class ProjectList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.Project"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.Project"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: List of projects. @@ -16955,7 +16995,7 @@ class QuotaList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.Quota"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.Quota"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: List of quotas. @@ -17166,11 +17206,11 @@ def __init__(self, **kwargs: Any) -> None: self.family: Optional[str] = None self.kind: Optional[str] = None self.capacity: Optional["_models.ResourceSkuCapacity"] = None - self.locations: Optional[List[str]] = None - self.api_versions: Optional[List[str]] = None - self.costs: Optional[List["_models.ResourceSkuCosts"]] = None - self.capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None - self.restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None + self.locations: Optional[list[str]] = None + self.api_versions: Optional[list[str]] = None + self.costs: Optional[list["_models.ResourceSkuCosts"]] = None + self.capabilities: Optional[list["_models.ResourceSkuCapabilities"]] = None + self.restrictions: Optional[list["_models.ResourceSkuRestrictions"]] = None class ResourceSkuCapabilities(_serialization.Model): @@ -17304,7 +17344,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None - self.values: Optional[List[str]] = None + self.values: Optional[list[str]] = None self.reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None @@ -17329,7 +17369,7 @@ class ResourceSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None: + 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] @@ -17369,8 +17409,8 @@ def __init__( *, schema_differences: Optional["_models.SchemaComparisonValidationResultType"] = None, validation_errors: Optional["_models.ValidationError"] = None, - source_database_object_count: Optional[Dict[str, int]] = None, - target_database_object_count: Optional[Dict[str, int]] = None, + source_database_object_count: Optional[dict[str, int]] = None, + target_database_object_count: Optional[dict[str, int]] = None, **kwargs: Any ) -> None: """ @@ -17651,7 +17691,7 @@ class ServiceOperationList(_serialization.Model): def __init__( self, *, - value: Optional[List["_models.ServiceOperation"]] = None, + value: Optional[list["_models.ServiceOperation"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: @@ -17740,7 +17780,7 @@ class ServiceSkuList(_serialization.Model): def __init__( self, *, - value: Optional[List["_models.AvailableServiceSku"]] = None, + value: Optional[list["_models.AvailableServiceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: @@ -17920,13 +17960,13 @@ def __init__(self, **kwargs: Any) -> None: self.first_lsn: Optional[str] = None self.last_lsn: Optional[str] = None self.backup_type: Optional[str] = None - self.list_of_backup_files: Optional[List["_models.SqlBackupFileInfo"]] = None + self.list_of_backup_files: Optional[list["_models.SqlBackupFileInfo"]] = None self.backup_start_date: Optional[datetime.datetime] = None self.backup_finish_date: Optional[datetime.datetime] = None self.is_backup_restored: Optional[bool] = None self.has_backup_checksums: Optional[bool] = None self.family_count: Optional[int] = None - self.ignore_reasons: Optional[List[str]] = None + self.ignore_reasons: Optional[list[str]] = None class SqlConnectionInfo(ConnectionInfo): @@ -18145,8 +18185,8 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.migration_state: Optional[str] = None - self.sql_data_copy_errors: Optional[List[str]] = None - self.list_of_copy_progress_details: Optional[List["_models.CopyProgressDetails"]] = None + self.sql_data_copy_errors: Optional[list[str]] = None + self.list_of_copy_progress_details: Optional[list["_models.CopyProgressDetails"]] = None class SqlDbOfflineConfiguration(_serialization.Model): @@ -18235,7 +18275,7 @@ class SqlMigrationListResult(_serialization.Model): def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.value: Optional[List["_models.SqlMigrationService"]] = None + self.value: Optional[list["_models.SqlMigrationService"]] = None self.next_link: Optional[str] = None @@ -18282,7 +18322,7 @@ class SqlMigrationService(TrackedResourceAutoGenerated): "integration_runtime_state": {"key": "properties.integrationRuntimeState", "type": "str"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, location: Optional[str] = None, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: :paramtype location: str @@ -18305,7 +18345,7 @@ class SqlMigrationServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: + def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Dictionary of :code:``. :paramtype tags: dict[str, str] @@ -18394,7 +18434,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.name: Optional[str] = None self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.exceptions_and_warnings: Optional[List["_models.ReportableException"]] = None + self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None class SyncMigrationDatabaseErrorEvent(_serialization.Model): @@ -18601,7 +18641,7 @@ class TaskList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.ProjectTask"]] = None, next_link: Optional[str] = None, **kwargs: Any + self, *, value: Optional[list["_models.ProjectTask"]] = None, next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: List of tasks. @@ -18659,7 +18699,7 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.driver_package_name: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class UploadOCIDriverTaskProperties(ProjectTaskProperties): @@ -18724,7 +18764,7 @@ class UploadOCIDriverTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.UploadOCIDriverTaskInput"] = None, **kwargs: Any ) -> None: @@ -18737,7 +18777,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Service.Upload.OCI" self.input = input - self.output: Optional[List["_models.UploadOCIDriverTaskOutput"]] = None + self.output: Optional[list["_models.UploadOCIDriverTaskOutput"]] = None class UserAssignedIdentity(_serialization.Model): @@ -18831,7 +18871,7 @@ class ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(ProjectTaskProperti def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ValidateSyncMigrationInputSqlServerTaskInput"] = None, **kwargs: Any ) -> None: @@ -18844,7 +18884,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ValidateMigrationInput.SqlServer.SqlDb.Sync" self.input = input - self.output: Optional[List["_models.ValidateSyncMigrationInputSqlServerTaskOutput"]] = None + self.output: Optional[list["_models.ValidateSyncMigrationInputSqlServerTaskOutput"]] = None class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): # pylint: disable=name-too-long @@ -18903,7 +18943,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.name: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -18971,7 +19011,7 @@ class ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperti def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ValidateMigrationInputSqlServerSqlMISyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -18985,7 +19025,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS" self.input = input - self.output: Optional[List["_models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput"]] = None + self.output: Optional[list["_models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput"]] = None class ValidateMigrationInputSqlServerSqlMITaskInput(_serialization.Model): # pylint: disable=name-too-long @@ -19034,9 +19074,9 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_databases: List["_models.MigrateSqlServerSqlMIDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], backup_blob_share: "_models.BlobShare", - selected_logins: Optional[List[str]] = None, + selected_logins: Optional[list[str]] = None, backup_file_share: Optional["_models.FileShare"] = None, backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, **kwargs: Any @@ -19128,11 +19168,11 @@ def __init__(self, *, database_backup_info: Optional["_models.DatabaseBackupInfo super().__init__(**kwargs) self.id: Optional[str] = None self.name: Optional[str] = None - self.restore_database_name_errors: Optional[List["_models.ReportableException"]] = None - self.backup_folder_errors: Optional[List["_models.ReportableException"]] = None - self.backup_share_credentials_errors: Optional[List["_models.ReportableException"]] = None - self.backup_storage_account_errors: Optional[List["_models.ReportableException"]] = None - self.existing_backup_errors: Optional[List["_models.ReportableException"]] = None + self.restore_database_name_errors: Optional[list["_models.ReportableException"]] = None + self.backup_folder_errors: Optional[list["_models.ReportableException"]] = None + self.backup_share_credentials_errors: Optional[list["_models.ReportableException"]] = None + self.backup_storage_account_errors: Optional[list["_models.ReportableException"]] = None + self.existing_backup_errors: Optional[list["_models.ReportableException"]] = None self.database_backup_info = database_backup_info @@ -19200,7 +19240,7 @@ class ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.ValidateMigrationInputSqlServerSqlMITaskInput"] = None, **kwargs: Any ) -> None: @@ -19214,7 +19254,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "ValidateMigrationInput.SqlServer.AzureSqlDbMI" self.input = input - self.output: Optional[List["_models.ValidateMigrationInputSqlServerSqlMITaskOutput"]] = None + self.output: Optional[list["_models.ValidateMigrationInputSqlServerSqlMITaskOutput"]] = None class ValidateMongoDbTaskProperties(ProjectTaskProperties): @@ -19279,7 +19319,7 @@ class ValidateMongoDbTaskProperties(ProjectTaskProperties): def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MongoDbMigrationSettings"] = None, **kwargs: Any ) -> None: @@ -19292,7 +19332,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Validate.MongoDb" self.input = input - self.output: Optional[List["_models.MongoDbMigrationProgress"]] = None + self.output: Optional[list["_models.MongoDbMigrationProgress"]] = None class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long @@ -19360,7 +19400,7 @@ class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties def __init__( self, *, - client_data: Optional[Dict[str, str]] = None, + client_data: Optional[dict[str, str]] = None, input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = None, **kwargs: Any ) -> None: @@ -19374,7 +19414,7 @@ def __init__( super().__init__(client_data=client_data, **kwargs) self.task_type: str = "Validate.Oracle.AzureDbPostgreSql.Sync" self.input = input - self.output: Optional[List["_models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput"]] = None + self.output: Optional[list["_models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput"]] = None class ValidateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long @@ -19398,7 +19438,7 @@ class ValidateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): # py def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ValidateSyncMigrationInputSqlServerTaskInput(_serialization.Model): # pylint: disable=name-too-long @@ -19432,7 +19472,7 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - selected_databases: List["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], + selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], **kwargs: Any ) -> None: """ @@ -19480,7 +19520,7 @@ def __init__(self, **kwargs: Any) -> None: super().__init__(**kwargs) self.id: Optional[str] = None self.name: Optional[str] = None - self.validation_errors: Optional[List["_models.ReportableException"]] = None + self.validation_errors: Optional[list["_models.ReportableException"]] = None class ValidationError(_serialization.Model): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py index 391e31878cce..efb72175741f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -36,7 +36,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -48,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +83,7 @@ def build_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -125,7 +126,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -161,7 +162,7 @@ def build_get_for_scope_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -260,7 +261,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) @@ -329,7 +333,10 @@ def _create_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -526,7 +533,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -686,7 +696,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py index 87daa813a34b..e6c27abd9e16 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -36,7 +36,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -48,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -82,7 +83,7 @@ def build_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -125,7 +126,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -161,7 +162,7 @@ def build_get_for_scope_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -260,7 +261,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) @@ -329,7 +333,10 @@ def _create_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -526,7 +533,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -686,7 +696,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py index f40cd53ded1d..32bfa1578822 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload from azure.core import PipelineClient from azure.core.exceptions import ( @@ -34,7 +34,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -53,7 +54,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +90,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -129,7 +130,7 @@ def build_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) # Construct URL _url = kwargs.pop( "template_url", @@ -158,7 +159,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = kwargs.pop( @@ -190,7 +191,7 @@ def build_retry_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py index c1d7842426ac..85e1084aa5a5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload from azure.core import PipelineClient from azure.core.exceptions import ( @@ -34,7 +34,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -53,7 +54,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +90,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -130,7 +131,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -164,7 +165,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = kwargs.pop( @@ -196,7 +197,7 @@ def build_cutover_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = kwargs.pop( diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py index 93f7b44b3b9b..29a8e1c30898 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload from azure.core import PipelineClient from azure.core.exceptions import ( @@ -34,7 +34,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -53,7 +54,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +90,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -130,7 +131,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -164,7 +165,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = kwargs.pop( @@ -196,7 +197,7 @@ def build_cutover_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # Construct URL _url = kwargs.pop( diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py index 95ca75e91e3c..53f4f4bc49a1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import PipelineClient @@ -32,7 +32,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -44,7 +45,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -76,7 +77,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -109,7 +110,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -145,7 +146,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -178,7 +179,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -214,7 +215,7 @@ def build_read_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -247,7 +248,7 @@ def build_read_write_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -377,7 +378,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -440,7 +444,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) @@ -594,7 +601,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) @@ -659,7 +669,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -809,7 +822,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) @@ -875,7 +891,10 @@ def read( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) @@ -940,7 +959,10 @@ def read_write( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py index e01523169c23..1a5ed2b8cb23 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -36,7 +36,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -48,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -81,7 +82,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -117,7 +118,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -150,7 +151,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -184,7 +185,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -212,7 +213,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -240,7 +241,7 @@ def build_list_migrations_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -334,7 +335,10 @@ def get(self, resource_group_name: str, migration_service_name: str, **kwargs: A if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("MigrationService", pipeline_response.http_response) @@ -401,7 +405,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -576,7 +583,10 @@ def _delete_initial(self, resource_group_name: str, migration_service_name: str, except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -700,7 +710,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) response_headers = {} @@ -912,7 +925,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -987,7 +1003,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1072,7 +1091,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ErrorResponse, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py index d9850dc67655..987e42035f75 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Dict, Optional, TypeVar +from typing import Any, Callable, Optional, TypeVar import urllib.parse from azure.core import PipelineClient @@ -30,7 +30,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -40,7 +41,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py index e4fddcf09d4e..3d2ede5a2057 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import PipelineClient @@ -32,7 +32,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -42,7 +43,7 @@ def build_list_request(group_name: str, service_name: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -73,7 +74,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -108,7 +109,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -146,7 +147,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -180,7 +181,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -307,7 +308,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -451,7 +455,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Project", pipeline_response.http_response) @@ -512,7 +519,10 @@ def get(self, group_name: str, service_name: str, project_name: str, **kwargs: A if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Project", pipeline_response.http_response) @@ -584,7 +594,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -727,7 +740,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("Project", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py index 01604342f994..65681f63da26 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Dict, Optional, TypeVar +from typing import Any, Callable, Optional, TypeVar import urllib.parse from azure.core import PipelineClient @@ -30,7 +30,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -40,7 +41,7 @@ def build_list_skus_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -151,7 +152,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py index 8105107fab98..c4eb5d858e9d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import PipelineClient @@ -32,7 +32,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -44,7 +45,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -77,7 +78,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -118,7 +119,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -158,7 +159,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -192,7 +193,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -227,7 +228,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -358,7 +359,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -508,7 +512,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -574,7 +581,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -647,7 +657,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -793,7 +806,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -854,7 +870,10 @@ def cancel(self, group_name: str, service_name: str, task_name: str, **kwargs: A if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py index bbd7756938a3..93c551694017 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -36,7 +36,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -48,7 +49,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -80,7 +81,7 @@ def build_get_request(group_name: str, service_name: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -116,7 +117,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -147,7 +148,7 @@ def build_update_request(group_name: str, service_name: str, subscription_id: st _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -179,7 +180,7 @@ def build_check_status_request(group_name: str, service_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -208,7 +209,7 @@ def build_start_request(group_name: str, service_name: str, subscription_id: str _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -237,7 +238,7 @@ def build_stop_request(group_name: str, service_name: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -266,7 +267,7 @@ def build_list_skus_request(group_name: str, service_name: str, subscription_id: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -297,7 +298,7 @@ def build_check_children_name_availability_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -329,7 +330,7 @@ def build_list_by_resource_group_request(group_name: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -357,7 +358,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -381,7 +382,7 @@ def build_check_name_availability_request(location: str, subscription_id: str, * _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -486,7 +487,10 @@ def _create_or_update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -694,7 +698,10 @@ def get(self, group_name: str, service_name: str, **kwargs: Any) -> _models.Data if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) @@ -746,7 +753,10 @@ def _delete_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -874,7 +884,10 @@ def _update_initial( except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -1073,7 +1086,10 @@ def check_status( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("DataMigrationServiceStatusResponse", pipeline_response.http_response) @@ -1122,7 +1138,10 @@ def _start_initial(self, group_name: str, service_name: str, **kwargs: Any) -> I except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -1227,7 +1246,10 @@ def _stop_initial(self, group_name: str, service_name: str, **kwargs: Any) -> It except (StreamConsumedError, StreamClosedError): pass map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) @@ -1370,7 +1392,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1501,7 +1526,10 @@ def check_children_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) @@ -1586,7 +1614,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1665,7 +1696,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -1778,7 +1812,10 @@ def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py index b88d42ef6318..f07aa2a2dc0c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Iterator, Optional, TypeVar, Union, cast, overload +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -36,7 +36,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -48,7 +49,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -79,7 +80,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -112,7 +113,7 @@ def build_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) # Construct URL _url = kwargs.pop( "template_url", @@ -138,7 +139,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -170,7 +171,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -200,7 +201,7 @@ def build_list_auth_keys_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -231,7 +232,7 @@ def build_regenerate_auth_keys_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -265,7 +266,7 @@ def build_delete_node_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -299,7 +300,7 @@ def build_list_migrations_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -330,7 +331,7 @@ def build_list_monitoring_data_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -359,7 +360,7 @@ def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> H _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py index 37def429c740..3fc69c5c90f6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from collections.abc import MutableMapping from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload +from typing import Any, Callable, IO, Optional, TypeVar, Union, overload import urllib.parse from azure.core import PipelineClient @@ -32,7 +32,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -50,7 +51,7 @@ def build_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -84,7 +85,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -127,7 +128,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -169,7 +170,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -204,7 +205,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -240,7 +241,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -273,7 +274,7 @@ def build_command_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -411,7 +412,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response @@ -571,7 +575,10 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -646,7 +653,10 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -722,7 +732,10 @@ def delete( # pylint: disable=inconsistent-return-statements if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -878,7 +891,10 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -944,7 +960,10 @@ def cancel( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) @@ -1101,7 +1120,10 @@ def command( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize("CommandProperties", pipeline_response.http_response) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py index d2d960eb1aa5..430fcdf3b01b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Dict, Optional, TypeVar +from typing import Any, Callable, Optional, TypeVar import urllib.parse from azure.core import PipelineClient @@ -30,7 +30,8 @@ from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False @@ -40,7 +41,7 @@ def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> Ht _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -158,7 +159,10 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ApiError, pipeline_response) + error = self._deserialize.failsafe_deserialize( + _models.ApiError, + pipeline_response, + ) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/code_report_swagger.json b/sdk/datamigration/azure-mgmt-datamigration/code_report_swagger.json new file mode 100644 index 000000000000..66114e500632 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/code_report_swagger.json @@ -0,0 +1,57655 @@ +{ + "azure.mgmt.datamigration": { + "class_nodes": { + "DataMigrationManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "database_migrations_mongo_to_cosmos_db_ru_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbRUMongoOperations" + }, + "database_migrations_mongo_to_cosmos_dbv_core_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations" + }, + "database_migrations_sql_db": { + "attr_type": "DatabaseMigrationsSqlDbOperations" + }, + "database_migrations_sql_mi": { + "attr_type": "DatabaseMigrationsSqlMiOperations" + }, + "database_migrations_sql_vm": { + "attr_type": "DatabaseMigrationsSqlVmOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "migration_services": { + "attr_type": "MigrationServicesOperations" + }, + "sql_migration_services": { + "attr_type": "SqlMigrationServicesOperations" + }, + "resource_skus": { + "attr_type": "ResourceSkusOperations" + }, + "services": { + "attr_type": "ServicesOperations" + }, + "tasks": { + "attr_type": "TasksOperations" + }, + "service_tasks": { + "attr_type": "ServiceTasksOperations" + }, + "projects": { + "attr_type": "ProjectsOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "files": { + "attr_type": "FilesOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.operations": { + "class_nodes": { + "DatabaseMigrationsMongoToCosmosDbRUMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlDbOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlDb", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_retry": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlMiOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlMi", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlVmOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlVm", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "FilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "read": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "read_write": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "MigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ProjectsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ResourceSkusOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ServiceTasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_children_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_status": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SqlMigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete_node": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DeleteNode", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_monitoring_data": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "regenerate_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "RegenAuthKeys", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "TasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "CommandProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.models": { + "class_nodes": { + "ApiError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": { + "attr_type": "error" + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AuthType": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCOUNT_KEY": "ACCOUNT_KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AuthenticationKeys": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_key1": { + "default": "none", + "param_type": "keyword_only" + }, + "auth_key2": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "auth_key1": { + "attr_type": "auth_key1" + }, + "auth_key2": { + "attr_type": "auth_key2" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AuthenticationType": { + "type": "Enum", + "methods": {}, + "properties": { + "ACTIVE_DIRECTORY_INTEGRATED": "ACTIVE_DIRECTORY_INTEGRATED", + "ACTIVE_DIRECTORY_PASSWORD": "ACTIVE_DIRECTORY_PASSWORD", + "NONE": "NONE", + "SQL_AUTHENTICATION": "SQL_AUTHENTICATION", + "WINDOWS_AUTHENTICATION": "WINDOWS_AUTHENTICATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AvailableServiceSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_type": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "capacity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": { + "attr_type": "resource_type" + }, + "sku": { + "attr_type": "sku" + }, + "capacity": { + "attr_type": "capacity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AvailableServiceSkuCapacity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "minimum": { + "default": "none", + "param_type": "keyword_only" + }, + "maximum": { + "default": "none", + "param_type": "keyword_only" + }, + "default": { + "default": "none", + "param_type": "keyword_only" + }, + "scale_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum": { + "attr_type": "minimum" + }, + "maximum": { + "attr_type": "maximum" + }, + "default": { + "attr_type": "default" + }, + "scale_type": { + "attr_type": "scale_type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AvailableServiceSkuSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "family": { + "default": "none", + "param_type": "keyword_only" + }, + "size": { + "default": "none", + "param_type": "keyword_only" + }, + "tier": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "family": { + "attr_type": "family" + }, + "size": { + "attr_type": "size" + }, + "tier": { + "attr_type": "tier" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureActiveDirectoryApp": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "application_id": { + "default": "none", + "param_type": "keyword_only" + }, + "app_key": { + "default": "none", + "param_type": "keyword_only" + }, + "tenant_id": { + "default": "none", + "param_type": "keyword_only" + }, + "ignore_azure_permissions": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "application_id": { + "attr_type": "application_id" + }, + "app_key": { + "attr_type": "app_key" + }, + "tenant_id": { + "attr_type": "tenant_id" + }, + "ignore_azure_permissions": { + "attr_type": "ignore_azure_permissions" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "AzureBlob": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_type": { + "default": "none", + "param_type": "keyword_only" + }, + "identity": { + "default": "none", + "param_type": "keyword_only" + }, + "storage_account_resource_id": { + "default": "none", + "param_type": "keyword_only" + }, + "account_key": { + "default": "none", + "param_type": "keyword_only" + }, + "blob_container_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "auth_type": { + "attr_type": "auth_type" + }, + "identity": { + "attr_type": "identity" + }, + "storage_account_resource_id": { + "attr_type": "storage_account_resource_id" + }, + "account_key": { + "attr_type": "account_key" + }, + "blob_container_name": { + "attr_type": "blob_container_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BackupConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_location": { + "default": "none", + "param_type": "keyword_only" + }, + "target_location": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_location": { + "attr_type": "source_location" + }, + "target_location": { + "attr_type": "target_location" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BackupFileInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_location": { + "default": "none", + "param_type": "keyword_only" + }, + "family_sequence_number": { + "default": "none", + "param_type": "keyword_only" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_location": { + "attr_type": "file_location" + }, + "family_sequence_number": { + "attr_type": "family_sequence_number" + }, + "status": { + "attr_type": "status" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BackupFileStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "ARRIVED": "ARRIVED", + "CANCELLED": "CANCELLED", + "QUEUED": "QUEUED", + "RESTORED": "RESTORED", + "RESTORING": "RESTORING", + "UPLOADED": "UPLOADED", + "UPLOADING": "UPLOADING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BackupMode": { + "type": "Enum", + "methods": {}, + "properties": { + "CREATE_BACKUP": "CREATE_BACKUP", + "EXISTING_BACKUP": "EXISTING_BACKUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BackupSetInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "backup_set_id": { + "default": "none", + "param_type": "keyword_only" + }, + "first_lsn": { + "default": "none", + "param_type": "keyword_only" + }, + "last_lsn": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_time": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_type": { + "default": "none", + "param_type": "keyword_only" + }, + "list_of_backup_files": { + "default": "none", + "param_type": "keyword_only" + }, + "database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_start_date": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_finished_date": { + "default": "none", + "param_type": "keyword_only" + }, + "is_backup_restored": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "backup_set_id": { + "attr_type": "backup_set_id" + }, + "first_lsn": { + "attr_type": "first_lsn" + }, + "last_lsn": { + "attr_type": "last_lsn" + }, + "last_modified_time": { + "attr_type": "last_modified_time" + }, + "backup_type": { + "attr_type": "backup_type" + }, + "list_of_backup_files": { + "attr_type": "list_of_backup_files" + }, + "database_name": { + "attr_type": "database_name" + }, + "backup_start_date": { + "attr_type": "backup_start_date" + }, + "backup_finished_date": { + "attr_type": "backup_finished_date" + }, + "is_backup_restored": { + "attr_type": "is_backup_restored" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "BackupType": { + "type": "Enum", + "methods": {}, + "properties": { + "DATABASE": "DATABASE", + "DIFFERENTIAL_DATABASE": "DIFFERENTIAL_DATABASE", + "DIFFERENTIAL_FILE": "DIFFERENTIAL_FILE", + "DIFFERENTIAL_PARTIAL": "DIFFERENTIAL_PARTIAL", + "FILE": "FILE", + "PARTIAL": "PARTIAL", + "TRANSACTION_LOG": "TRANSACTION_LOG", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BlobShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sas_uri": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "sas_uri": { + "attr_type": "sas_uri" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CheckOCIDriverTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server_version": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server_version": { + "attr_type": "server_version" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CheckOCIDriverTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "installed_driver": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "installed_driver": { + "attr_type": "installed_driver" + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CheckOCIDriverTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CommandProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CommandState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "FAILED": "FAILED", + "RUNNING": "RUNNING", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CommandType": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCEL": "CANCEL", + "FINISH": "FINISH", + "MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE": "MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE", + "MIGRATE_SYNC_COMPLETE_DATABASE": "MIGRATE_SYNC_COMPLETE_DATABASE", + "RESTART": "RESTART", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectToMongoDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceMySqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_platform": { + "default": "none", + "param_type": "keyword_only" + }, + "check_permissions_group": { + "default": "none", + "param_type": "keyword_only" + }, + "is_offline_migration": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_platform": { + "attr_type": "target_platform" + }, + "check_permissions_group": { + "attr_type": "check_permissions_group" + }, + "is_offline_migration": { + "attr_type": "is_offline_migration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceMySqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceNonSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "server_properties": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceOracleSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceOracleSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_server_version": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceOracleSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourcePostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourcePostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourcePostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "check_permissions_group": { + "default": "none", + "param_type": "keyword_only" + }, + "collect_databases": { + "default": "bool", + "param_type": "keyword_only" + }, + "collect_logins": { + "default": "bool", + "param_type": "keyword_only" + }, + "collect_agent_jobs": { + "default": "bool", + "param_type": "keyword_only" + }, + "collect_tde_certificate_info": { + "default": "bool", + "param_type": "keyword_only" + }, + "validate_ssis_catalog_only": { + "default": "bool", + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "check_permissions_group": { + "attr_type": "check_permissions_group" + }, + "collect_databases": { + "attr_type": "collect_databases" + }, + "collect_logins": { + "attr_type": "collect_logins" + }, + "collect_agent_jobs": { + "attr_type": "collect_agent_jobs" + }, + "collect_tde_certificate_info": { + "attr_type": "collect_tde_certificate_info" + }, + "validate_ssis_catalog_only": { + "attr_type": "validate_ssis_catalog_only" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskOutputAgentJobLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "job_category": { + "attr_type": null + }, + "is_enabled": { + "attr_type": null + }, + "job_owner": { + "attr_type": null + }, + "last_executed_on": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "migration_eligibility": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "size_mb": { + "attr_type": null + }, + "database_files": { + "attr_type": null + }, + "compatibility_level": { + "attr_type": null + }, + "database_state": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskOutputLoginLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "login_type": { + "attr_type": null + }, + "default_database": { + "attr_type": null + }, + "is_enabled": { + "attr_type": null + }, + "migration_eligibility": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskOutputTaskLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "logins": { + "attr_type": null + }, + "agent_jobs": { + "attr_type": null + }, + "database_tde_certificate_mapping": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToSourceSqlServerTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "task_id": { + "attr_type": "task_id" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetAzureDbForMySqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "is_offline_migration": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "is_offline_migration": { + "attr_type": "is_offline_migration" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetAzureDbForMySqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "server_version": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetAzureDbForMySqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetAzureDbForPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "database_schema_map": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_server_version": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "database_schema_map": { + "attr_type": "database_schema_map" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "database": { + "default": "none", + "param_type": "keyword_only" + }, + "schemas": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database": { + "attr_type": "database" + }, + "schemas": { + "attr_type": "schemas" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlDbSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlDbSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlDbTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "query_object_counts": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "query_object_counts": { + "attr_type": "query_object_counts" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlDbTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "created_on": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "created_on": { + "attr_type": "created_on" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "azure_app": { + "attr_type": "azure_app" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlMISyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlMISyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlMITaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "collect_logins": { + "default": "bool", + "param_type": "keyword_only" + }, + "collect_agent_jobs": { + "default": "bool", + "param_type": "keyword_only" + }, + "validate_ssis_catalog_only": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "collect_logins": { + "attr_type": "collect_logins" + }, + "collect_agent_jobs": { + "attr_type": "collect_agent_jobs" + }, + "validate_ssis_catalog_only": { + "attr_type": "validate_ssis_catalog_only" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlMITaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "logins": { + "attr_type": null + }, + "agent_jobs": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectToTargetSqlMITaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CopyProgressDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "parallel_copy_type": { + "attr_type": null + }, + "used_parallel_copies": { + "attr_type": null + }, + "data_read": { + "attr_type": null + }, + "data_written": { + "attr_type": null + }, + "rows_read": { + "attr_type": null + }, + "rows_copied": { + "attr_type": null + }, + "copy_start": { + "attr_type": null + }, + "copy_throughput": { + "attr_type": null + }, + "copy_duration": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DataIntegrityValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "failed_objects": { + "default": "none", + "param_type": "keyword_only" + }, + "validation_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "failed_objects": { + "attr_type": "failed_objects" + }, + "validation_errors": { + "attr_type": "validation_errors" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DataItemMigrationSummaryResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "items_count": { + "attr_type": null + }, + "items_completed_count": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "result_prefix": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DataMigrationError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "message": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DataMigrationProjectMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_server_name": { + "attr_type": null + }, + "source_server_port": { + "attr_type": null + }, + "source_username": { + "attr_type": null + }, + "target_server_name": { + "attr_type": null + }, + "target_username": { + "attr_type": null + }, + "target_db_name": { + "attr_type": null + }, + "target_using_win_auth": { + "attr_type": null + }, + "selected_migration_tables": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DataMigrationResultCode": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "FATAL_ERROR": "FATAL_ERROR", + "INITIAL": "INITIAL", + "OBJECT_NOT_EXISTS_IN_SOURCE": "OBJECT_NOT_EXISTS_IN_SOURCE", + "OBJECT_NOT_EXISTS_IN_TARGET": "OBJECT_NOT_EXISTS_IN_TARGET", + "TARGET_OBJECT_IS_INACCESSIBLE": "TARGET_OBJECT_IS_INACCESSIBLE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DataMigrationService": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "etag": { + "default": "none", + "param_type": "keyword_only" + }, + "kind": { + "default": "none", + "param_type": "keyword_only" + }, + "sku": { + "default": "none", + "param_type": "keyword_only" + }, + "public_key": { + "default": "none", + "param_type": "keyword_only" + }, + "virtual_subnet_id": { + "default": "none", + "param_type": "keyword_only" + }, + "virtual_nic_id": { + "default": "none", + "param_type": "keyword_only" + }, + "auto_stop_delay": { + "default": "none", + "param_type": "keyword_only" + }, + "delete_resources_on_stop": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "etag": { + "attr_type": "etag" + }, + "kind": { + "attr_type": "kind" + }, + "sku": { + "attr_type": "sku" + }, + "provisioning_state": { + "attr_type": null + }, + "public_key": { + "attr_type": "public_key" + }, + "virtual_subnet_id": { + "attr_type": "virtual_subnet_id" + }, + "virtual_nic_id": { + "attr_type": "virtual_nic_id" + }, + "auto_stop_delay": { + "attr_type": "auto_stop_delay" + }, + "delete_resources_on_stop": { + "attr_type": "delete_resources_on_stop" + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DataMigrationServiceList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DataMigrationServiceStatusResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "agent_version": { + "default": "none", + "param_type": "keyword_only" + }, + "agent_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "status": { + "default": "none", + "param_type": "keyword_only" + }, + "vm_size": { + "default": "none", + "param_type": "keyword_only" + }, + "supported_task_types": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "agent_version": { + "attr_type": "agent_version" + }, + "agent_configuration": { + "attr_type": "agent_configuration" + }, + "status": { + "attr_type": "status" + }, + "vm_size": { + "attr_type": "vm_size" + }, + "supported_task_types": { + "attr_type": "supported_task_types" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Database": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "compatibility_level": { + "default": "none", + "param_type": "keyword_only" + }, + "collation": { + "default": "none", + "param_type": "keyword_only" + }, + "server_name": { + "default": "none", + "param_type": "keyword_only" + }, + "fqdn": { + "default": "none", + "param_type": "keyword_only" + }, + "install_id": { + "default": "none", + "param_type": "keyword_only" + }, + "server_version": { + "default": "none", + "param_type": "keyword_only" + }, + "server_edition": { + "default": "none", + "param_type": "keyword_only" + }, + "server_level": { + "default": "none", + "param_type": "keyword_only" + }, + "server_default_data_path": { + "default": "none", + "param_type": "keyword_only" + }, + "server_default_log_path": { + "default": "none", + "param_type": "keyword_only" + }, + "server_default_backup_path": { + "default": "none", + "param_type": "keyword_only" + }, + "server_core_count": { + "default": "none", + "param_type": "keyword_only" + }, + "server_visible_online_core_count": { + "default": "none", + "param_type": "keyword_only" + }, + "database_state": { + "default": "none", + "param_type": "keyword_only" + }, + "server_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "name": { + "attr_type": "name" + }, + "compatibility_level": { + "attr_type": "compatibility_level" + }, + "collation": { + "attr_type": "collation" + }, + "server_name": { + "attr_type": "server_name" + }, + "fqdn": { + "attr_type": "fqdn" + }, + "install_id": { + "attr_type": "install_id" + }, + "server_version": { + "attr_type": "server_version" + }, + "server_edition": { + "attr_type": "server_edition" + }, + "server_level": { + "attr_type": "server_level" + }, + "server_default_data_path": { + "attr_type": "server_default_data_path" + }, + "server_default_log_path": { + "attr_type": "server_default_log_path" + }, + "server_default_backup_path": { + "attr_type": "server_default_backup_path" + }, + "server_core_count": { + "attr_type": "server_core_count" + }, + "server_visible_online_core_count": { + "attr_type": "server_visible_online_core_count" + }, + "database_state": { + "attr_type": "database_state" + }, + "server_id": { + "attr_type": "server_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseBackupInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": { + "attr_type": null + }, + "backup_type": { + "attr_type": null + }, + "backup_files": { + "attr_type": null + }, + "position": { + "attr_type": null + }, + "is_damaged": { + "attr_type": null + }, + "is_compressed": { + "attr_type": null + }, + "family_count": { + "attr_type": null + }, + "backup_finish_date": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseCompatLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPAT_LEVEL100": "COMPAT_LEVEL100", + "COMPAT_LEVEL110": "COMPAT_LEVEL110", + "COMPAT_LEVEL120": "COMPAT_LEVEL120", + "COMPAT_LEVEL130": "COMPAT_LEVEL130", + "COMPAT_LEVEL140": "COMPAT_LEVEL140", + "COMPAT_LEVEL80": "COMPAT_LEVEL80", + "COMPAT_LEVEL90": "COMPAT_LEVEL90", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseFileInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "logical_name": { + "default": "none", + "param_type": "keyword_only" + }, + "physical_full_name": { + "default": "none", + "param_type": "keyword_only" + }, + "restore_full_name": { + "default": "none", + "param_type": "keyword_only" + }, + "file_type": { + "default": "none", + "param_type": "keyword_only" + }, + "size_mb": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": { + "attr_type": "database_name" + }, + "id": { + "attr_type": "id" + }, + "logical_name": { + "attr_type": "logical_name" + }, + "physical_full_name": { + "attr_type": "physical_full_name" + }, + "restore_full_name": { + "attr_type": "restore_full_name" + }, + "file_type": { + "attr_type": "file_type" + }, + "size_mb": { + "attr_type": "size_mb" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseFileInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "logical_name": { + "default": "none", + "param_type": "keyword_only" + }, + "physical_full_name": { + "default": "none", + "param_type": "keyword_only" + }, + "restore_full_name": { + "default": "none", + "param_type": "keyword_only" + }, + "file_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "logical_name": { + "attr_type": "logical_name" + }, + "physical_full_name": { + "attr_type": "physical_full_name" + }, + "restore_full_name": { + "attr_type": "restore_full_name" + }, + "file_type": { + "attr_type": "file_type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseFileType": { + "type": "Enum", + "methods": {}, + "properties": { + "FILESTREAM": "FILESTREAM", + "FULLTEXT": "FULLTEXT", + "LOG": "LOG", + "NOT_SUPPORTED": "NOT_SUPPORTED", + "ROWS": "ROWS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_database_name": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database_name": { + "attr_type": "source_database_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationBase": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationBaseListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationBaseProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationCosmosDbMongo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "source_mongo_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "target_mongo_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "collection_list": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "source_mongo_connection": { + "attr_type": "source_mongo_connection" + }, + "target_mongo_connection": { + "attr_type": "target_mongo_connection" + }, + "collection_list": { + "attr_type": "collection_list" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationCosmosDbMongoListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "source_sql_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "source_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_collation": { + "default": "none", + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "source_sql_connection": { + "attr_type": "source_sql_connection" + }, + "source_database_name": { + "attr_type": "source_database_name" + }, + "source_server_name": { + "attr_type": null + }, + "target_database_collation": { + "attr_type": "target_database_collation" + }, + "sql_server_instance_id": { + "attr_type": "sql_server_instance_id" + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationPropertiesCosmosDbMongo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "source_mongo_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "target_mongo_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "collection_list": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "source_mongo_connection": { + "attr_type": "source_mongo_connection" + }, + "target_mongo_connection": { + "attr_type": "target_mongo_connection" + }, + "collection_list": { + "attr_type": "collection_list" + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationPropertiesSqlDb": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "source_sql_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "source_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_collation": { + "default": "none", + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "default": "none", + "param_type": "keyword_only" + }, + "target_sql_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "table_list": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "migration_status_details": { + "attr_type": null + }, + "target_sql_connection": { + "attr_type": "target_sql_connection" + }, + "offline_configuration": { + "attr_type": null + }, + "table_list": { + "attr_type": "table_list" + }, + "source_sql_connection": { + "attr_type": "source_sql_connection" + }, + "source_database_name": { + "attr_type": "source_database_name" + }, + "source_server_name": { + "attr_type": null + }, + "target_database_collation": { + "attr_type": "target_database_collation" + }, + "sql_server_instance_id": { + "attr_type": "sql_server_instance_id" + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationPropertiesSqlMi": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "source_sql_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "source_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_collation": { + "default": "none", + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "offline_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "migration_status_details": { + "attr_type": null + }, + "backup_configuration": { + "attr_type": "backup_configuration" + }, + "offline_configuration": { + "attr_type": "offline_configuration" + }, + "source_sql_connection": { + "attr_type": "source_sql_connection" + }, + "source_database_name": { + "attr_type": "source_database_name" + }, + "source_server_name": { + "attr_type": null + }, + "target_database_collation": { + "attr_type": "target_database_collation" + }, + "sql_server_instance_id": { + "attr_type": "sql_server_instance_id" + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationPropertiesSqlVm": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_service": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "provisioning_error": { + "default": "none", + "param_type": "keyword_only" + }, + "source_sql_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "source_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_collation": { + "default": "none", + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "offline_configuration": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": { + "attr_type": null + }, + "migration_status_details": { + "attr_type": null + }, + "backup_configuration": { + "attr_type": "backup_configuration" + }, + "offline_configuration": { + "attr_type": "offline_configuration" + }, + "source_sql_connection": { + "attr_type": "source_sql_connection" + }, + "source_database_name": { + "attr_type": "source_database_name" + }, + "source_server_name": { + "attr_type": null + }, + "target_database_collation": { + "attr_type": "target_database_collation" + }, + "sql_server_instance_id": { + "attr_type": "sql_server_instance_id" + }, + "scope": { + "attr_type": "scope" + }, + "provisioning_state": { + "attr_type": null + }, + "migration_status": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_service": { + "attr_type": "migration_service" + }, + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "migration_failure_error": { + "attr_type": null + }, + "provisioning_error": { + "attr_type": "provisioning_error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationSqlDb": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationSqlMi": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationSqlVm": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": { + "attr_type": "properties" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "BACKUP": "BACKUP", + "COMPLETED": "COMPLETED", + "FILE_COPY": "FILE_COPY", + "INITIALIZE": "INITIALIZE", + "NONE": "NONE", + "RESTORE": "RESTORE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELLED": "CANCELLED", + "COMPLETED": "COMPLETED", + "CUTOVER_START": "CUTOVER_START", + "FAILED": "FAILED", + "FULL_BACKUP_UPLOAD_START": "FULL_BACKUP_UPLOAD_START", + "INITIAL": "INITIAL", + "LOG_SHIPPING_START": "LOG_SHIPPING_START", + "POST_CUTOVER_COMPLETE": "POST_CUTOVER_COMPLETE", + "UNDEFINED": "UNDEFINED", + "UPLOAD_LOG_FILES_START": "UPLOAD_LOG_FILES_START", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseObjectName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "object_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": { + "attr_type": null + }, + "object_name": { + "attr_type": null + }, + "schema_name": { + "attr_type": null + }, + "object_type": { + "attr_type": "object_type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseState": { + "type": "Enum", + "methods": {}, + "properties": { + "COPYING": "COPYING", + "EMERGENCY": "EMERGENCY", + "OFFLINE": "OFFLINE", + "OFFLINE_SECONDARY": "OFFLINE_SECONDARY", + "ONLINE": "ONLINE", + "RECOVERING": "RECOVERING", + "RECOVERY_PENDING": "RECOVERY_PENDING", + "RESTORING": "RESTORING", + "SUSPECT": "SUSPECT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseSummaryResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "size_mb": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "items_count": { + "attr_type": null + }, + "items_completed_count": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "result_prefix": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DatabaseTable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "has_rows": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "DeleteNode": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "node_name": { + "default": "none", + "param_type": "keyword_only" + }, + "integration_runtime_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "node_name": { + "attr_type": "node_name" + }, + "integration_runtime_name": { + "attr_type": "integration_runtime_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "target": { + "attr_type": null + }, + "details": { + "attr_type": null + }, + "additional_info": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": { + "attr_type": "error" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ErrorType": { + "type": "Enum", + "methods": {}, + "properties": { + "DEFAULT": "DEFAULT", + "ERROR": "ERROR", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ExecutionStatistics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "execution_count": { + "default": "none", + "param_type": "keyword_only" + }, + "cpu_time_ms": { + "default": "none", + "param_type": "keyword_only" + }, + "elapsed_time_ms": { + "default": "none", + "param_type": "keyword_only" + }, + "wait_stats": { + "default": "none", + "param_type": "keyword_only" + }, + "has_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "sql_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "execution_count": { + "attr_type": "execution_count" + }, + "cpu_time_ms": { + "attr_type": "cpu_time_ms" + }, + "elapsed_time_ms": { + "attr_type": "elapsed_time_ms" + }, + "wait_stats": { + "attr_type": "wait_stats" + }, + "has_errors": { + "attr_type": "has_errors" + }, + "sql_errors": { + "attr_type": "sql_errors" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "path": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "path": { + "attr_type": "path" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "FileStorageInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "uri": { + "default": "none", + "param_type": "keyword_only" + }, + "headers": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "uri": { + "attr_type": "uri" + }, + "headers": { + "attr_type": "headers" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetProjectDetailsNonSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "keyword_only" + }, + "project_location": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "project_name": { + "attr_type": "project_name" + }, + "project_location": { + "attr_type": "project_location" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetTdeCertificatesSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": null, + "param_type": "keyword_only" + }, + "selected_certificates": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": { + "attr_type": "connection_info" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "selected_certificates": { + "attr_type": "selected_certificates" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetTdeCertificatesSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "base64_encoded_certificates": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetTdeCertificatesSqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesMySqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": { + "attr_type": "connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesMySqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "databases_to_tables": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesMySqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesOracleTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_schemas": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": { + "attr_type": "connection_info" + }, + "selected_schemas": { + "attr_type": "selected_schemas" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesOracleTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "schema_name": { + "attr_type": null + }, + "tables": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesOracleTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesPostgreSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": { + "attr_type": "connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesPostgreSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": { + "attr_type": null + }, + "tables": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesPostgreSqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_source_databases": { + "default": null, + "param_type": "keyword_only" + }, + "selected_target_databases": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "selected_source_databases": { + "attr_type": "selected_source_databases" + }, + "selected_target_databases": { + "attr_type": "selected_target_databases" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "databases_to_source_tables": { + "attr_type": null + }, + "databases_to_target_tables": { + "attr_type": null + }, + "table_validation_errors": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": { + "attr_type": "connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "databases_to_tables": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "GetUserTablesSqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "task_id": { + "attr_type": "task_id" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InstallOCIDriverTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "driver_package_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_package_name": { + "attr_type": "driver_package_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InstallOCIDriverTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "InstallOCIDriverTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "IntegrationRuntimeMonitoringData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "nodes": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "LoginMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "ASSIGN_ROLE_MEMBERSHIP": "ASSIGN_ROLE_MEMBERSHIP", + "ASSIGN_ROLE_OWNERSHIP": "ASSIGN_ROLE_OWNERSHIP", + "COMPLETED": "COMPLETED", + "ESTABLISH_OBJECT_PERMISSIONS": "ESTABLISH_OBJECT_PERMISSIONS", + "ESTABLISH_SERVER_PERMISSIONS": "ESTABLISH_SERVER_PERMISSIONS", + "ESTABLISH_USER_MAPPING": "ESTABLISH_USER_MAPPING", + "INITIALIZE": "INITIALIZE", + "LOGIN_MIGRATION": "LOGIN_MIGRATION", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LoginType": { + "type": "Enum", + "methods": {}, + "properties": { + "ASYMMETRIC_KEY": "ASYMMETRIC_KEY", + "CERTIFICATE": "CERTIFICATE", + "EXTERNAL_GROUP": "EXTERNAL_GROUP", + "EXTERNAL_USER": "EXTERNAL_USER", + "SQL_LOGIN": "SQL_LOGIN", + "WINDOWS_GROUP": "WINDOWS_GROUP", + "WINDOWS_USER": "WINDOWS_USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ManagedServiceIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "tenant_id": { + "attr_type": null + }, + "type": { + "attr_type": "type" + }, + "user_assigned_identities": { + "attr_type": "user_assigned_identities" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ManagedServiceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MiSqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_resource_id": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "managed_instance_resource_id": { + "attr_type": "managed_instance_resource_id" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMISyncCompleteCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_database_name": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database_name": { + "attr_type": "source_database_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMISyncCompleteCommandOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "errors": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "errors": { + "attr_type": "errors" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMISyncCompleteCommandProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMongoDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "table_map": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "table_map": { + "attr_type": "table_map" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "make_source_server_read_only": { + "default": "bool", + "param_type": "keyword_only" + }, + "started_on": { + "default": "none", + "param_type": "keyword_only" + }, + "optional_agent_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "make_source_server_read_only": { + "attr_type": "make_source_server_read_only" + }, + "started_on": { + "attr_type": "started_on" + }, + "optional_agent_settings": { + "attr_type": "optional_agent_settings" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "number_of_objects": { + "attr_type": null + }, + "number_of_objects_completed": { + "attr_type": null + }, + "error_count": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "result_prefix": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "last_storage_update": { + "attr_type": null + }, + "object_summary": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "databases": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_report_result": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "duration_in_seconds": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "databases": { + "attr_type": "databases" + }, + "database_summary": { + "attr_type": null + }, + "migration_report_result": { + "attr_type": "migration_report_result" + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "last_storage_update": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "object_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "items_count": { + "attr_type": null + }, + "items_completed_count": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "result_prefix": { + "attr_type": null + }, + "last_storage_update": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "is_cloneable": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "is_cloneable": { + "attr_type": "is_cloneable" + }, + "task_id": { + "attr_type": "task_id" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "source_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "target_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "table_map": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "migration_setting": { + "attr_type": "migration_setting" + }, + "source_setting": { + "attr_type": "source_setting" + }, + "target_setting": { + "attr_type": "target_setting" + }, + "table_map": { + "attr_type": "table_map" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "default": "none", + "param_type": "keyword_only" + }, + "events": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error_message": { + "attr_type": "error_message" + }, + "events": { + "attr_type": "events" + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_state": { + "attr_type": null + }, + "incoming_changes": { + "attr_type": null + }, + "applied_changes": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "full_load_completed_tables": { + "attr_type": null + }, + "full_load_loading_tables": { + "attr_type": null + }, + "full_load_queued_tables": { + "attr_type": null + }, + "full_load_errored_tables": { + "attr_type": null + }, + "initialization_completed": { + "attr_type": null + }, + "latency": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "table_name": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "full_load_est_finish_time": { + "attr_type": null + }, + "full_load_started_on": { + "attr_type": null + }, + "full_load_ended_on": { + "attr_type": null + }, + "full_load_total_rows": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "total_changes_applied": { + "attr_type": null + }, + "data_errors_counter": { + "attr_type": null + }, + "last_modified_time": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "case_manipulation": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "schema_name": { + "default": "none", + "param_type": "keyword_only" + }, + "table_map": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "source_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "target_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "case_manipulation": { + "attr_type": "case_manipulation" + }, + "name": { + "attr_type": "name" + }, + "schema_name": { + "attr_type": "schema_name" + }, + "table_map": { + "attr_type": "table_map" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "migration_setting": { + "attr_type": "migration_setting" + }, + "source_setting": { + "attr_type": "source_setting" + }, + "target_setting": { + "attr_type": "target_setting" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "default": "none", + "param_type": "keyword_only" + }, + "events": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error_message": { + "attr_type": "error_message" + }, + "events": { + "attr_type": "events" + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_state": { + "attr_type": null + }, + "incoming_changes": { + "attr_type": null + }, + "applied_changes": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "full_load_completed_tables": { + "attr_type": null + }, + "full_load_loading_tables": { + "attr_type": null + }, + "full_load_queued_tables": { + "attr_type": null + }, + "full_load_errored_tables": { + "attr_type": null + }, + "initialization_completed": { + "attr_type": null + }, + "latency": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "table_name": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "full_load_est_finish_time": { + "attr_type": null + }, + "full_load_started_on": { + "attr_type": null + }, + "full_load_ended_on": { + "attr_type": null + }, + "full_load_total_rows": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "total_changes_applied": { + "attr_type": null + }, + "data_errors_counter": { + "attr_type": null + }, + "last_modified_time": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "source_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "target_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "selected_tables": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "id": { + "attr_type": null + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "migration_setting": { + "attr_type": "migration_setting" + }, + "source_setting": { + "attr_type": "source_setting" + }, + "target_setting": { + "attr_type": "target_setting" + }, + "selected_tables": { + "attr_type": "selected_tables" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "started_on": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "default": "none", + "param_type": "keyword_only" + }, + "events": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error_message": { + "attr_type": "error_message" + }, + "events": { + "attr_type": "events" + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_state": { + "attr_type": null + }, + "incoming_changes": { + "attr_type": null + }, + "applied_changes": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "full_load_completed_tables": { + "attr_type": null + }, + "full_load_loading_tables": { + "attr_type": null + }, + "full_load_queued_tables": { + "attr_type": null + }, + "full_load_errored_tables": { + "attr_type": null + }, + "initialization_completed": { + "attr_type": null + }, + "latency": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "events": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "events": { + "attr_type": "events" + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "database_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server": { + "attr_type": null + }, + "source_server_type": { + "attr_type": null + }, + "target_server_type": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "database_count": { + "attr_type": "database_count" + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "table_name": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "full_load_est_finish_time": { + "attr_type": null + }, + "full_load_started_on": { + "attr_type": null + }, + "full_load_ended_on": { + "attr_type": null + }, + "full_load_total_rows": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "total_changes_applied": { + "attr_type": null + }, + "data_errors_counter": { + "attr_type": null + }, + "last_modified_time": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "created_on": { + "default": "none", + "param_type": "keyword_only" + }, + "is_cloneable": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "task_id": { + "attr_type": "task_id" + }, + "created_on": { + "attr_type": "created_on" + }, + "is_cloneable": { + "attr_type": "is_cloneable" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "schema_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "id": { + "attr_type": "id" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "schema_setting": { + "attr_type": "schema_setting" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "started_on": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "started_on": { + "attr_type": "started_on" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "database_error_result_prefix": { + "attr_type": null + }, + "schema_error_result_prefix": { + "attr_type": null + }, + "number_of_successful_operations": { + "attr_type": null + }, + "number_of_failed_operations": { + "attr_type": null + }, + "file_id": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "command_text": { + "attr_type": null + }, + "error_text": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlServerSqlDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "created_on": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "is_cloneable": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "created_on": { + "attr_type": "created_on" + }, + "task_id": { + "attr_type": "task_id" + }, + "is_cloneable": { + "attr_type": "is_cloneable" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSchemaSqlTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "restore_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_and_restore_folder": { + "default": "none", + "param_type": "keyword_only" + }, + "database_files": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "restore_database_name": { + "attr_type": "restore_database_name" + }, + "backup_and_restore_folder": { + "attr_type": "backup_and_restore_folder" + }, + "database_files": { + "attr_type": "database_files" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "make_source_db_read_only": { + "default": "none", + "param_type": "keyword_only" + }, + "table_map": { + "default": "none", + "param_type": "keyword_only" + }, + "schema_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "make_source_db_read_only": { + "attr_type": "make_source_db_read_only" + }, + "table_map": { + "attr_type": "table_map" + }, + "schema_setting": { + "attr_type": "schema_setting" + }, + "id": { + "attr_type": "id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "schema_name": { + "default": "none", + "param_type": "keyword_only" + }, + "table_map": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "source_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "target_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "name": { + "attr_type": "name" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "schema_name": { + "attr_type": "schema_name" + }, + "table_map": { + "attr_type": "table_map" + }, + "migration_setting": { + "attr_type": "migration_setting" + }, + "source_setting": { + "attr_type": "source_setting" + }, + "target_setting": { + "attr_type": "target_setting" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "validation_options": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "validation_options": { + "attr_type": "validation_options" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "default": "none", + "param_type": "keyword_only" + }, + "events": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error_message": { + "attr_type": "error_message" + }, + "events": { + "attr_type": "events" + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "migration_state": { + "attr_type": null + }, + "incoming_changes": { + "attr_type": null + }, + "applied_changes": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "full_load_completed_tables": { + "attr_type": null + }, + "full_load_loading_tables": { + "attr_type": null + }, + "full_load_queued_tables": { + "attr_type": null + }, + "full_load_errored_tables": { + "attr_type": null + }, + "initialization_completed": { + "attr_type": null + }, + "latency": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server": { + "attr_type": null + }, + "database_count": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "table_name": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "cdc_insert_counter": { + "attr_type": null + }, + "cdc_update_counter": { + "attr_type": null + }, + "cdc_delete_counter": { + "attr_type": null + }, + "full_load_est_finish_time": { + "attr_type": null + }, + "full_load_started_on": { + "attr_type": null + }, + "full_load_ended_on": { + "attr_type": null + }, + "full_load_total_rows": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "total_changes_applied": { + "attr_type": null + }, + "data_errors_counter": { + "attr_type": null + }, + "last_modified_time": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "validation_options": { + "default": "none", + "param_type": "keyword_only" + }, + "started_on": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "validation_options": { + "attr_type": "validation_options" + }, + "started_on": { + "attr_type": "started_on" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "number_of_objects": { + "attr_type": null + }, + "number_of_objects_completed": { + "attr_type": null + }, + "error_count": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "result_prefix": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "object_summary": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_id": { + "attr_type": null + }, + "source_database_name": { + "attr_type": null + }, + "target_database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "data_integrity_validation_result": { + "attr_type": null + }, + "schema_validation_result": { + "attr_type": null + }, + "query_analysis_validation_result": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_validation_result": { + "default": "none", + "param_type": "keyword_only" + }, + "migration_report_result": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "duration_in_seconds": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "database_summary": { + "attr_type": null + }, + "migration_validation_result": { + "attr_type": "migration_validation_result" + }, + "migration_report_result": { + "attr_type": "migration_report_result" + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "object_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "status_message": { + "attr_type": null + }, + "items_count": { + "attr_type": null + }, + "items_completed_count": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "result_prefix": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskOutputValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "summary_results": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_id": { + "attr_type": null + }, + "summary_results": { + "attr_type": "summary_results" + }, + "status": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "is_cloneable": { + "default": "none", + "param_type": "keyword_only" + }, + "created_on": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "task_id": { + "attr_type": "task_id" + }, + "is_cloneable": { + "attr_type": "is_cloneable" + }, + "created_on": { + "attr_type": "created_on" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMIDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "restore_database_name": { + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_file_paths": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "restore_database_name": { + "attr_type": "restore_database_name" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "backup_file_paths": { + "attr_type": "backup_file_paths" + }, + "id": { + "attr_type": "id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "number_of_parallel_database_migrations": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "number_of_parallel_database_migrations": { + "attr_type": "number_of_parallel_database_migrations" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "storage_resource_id": { + "attr_type": "storage_resource_id" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "azure_app": { + "attr_type": "azure_app" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMISyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "source_database_name": { + "attr_type": null + }, + "migration_state": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "full_backup_set_info": { + "attr_type": null + }, + "last_restored_backup_set_info": { + "attr_type": null + }, + "active_backup_sets": { + "attr_type": null + }, + "container_name": { + "attr_type": null + }, + "error_prefix": { + "attr_type": null + }, + "is_full_backup_restored": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMISyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMISyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_count": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "source_server_name": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "target_server_name": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "database_error_count": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMISyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "created_on": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "created_on": { + "attr_type": "created_on" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "backup_blob_share": { + "default": null, + "param_type": "keyword_only" + }, + "started_on": { + "default": "none", + "param_type": "keyword_only" + }, + "selected_logins": { + "default": "none", + "param_type": "keyword_only" + }, + "selected_agent_jobs": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "aad_domain_name": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "started_on": { + "attr_type": "started_on" + }, + "selected_logins": { + "attr_type": "selected_logins" + }, + "selected_agent_jobs": { + "attr_type": "selected_agent_jobs" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "backup_blob_share": { + "attr_type": "backup_blob_share" + }, + "backup_mode": { + "attr_type": "backup_mode" + }, + "aad_domain_name": { + "attr_type": "aad_domain_name" + }, + "encrypted_key_for_secure_fields": { + "attr_type": "encrypted_key_for_secure_fields" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskOutputAgentJobLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "is_enabled": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "database_name": { + "attr_type": null + }, + "size_mb": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "error": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskOutputLoginLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "login_name": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "agent_jobs": { + "attr_type": null + }, + "logins": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "server_role_results": { + "attr_type": null + }, + "orphaned_users_info": { + "attr_type": null + }, + "databases": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSqlServerSqlMITaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "created_on": { + "default": "none", + "param_type": "keyword_only" + }, + "parent_task_id": { + "default": "none", + "param_type": "keyword_only" + }, + "is_cloneable": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "task_id": { + "attr_type": "task_id" + }, + "created_on": { + "attr_type": "created_on" + }, + "parent_task_id": { + "attr_type": "parent_task_id" + }, + "is_cloneable": { + "attr_type": "is_cloneable" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSsisTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "ssis_migration_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ssis_migration_info": { + "attr_type": "ssis_migration_info" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSsisTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "result_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSsisTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "source_server_version": { + "attr_type": null + }, + "source_server_brand_version": { + "attr_type": null + }, + "target_server_version": { + "attr_type": null + }, + "target_server_brand_version": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSsisTaskOutputProjectLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "folder_name": { + "attr_type": null + }, + "project_name": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "stage": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "message": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSsisTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSyncCompleteCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "database_name": { + "default": null, + "param_type": "keyword_only" + }, + "commit_time_stamp": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": { + "attr_type": "database_name" + }, + "commit_time_stamp": { + "attr_type": "commit_time_stamp" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSyncCompleteCommandOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrateSyncCompleteCommandProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "command_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "command_id": { + "attr_type": "command_id" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationEligibilityInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "is_eligible_for_migration": { + "attr_type": null + }, + "validation_messages": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationOperationInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_operation_id": { + "attr_type": "migration_operation_id" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationReportResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "report_url": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": "id" + }, + "report_url": { + "attr_type": "report_url" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationService": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": { + "attr_type": null + }, + "integration_runtime_state": { + "attr_type": null + }, + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationServiceListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationServiceUpdate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "NONE": "NONE", + "SKIPPED": "SKIPPED", + "STOPPED": "STOPPED", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MigrationStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "COMPLETED_WITH_WARNINGS": "COMPLETED_WITH_WARNINGS", + "CONFIGURED": "CONFIGURED", + "CONNECTING": "CONNECTING", + "DEFAULT": "DEFAULT", + "ERROR": "ERROR", + "RUNNING": "RUNNING", + "SELECT_LOGINS": "SELECT_LOGINS", + "SOURCE_AND_TARGET_SELECTED": "SOURCE_AND_TARGET_SELECTED", + "STOPPED": "STOPPED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MigrationStatusDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_state": { + "attr_type": null + }, + "full_backup_set_info": { + "attr_type": null + }, + "last_restored_backup_set_info": { + "attr_type": null + }, + "active_backup_sets": { + "attr_type": null + }, + "invalid_files": { + "attr_type": null + }, + "blob_container_name": { + "attr_type": null + }, + "is_full_backup_restored": { + "attr_type": null + }, + "restore_blocking_reason": { + "attr_type": null + }, + "complete_restore_error_message": { + "attr_type": null + }, + "file_upload_blocking_errors": { + "attr_type": null + }, + "current_restoring_filename": { + "attr_type": null + }, + "last_restored_filename": { + "attr_type": null + }, + "pending_log_backups_count": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationTableMetadata": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_table_name": { + "attr_type": null + }, + "target_table_name": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationValidationDatabaseLevelResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "migration_id": { + "attr_type": null + }, + "source_database_name": { + "attr_type": null + }, + "target_database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "data_integrity_validation_result": { + "attr_type": null + }, + "schema_validation_result": { + "attr_type": null + }, + "query_analysis_validation_result": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationValidationDatabaseSummaryResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "migration_id": { + "attr_type": null + }, + "source_database_name": { + "attr_type": null + }, + "target_database_name": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationValidationOptions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "enable_schema_validation": { + "default": "none", + "param_type": "keyword_only" + }, + "enable_data_integrity_validation": { + "default": "none", + "param_type": "keyword_only" + }, + "enable_query_analysis_validation": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enable_schema_validation": { + "attr_type": "enable_schema_validation" + }, + "enable_data_integrity_validation": { + "attr_type": "enable_data_integrity_validation" + }, + "enable_query_analysis_validation": { + "attr_type": "enable_query_analysis_validation" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MigrationValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "summary_results": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "migration_id": { + "attr_type": null + }, + "summary_results": { + "attr_type": "summary_results" + }, + "status": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoConnectionInformation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "host": { + "default": "none", + "param_type": "keyword_only" + }, + "port": { + "default": "none", + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "use_ssl": { + "default": "none", + "param_type": "keyword_only" + }, + "connection_string": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": { + "attr_type": "host" + }, + "port": { + "attr_type": "port" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "use_ssl": { + "attr_type": "use_ssl" + }, + "connection_string": { + "attr_type": "connection_string" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbCancelCommand": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbClusterInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "databases": { + "default": null, + "param_type": "keyword_only" + }, + "supports_sharding": { + "default": null, + "param_type": "keyword_only" + }, + "type": { + "default": null, + "param_type": "keyword_only" + }, + "version": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "databases": { + "attr_type": "databases" + }, + "supports_sharding": { + "attr_type": "supports_sharding" + }, + "type": { + "attr_type": "type" + }, + "version": { + "attr_type": "version" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbClusterType": { + "type": "Enum", + "methods": {}, + "properties": { + "BLOB_CONTAINER": "BLOB_CONTAINER", + "COSMOS_DB": "COSMOS_DB", + "MONGO_DB": "MONGO_DB", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbCollectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "default": null, + "param_type": "keyword_only" + }, + "database_name": { + "default": null, + "param_type": "keyword_only" + }, + "is_capped": { + "default": null, + "param_type": "keyword_only" + }, + "is_system_collection": { + "default": null, + "param_type": "keyword_only" + }, + "is_view": { + "default": null, + "param_type": "keyword_only" + }, + "supports_sharding": { + "default": null, + "param_type": "keyword_only" + }, + "shard_key": { + "default": "none", + "param_type": "keyword_only" + }, + "view_of": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": { + "attr_type": "database_name" + }, + "is_capped": { + "attr_type": "is_capped" + }, + "is_system_collection": { + "attr_type": "is_system_collection" + }, + "is_view": { + "attr_type": "is_view" + }, + "shard_key": { + "attr_type": "shard_key" + }, + "supports_sharding": { + "attr_type": "supports_sharding" + }, + "view_of": { + "attr_type": "view_of" + }, + "average_document_size": { + "attr_type": "average_document_size" + }, + "data_size": { + "attr_type": "data_size" + }, + "document_count": { + "attr_type": "document_count" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbCollectionProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "default": null, + "param_type": "keyword_only" + }, + "state": { + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "default": "none", + "param_type": "keyword_only" + }, + "last_replay_time": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "qualified_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "bytes_copied": { + "attr_type": "bytes_copied" + }, + "documents_copied": { + "attr_type": "documents_copied" + }, + "elapsed_time": { + "attr_type": "elapsed_time" + }, + "errors": { + "attr_type": "errors" + }, + "events_pending": { + "attr_type": "events_pending" + }, + "events_replayed": { + "attr_type": "events_replayed" + }, + "last_event_time": { + "attr_type": "last_event_time" + }, + "last_replay_time": { + "attr_type": "last_replay_time" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "state": { + "attr_type": "state" + }, + "total_bytes": { + "attr_type": "total_bytes" + }, + "total_documents": { + "attr_type": "total_documents" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbCollectionSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "can_delete": { + "default": "none", + "param_type": "keyword_only" + }, + "shard_key": { + "default": "none", + "param_type": "keyword_only" + }, + "target_r_us": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "can_delete": { + "attr_type": "can_delete" + }, + "shard_key": { + "attr_type": "shard_key" + }, + "target_r_us": { + "attr_type": "target_r_us" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "object_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "object_name": { + "attr_type": "object_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_string": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "data_source": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypt_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "server_brand_version": { + "default": "none", + "param_type": "keyword_only" + }, + "server_version": { + "default": "none", + "param_type": "keyword_only" + }, + "server_name": { + "default": "none", + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "default": "bool", + "param_type": "keyword_only" + }, + "enforce_ssl": { + "default": "none", + "param_type": "keyword_only" + }, + "port": { + "default": "none", + "param_type": "keyword_only" + }, + "additional_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "connection_string": { + "attr_type": "connection_string" + }, + "data_source": { + "attr_type": "data_source" + }, + "encrypt_connection": { + "attr_type": "encrypt_connection" + }, + "server_brand_version": { + "attr_type": "server_brand_version" + }, + "server_version": { + "attr_type": "server_version" + }, + "server_name": { + "attr_type": "server_name" + }, + "trust_server_certificate": { + "attr_type": "trust_server_certificate" + }, + "enforce_ssl": { + "attr_type": "enforce_ssl" + }, + "port": { + "attr_type": "port" + }, + "additional_settings": { + "attr_type": "additional_settings" + }, + "authentication": { + "attr_type": "authentication" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbDatabaseInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "default": null, + "param_type": "keyword_only" + }, + "collections": { + "default": null, + "param_type": "keyword_only" + }, + "supports_sharding": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "collections": { + "attr_type": "collections" + }, + "supports_sharding": { + "attr_type": "supports_sharding" + }, + "average_document_size": { + "attr_type": "average_document_size" + }, + "data_size": { + "attr_type": "data_size" + }, + "document_count": { + "attr_type": "document_count" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbDatabaseProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "default": null, + "param_type": "keyword_only" + }, + "state": { + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "default": "none", + "param_type": "keyword_only" + }, + "last_replay_time": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "qualified_name": { + "default": "none", + "param_type": "keyword_only" + }, + "collections": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "collections": { + "attr_type": "collections" + }, + "bytes_copied": { + "attr_type": "bytes_copied" + }, + "documents_copied": { + "attr_type": "documents_copied" + }, + "elapsed_time": { + "attr_type": "elapsed_time" + }, + "errors": { + "attr_type": "errors" + }, + "events_pending": { + "attr_type": "events_pending" + }, + "events_replayed": { + "attr_type": "events_replayed" + }, + "last_event_time": { + "attr_type": "last_event_time" + }, + "last_replay_time": { + "attr_type": "last_replay_time" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "state": { + "attr_type": "state" + }, + "total_bytes": { + "attr_type": "total_bytes" + }, + "total_documents": { + "attr_type": "total_documents" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbDatabaseSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "collections": { + "default": null, + "param_type": "keyword_only" + }, + "target_r_us": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "collections": { + "attr_type": "collections" + }, + "target_r_us": { + "attr_type": "target_r_us" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "count": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": "code" + }, + "count": { + "attr_type": "count" + }, + "message": { + "attr_type": "message" + }, + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbErrorType": { + "type": "Enum", + "methods": {}, + "properties": { + "ERROR": "ERROR", + "VALIDATION_ERROR": "VALIDATION_ERROR", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbFinishCommand": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbFinishCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "immediate": { + "default": null, + "param_type": "keyword_only" + }, + "object_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "immediate": { + "attr_type": "immediate" + }, + "object_name": { + "attr_type": "object_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbMigrationProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "default": null, + "param_type": "keyword_only" + }, + "state": { + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "default": "none", + "param_type": "keyword_only" + }, + "last_replay_time": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "qualified_name": { + "default": "none", + "param_type": "keyword_only" + }, + "databases": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": { + "attr_type": null + }, + "databases": { + "attr_type": "databases" + }, + "bytes_copied": { + "attr_type": "bytes_copied" + }, + "documents_copied": { + "attr_type": "documents_copied" + }, + "elapsed_time": { + "attr_type": "elapsed_time" + }, + "errors": { + "attr_type": "errors" + }, + "events_pending": { + "attr_type": "events_pending" + }, + "events_replayed": { + "attr_type": "events_replayed" + }, + "last_event_time": { + "attr_type": "last_event_time" + }, + "last_replay_time": { + "attr_type": "last_replay_time" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "state": { + "attr_type": "state" + }, + "total_bytes": { + "attr_type": "total_bytes" + }, + "total_documents": { + "attr_type": "total_documents" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbMigrationSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "databases": { + "default": null, + "param_type": "keyword_only" + }, + "source": { + "default": null, + "param_type": "keyword_only" + }, + "target": { + "default": null, + "param_type": "keyword_only" + }, + "boost_r_us": { + "default": "none", + "param_type": "keyword_only" + }, + "replication": { + "default": "none", + "param_type": "keyword_only" + }, + "throttling": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "boost_r_us": { + "attr_type": "boost_r_us" + }, + "databases": { + "attr_type": "databases" + }, + "replication": { + "attr_type": "replication" + }, + "source": { + "attr_type": "source" + }, + "target": { + "attr_type": "target" + }, + "throttling": { + "attr_type": "throttling" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "COMPLETE": "COMPLETE", + "COPYING": "COPYING", + "FAILED": "FAILED", + "FINALIZING": "FINALIZING", + "INITIALIZING": "INITIALIZING", + "INITIAL_REPLAY": "INITIAL_REPLAY", + "NOT_STARTED": "NOT_STARTED", + "REPLAYING": "REPLAYING", + "RESTARTING": "RESTARTING", + "VALIDATING_INPUT": "VALIDATING_INPUT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbObjectInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "default": null, + "param_type": "keyword_only" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "average_document_size": { + "attr_type": "average_document_size" + }, + "data_size": { + "attr_type": "data_size" + }, + "document_count": { + "attr_type": "document_count" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "default": null, + "param_type": "keyword_only" + }, + "state": { + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "default": "none", + "param_type": "keyword_only" + }, + "last_replay_time": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "qualified_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "bytes_copied": { + "attr_type": "bytes_copied" + }, + "documents_copied": { + "attr_type": "documents_copied" + }, + "elapsed_time": { + "attr_type": "elapsed_time" + }, + "errors": { + "attr_type": "errors" + }, + "events_pending": { + "attr_type": "events_pending" + }, + "events_replayed": { + "attr_type": "events_replayed" + }, + "last_event_time": { + "attr_type": "last_event_time" + }, + "last_replay_time": { + "attr_type": "last_replay_time" + }, + "name": { + "attr_type": "name" + }, + "qualified_name": { + "attr_type": "qualified_name" + }, + "result_type": { + "attr_type": null + }, + "state": { + "attr_type": "state" + }, + "total_bytes": { + "attr_type": "total_bytes" + }, + "total_documents": { + "attr_type": "total_documents" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbProgressResultType": { + "type": "Enum", + "methods": {}, + "properties": { + "COLLECTION": "COLLECTION", + "DATABASE": "DATABASE", + "MIGRATION": "MIGRATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbReplication": { + "type": "Enum", + "methods": {}, + "properties": { + "CONTINUOUS": "CONTINUOUS", + "DISABLED": "DISABLED", + "ONE_TIME": "ONE_TIME", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbRestartCommand": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbShardKeyField": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": null, + "param_type": "keyword_only" + }, + "order": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "order": { + "attr_type": "order" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbShardKeyInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "fields": { + "default": null, + "param_type": "keyword_only" + }, + "is_unique": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fields": { + "attr_type": "fields" + }, + "is_unique": { + "attr_type": "is_unique" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbShardKeyOrder": { + "type": "Enum", + "methods": {}, + "properties": { + "FORWARD": "FORWARD", + "HASHED": "HASHED", + "REVERSE": "REVERSE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbShardKeySetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "fields": { + "default": null, + "param_type": "keyword_only" + }, + "is_unique": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fields": { + "attr_type": "fields" + }, + "is_unique": { + "attr_type": "is_unique" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoDbThrottlingSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "min_free_cpu": { + "default": "none", + "param_type": "keyword_only" + }, + "min_free_memory_mb": { + "default": "none", + "param_type": "keyword_only" + }, + "max_parallelism": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_free_cpu": { + "attr_type": "min_free_cpu" + }, + "min_free_memory_mb": { + "attr_type": "min_free_memory_mb" + }, + "max_parallelism": { + "attr_type": "max_parallelism" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoMigrationCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_database": { + "default": "none", + "param_type": "keyword_only" + }, + "source_collection": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database": { + "default": "none", + "param_type": "keyword_only" + }, + "target_collection": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database": { + "attr_type": "source_database" + }, + "source_collection": { + "attr_type": "source_collection" + }, + "target_database": { + "attr_type": "target_database" + }, + "target_collection": { + "attr_type": "target_collection" + }, + "migration_progress_details": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoMigrationProgressDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_status": { + "attr_type": null + }, + "migration_error": { + "attr_type": null + }, + "source_document_count": { + "attr_type": null + }, + "processed_document_count": { + "attr_type": null + }, + "duration_in_seconds": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MongoMigrationStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "COMPLETED": "COMPLETED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "NOT_STARTED": "NOT_STARTED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MySqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server_name": { + "default": null, + "param_type": "keyword_only" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "data_source": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypt_connection": { + "default": "bool", + "param_type": "keyword_only" + }, + "authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "additional_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "server_name": { + "attr_type": "server_name" + }, + "data_source": { + "attr_type": "data_source" + }, + "port": { + "attr_type": "port" + }, + "encrypt_connection": { + "attr_type": "encrypt_connection" + }, + "authentication": { + "attr_type": "authentication" + }, + "additional_settings": { + "attr_type": "additional_settings" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "MySqlTargetPlatformType": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DB_FOR_MY_SQL": "AZURE_DB_FOR_MY_SQL", + "SQL_SERVER": "SQL_SERVER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NameAvailabilityRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "type": { + "attr_type": "type" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NameAvailabilityResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name_available": { + "default": "none", + "param_type": "keyword_only" + }, + "reason": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_available": { + "attr_type": "name_available" + }, + "reason": { + "attr_type": "reason" + }, + "message": { + "attr_type": "message" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NameCheckFailureReason": { + "type": "Enum", + "methods": {}, + "properties": { + "ALREADY_EXISTS": "ALREADY_EXISTS", + "INVALID": "INVALID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NodeMonitoringData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "additional_properties": { + "attr_type": null + }, + "node_name": { + "attr_type": null + }, + "available_memory_in_mb": { + "attr_type": null + }, + "cpu_utilization": { + "attr_type": null + }, + "concurrent_jobs_limit": { + "attr_type": null + }, + "concurrent_jobs_running": { + "attr_type": null + }, + "max_concurrent_jobs": { + "attr_type": null + }, + "sent_bytes": { + "attr_type": null + }, + "received_bytes": { + "attr_type": null + } + } + }, + "NonSqlDataMigrationTable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_name": { + "attr_type": "source_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NonSqlDataMigrationTableResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_code": { + "attr_type": null + }, + "source_name": { + "attr_type": null + }, + "target_name": { + "attr_type": null + }, + "source_row_count": { + "attr_type": null + }, + "target_row_count": { + "attr_type": null + }, + "elapsed_time_in_miliseconds": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NonSqlMigrationTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "default": null, + "param_type": "keyword_only" + }, + "project_name": { + "default": null, + "param_type": "keyword_only" + }, + "project_location": { + "default": null, + "param_type": "keyword_only" + }, + "selected_tables": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "target_database_name": { + "attr_type": "target_database_name" + }, + "project_name": { + "attr_type": "project_name" + }, + "project_location": { + "attr_type": "project_location" + }, + "selected_tables": { + "attr_type": "selected_tables" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "NonSqlMigrationTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "started_on": { + "attr_type": null + }, + "ended_on": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "data_migration_table_results": { + "attr_type": null + }, + "progress_message": { + "attr_type": null + }, + "source_server_name": { + "attr_type": null + }, + "target_server_name": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ODataError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "default": "none", + "param_type": "keyword_only" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "details": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": { + "attr_type": "code" + }, + "message": { + "attr_type": "message" + }, + "details": { + "attr_type": "details" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ObjectType": { + "type": "Enum", + "methods": {}, + "properties": { + "FUNCTION": "FUNCTION", + "STORED_PROCEDURES": "STORED_PROCEDURES", + "TABLE": "TABLE", + "USER": "USER", + "VIEW": "VIEW", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "OfflineConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "offline": { + "default": "none", + "param_type": "keyword_only" + }, + "last_backup_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "offline": { + "attr_type": "offline" + }, + "last_backup_name": { + "attr_type": "last_backup_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationOrigin": { + "type": "Enum", + "methods": {}, + "properties": { + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "OperationsDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "is_data_action": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "is_data_action": { + "attr_type": "is_data_action" + }, + "display": { + "attr_type": null + }, + "origin": { + "attr_type": null + }, + "properties": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OperationsDisplayDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": { + "attr_type": null + }, + "resource": { + "attr_type": null + }, + "operation": { + "attr_type": null + }, + "description": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OracleConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "data_source": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "server_name": { + "default": "none", + "param_type": "keyword_only" + }, + "server_version": { + "default": "none", + "param_type": "keyword_only" + }, + "port": { + "default": "none", + "param_type": "keyword_only" + }, + "authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "data_source": { + "attr_type": "data_source" + }, + "server_name": { + "attr_type": "server_name" + }, + "server_version": { + "attr_type": "server_version" + }, + "port": { + "attr_type": "port" + }, + "authentication": { + "attr_type": "authentication" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OracleOCIDriverInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_name": { + "attr_type": null + }, + "driver_size": { + "attr_type": null + }, + "archive_checksum": { + "attr_type": null + }, + "oracle_checksum": { + "attr_type": null + }, + "assembly_version": { + "attr_type": null + }, + "supported_oracle_versions": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "OrphanedUserInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "database_name": { + "attr_type": "database_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "PostgreSqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "server_name": { + "default": null, + "param_type": "keyword_only" + }, + "port": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "data_source": { + "default": "none", + "param_type": "keyword_only" + }, + "server_version": { + "default": "none", + "param_type": "keyword_only" + }, + "database_name": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypt_connection": { + "default": "bool", + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "default": "bool", + "param_type": "keyword_only" + }, + "additional_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "server_brand_version": { + "default": "none", + "param_type": "keyword_only" + }, + "authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "server_name": { + "attr_type": "server_name" + }, + "data_source": { + "attr_type": "data_source" + }, + "server_version": { + "attr_type": "server_version" + }, + "database_name": { + "attr_type": "database_name" + }, + "port": { + "attr_type": "port" + }, + "encrypt_connection": { + "attr_type": "encrypt_connection" + }, + "trust_server_certificate": { + "attr_type": "trust_server_certificate" + }, + "additional_settings": { + "attr_type": "additional_settings" + }, + "server_brand_version": { + "attr_type": "server_brand_version" + }, + "authentication": { + "attr_type": "authentication" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Project": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "etag": { + "default": "none", + "param_type": "keyword_only" + }, + "source_platform": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_authentication_info": { + "default": "none", + "param_type": "keyword_only" + }, + "target_platform": { + "default": "none", + "param_type": "keyword_only" + }, + "source_connection_info": { + "default": "none", + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": "none", + "param_type": "keyword_only" + }, + "databases_info": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "etag": { + "attr_type": "etag" + }, + "source_platform": { + "attr_type": "source_platform" + }, + "azure_authentication_info": { + "attr_type": "azure_authentication_info" + }, + "target_platform": { + "attr_type": "target_platform" + }, + "creation_time": { + "attr_type": null + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "databases_info": { + "attr_type": "databases_info" + }, + "provisioning_state": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProjectFile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "etag": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "etag": { + "attr_type": "etag" + }, + "properties": { + "attr_type": "properties" + }, + "system_data": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProjectFileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "extension": { + "default": "none", + "param_type": "keyword_only" + }, + "file_path": { + "default": "none", + "param_type": "keyword_only" + }, + "media_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extension": { + "attr_type": "extension" + }, + "file_path": { + "attr_type": "file_path" + }, + "last_modified": { + "attr_type": null + }, + "media_type": { + "attr_type": "media_type" + }, + "size": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProjectList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProjectProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DELETING": "DELETING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProjectSourcePlatform": { + "type": "Enum", + "methods": {}, + "properties": { + "MONGO_DB": "MONGO_DB", + "MY_SQL": "MY_SQL", + "POSTGRE_SQL": "POSTGRE_SQL", + "SQL": "SQL", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProjectTargetPlatform": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DB_FOR_MY_SQL": "AZURE_DB_FOR_MY_SQL", + "AZURE_DB_FOR_POSTGRE_SQL": "AZURE_DB_FOR_POSTGRE_SQL", + "MONGO_DB": "MONGO_DB", + "SQLDB": "SQLDB", + "SQLMI": "SQLMI", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProjectTask": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "etag": { + "default": "none", + "param_type": "keyword_only" + }, + "properties": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "etag": { + "attr_type": "etag" + }, + "properties": { + "attr_type": "properties" + }, + "system_data": { + "attr_type": null + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProjectTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "PROVISIONING": "PROVISIONING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProxyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ProxyResourceAutoGenerated": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "QueryAnalysisValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "query_results": { + "default": "none", + "param_type": "keyword_only" + }, + "validation_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "query_results": { + "attr_type": "query_results" + }, + "validation_errors": { + "attr_type": "validation_errors" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "QueryExecutionResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "query_text": { + "default": "none", + "param_type": "keyword_only" + }, + "statements_in_batch": { + "default": "none", + "param_type": "keyword_only" + }, + "source_result": { + "default": "none", + "param_type": "keyword_only" + }, + "target_result": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "query_text": { + "attr_type": "query_text" + }, + "statements_in_batch": { + "attr_type": "statements_in_batch" + }, + "source_result": { + "attr_type": "source_result" + }, + "target_result": { + "attr_type": "target_result" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Quota": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "current_value": { + "default": "none", + "param_type": "keyword_only" + }, + "id": { + "default": "none", + "param_type": "keyword_only" + }, + "limit": { + "default": "none", + "param_type": "keyword_only" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "unit": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "current_value": { + "attr_type": "current_value" + }, + "id": { + "attr_type": "id" + }, + "limit": { + "attr_type": "limit" + }, + "name": { + "attr_type": "name" + }, + "unit": { + "attr_type": "unit" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "QuotaList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "QuotaName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "localized_value": { + "default": "none", + "param_type": "keyword_only" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "localized_value": { + "attr_type": "localized_value" + }, + "value": { + "attr_type": "value" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "RegenAuthKeys": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_name": { + "default": "none", + "param_type": "keyword_only" + }, + "auth_key1": { + "default": "none", + "param_type": "keyword_only" + }, + "auth_key2": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key_name": { + "attr_type": "key_name" + }, + "auth_key1": { + "attr_type": "auth_key1" + }, + "auth_key2": { + "attr_type": "auth_key2" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ReplicateMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACTION_REQUIRED": "ACTION_REQUIRED", + "COMPLETE": "COMPLETE", + "FAILED": "FAILED", + "PENDING": "PENDING", + "UNDEFINED": "UNDEFINED", + "VALIDATING": "VALIDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ReportableException": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "message": { + "default": "none", + "param_type": "keyword_only" + }, + "actionable_message": { + "default": "none", + "param_type": "keyword_only" + }, + "file_path": { + "default": "none", + "param_type": "keyword_only" + }, + "line_number": { + "default": "none", + "param_type": "keyword_only" + }, + "h_result": { + "default": "none", + "param_type": "keyword_only" + }, + "stack_trace": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "message": { + "attr_type": "message" + }, + "actionable_message": { + "attr_type": "actionable_message" + }, + "file_path": { + "attr_type": "file_path" + }, + "line_number": { + "attr_type": "line_number" + }, + "h_result": { + "attr_type": "h_result" + }, + "stack_trace": { + "attr_type": "stack_trace" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceAutoGenerated": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "tier": { + "attr_type": null + }, + "size": { + "attr_type": null + }, + "family": { + "attr_type": null + }, + "kind": { + "attr_type": null + }, + "capacity": { + "attr_type": null + }, + "locations": { + "attr_type": null + }, + "api_versions": { + "attr_type": null + }, + "costs": { + "attr_type": null + }, + "capabilities": { + "attr_type": null + }, + "restrictions": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceSkuCapabilities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "value": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceSkuCapacity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum": { + "attr_type": null + }, + "maximum": { + "attr_type": null + }, + "default": { + "attr_type": null + }, + "scale_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceSkuCapacityScaleType": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTOMATIC": "AUTOMATIC", + "MANUAL": "MANUAL", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceSkuCosts": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "meter_id": { + "attr_type": null + }, + "quantity": { + "attr_type": null + }, + "extended_unit": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceSkuRestrictions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "values": { + "attr_type": null + }, + "reason_code": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceSkuRestrictionsReasonCode": { + "type": "Enum", + "methods": {}, + "properties": { + "NOT_AVAILABLE_FOR_SUBSCRIPTION": "NOT_AVAILABLE_FOR_SUBSCRIPTION", + "QUOTA_ID": "QUOTA_ID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceSkuRestrictionsType": { + "type": "Enum", + "methods": {}, + "properties": { + "LOCATION": "LOCATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceSkusResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": null, + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ResourceType": { + "type": "Enum", + "methods": {}, + "properties": { + "MONGO_TO_COSMOS_DB_MONGO": "MONGO_TO_COSMOS_DB_MONGO", + "SQL_DB": "SQL_DB", + "SQL_MI": "SQL_MI", + "SQL_VM": "SQL_VM", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ScenarioSource": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCESS": "ACCESS", + "DB2": "DB2", + "MONGO_DB": "MONGO_DB", + "MY_SQL": "MY_SQL", + "MY_SQLRDS": "MY_SQLRDS", + "ORACLE": "ORACLE", + "POSTGRE_SQL": "POSTGRE_SQL", + "POSTGRE_SQLRDS": "POSTGRE_SQLRDS", + "SQL": "SQL", + "SQLRDS": "SQLRDS", + "SYBASE": "SYBASE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ScenarioTarget": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DB_FOR_MY_SQL": "AZURE_DB_FOR_MY_SQL", + "AZURE_DB_FOR_POSTGRES_SQL": "AZURE_DB_FOR_POSTGRES_SQL", + "MONGO_DB": "MONGO_DB", + "SQLDB": "SQLDB", + "SQLDW": "SQLDW", + "SQLMI": "SQLMI", + "SQL_SERVER": "SQL_SERVER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SchemaComparisonValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "schema_differences": { + "default": "none", + "param_type": "keyword_only" + }, + "validation_errors": { + "default": "none", + "param_type": "keyword_only" + }, + "source_database_object_count": { + "default": "none", + "param_type": "keyword_only" + }, + "target_database_object_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "schema_differences": { + "attr_type": "schema_differences" + }, + "validation_errors": { + "attr_type": "validation_errors" + }, + "source_database_object_count": { + "attr_type": "source_database_object_count" + }, + "target_database_object_count": { + "attr_type": "target_database_object_count" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SchemaComparisonValidationResultType": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "object_name": { + "default": "none", + "param_type": "keyword_only" + }, + "object_type": { + "default": "none", + "param_type": "keyword_only" + }, + "update_action": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "object_name": { + "attr_type": "object_name" + }, + "object_type": { + "attr_type": "object_type" + }, + "update_action": { + "attr_type": "update_action" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SchemaMigrationOption": { + "type": "Enum", + "methods": {}, + "properties": { + "EXTRACT_FROM_SOURCE": "EXTRACT_FROM_SOURCE", + "NONE": "NONE", + "USE_STORAGE_FILE": "USE_STORAGE_FILE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SchemaMigrationSetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "schema_option": { + "default": "none", + "param_type": "keyword_only" + }, + "file_id": { + "default": "none", + "param_type": "keyword_only" + }, + "file_name": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "schema_option": { + "attr_type": "schema_option" + }, + "file_id": { + "attr_type": "file_id" + }, + "file_name": { + "attr_type": "file_name" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SchemaMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "COLLECTING_OBJECTS": "COLLECTING_OBJECTS", + "COMPLETED": "COMPLETED", + "COMPLETED_WITH_WARNINGS": "COMPLETED_WITH_WARNINGS", + "DEPLOYING_SCHEMA": "DEPLOYING_SCHEMA", + "DOWNLOADING_SCRIPT": "DOWNLOADING_SCRIPT", + "FAILED": "FAILED", + "GENERATING_SCRIPT": "GENERATING_SCRIPT", + "NOT_STARTED": "NOT_STARTED", + "UPLOADING_SCRIPT": "UPLOADING_SCRIPT", + "VALIDATING_INPUTS": "VALIDATING_INPUTS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SelectedCertificateInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "default": null, + "param_type": "keyword_only" + }, + "password": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "certificate_name": { + "attr_type": "certificate_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServerLevelPermissionsGroup": { + "type": "Enum", + "methods": {}, + "properties": { + "DEFAULT": "DEFAULT", + "MIGRATION_FROM_MY_SQL_TO_AZURE_DB_FOR_MY_SQL": "MIGRATION_FROM_MY_SQL_TO_AZURE_DB_FOR_MY_SQL", + "MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB": "MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB", + "MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI": "MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI", + "MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM": "MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ServerProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server_platform": { + "attr_type": null + }, + "server_name": { + "attr_type": null + }, + "server_version": { + "attr_type": null + }, + "server_edition": { + "attr_type": null + }, + "server_operating_system_version": { + "attr_type": null + }, + "server_database_count": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceOperation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "display": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "display": { + "attr_type": "display" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceOperationDisplay": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "provider": { + "default": "none", + "param_type": "keyword_only" + }, + "resource": { + "default": "none", + "param_type": "keyword_only" + }, + "operation": { + "default": "none", + "param_type": "keyword_only" + }, + "description": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": { + "attr_type": "provider" + }, + "resource": { + "attr_type": "resource" + }, + "operation": { + "attr_type": "operation" + }, + "description": { + "attr_type": "description" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceOperationList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "DELETING": "DELETING", + "DEPLOYING": "DEPLOYING", + "FAILED": "FAILED", + "FAILED_TO_START": "FAILED_TO_START", + "FAILED_TO_STOP": "FAILED_TO_STOP", + "STARTING": "STARTING", + "STOPPED": "STOPPED", + "STOPPING": "STOPPING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ServiceScalability": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTOMATIC": "AUTOMATIC", + "MANUAL": "MANUAL", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ServiceSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "default": "none", + "param_type": "keyword_only" + }, + "tier": { + "default": "none", + "param_type": "keyword_only" + }, + "family": { + "default": "none", + "param_type": "keyword_only" + }, + "size": { + "default": "none", + "param_type": "keyword_only" + }, + "capacity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": "name" + }, + "tier": { + "attr_type": "tier" + }, + "family": { + "attr_type": "family" + }, + "size": { + "attr_type": "size" + }, + "capacity": { + "attr_type": "capacity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ServiceSkuList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "Severity": { + "type": "Enum", + "methods": {}, + "properties": { + "ERROR": "ERROR", + "MESSAGE": "MESSAGE", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SourceLocation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "azure_blob": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_share": { + "attr_type": "file_share" + }, + "azure_blob": { + "attr_type": "azure_blob" + }, + "file_storage_type": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlBackupFileInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_name": { + "attr_type": null + }, + "status": { + "attr_type": null + }, + "total_size": { + "attr_type": null + }, + "data_read": { + "attr_type": null + }, + "data_written": { + "attr_type": null + }, + "copy_throughput": { + "attr_type": null + }, + "copy_duration": { + "attr_type": null + }, + "family_sequence_number": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlBackupSetInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "backup_set_id": { + "attr_type": null + }, + "first_lsn": { + "attr_type": null + }, + "last_lsn": { + "attr_type": null + }, + "backup_type": { + "attr_type": null + }, + "list_of_backup_files": { + "attr_type": null + }, + "backup_start_date": { + "attr_type": null + }, + "backup_finish_date": { + "attr_type": null + }, + "is_backup_restored": { + "attr_type": null + }, + "has_backup_checksums": { + "attr_type": null + }, + "family_count": { + "attr_type": null + }, + "ignore_reasons": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "data_source": { + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "server_name": { + "default": "none", + "param_type": "keyword_only" + }, + "port": { + "default": "none", + "param_type": "keyword_only" + }, + "server_version": { + "default": "none", + "param_type": "keyword_only" + }, + "server_brand_version": { + "default": "none", + "param_type": "keyword_only" + }, + "resource_id": { + "default": "none", + "param_type": "keyword_only" + }, + "authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypt_connection": { + "default": "bool", + "param_type": "keyword_only" + }, + "additional_settings": { + "default": "none", + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "default": "bool", + "param_type": "keyword_only" + }, + "platform": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": { + "attr_type": null + }, + "data_source": { + "attr_type": "data_source" + }, + "server_name": { + "attr_type": "server_name" + }, + "port": { + "attr_type": "port" + }, + "server_version": { + "attr_type": "server_version" + }, + "server_brand_version": { + "attr_type": "server_brand_version" + }, + "resource_id": { + "attr_type": "resource_id" + }, + "authentication": { + "attr_type": "authentication" + }, + "encrypt_connection": { + "attr_type": "encrypt_connection" + }, + "additional_settings": { + "attr_type": "additional_settings" + }, + "trust_server_certificate": { + "attr_type": "trust_server_certificate" + }, + "platform": { + "attr_type": "platform" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlConnectionInformation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "data_source": { + "default": "none", + "param_type": "keyword_only" + }, + "authentication": { + "default": "none", + "param_type": "keyword_only" + }, + "user_name": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "encrypt_connection": { + "default": "none", + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "data_source": { + "attr_type": "data_source" + }, + "authentication": { + "attr_type": "authentication" + }, + "user_name": { + "attr_type": "user_name" + }, + "password": { + "attr_type": "password" + }, + "encrypt_connection": { + "attr_type": "encrypt_connection" + }, + "trust_server_certificate": { + "attr_type": "trust_server_certificate" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlDbMigrationStatusDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_state": { + "attr_type": null + }, + "sql_data_copy_errors": { + "attr_type": null + }, + "list_of_copy_progress_details": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlDbOfflineConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "offline": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlFileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "path": { + "default": "none", + "param_type": "keyword_only" + }, + "username": { + "default": "none", + "param_type": "keyword_only" + }, + "password": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "path": { + "attr_type": "path" + }, + "username": { + "attr_type": "username" + }, + "password": { + "attr_type": "password" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlMigrationListResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": null + }, + "next_link": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlMigrationService": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": { + "attr_type": null + }, + "integration_runtime_state": { + "attr_type": null + }, + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlMigrationServiceUpdate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlMigrationTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlServerSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "storage_resource_id": { + "attr_type": "storage_resource_id" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "azure_app": { + "attr_type": "azure_app" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SqlSourcePlatform": { + "type": "Enum", + "methods": {}, + "properties": { + "SQL_ON_PREM": "SQL_ON_PREM", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SsisMigrationInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "ssis_store_type": { + "default": "none", + "param_type": "keyword_only" + }, + "project_overwrite_option": { + "default": "none", + "param_type": "keyword_only" + }, + "environment_overwrite_option": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ssis_store_type": { + "attr_type": "ssis_store_type" + }, + "project_overwrite_option": { + "attr_type": "project_overwrite_option" + }, + "environment_overwrite_option": { + "attr_type": "environment_overwrite_option" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SsisMigrationOverwriteOption": { + "type": "Enum", + "methods": {}, + "properties": { + "IGNORE": "IGNORE", + "OVERWRITE": "OVERWRITE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SsisMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "INITIALIZE": "INITIALIZE", + "IN_PROGRESS": "IN_PROGRESS", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SsisStoreType": { + "type": "Enum", + "methods": {}, + "properties": { + "SSIS_CATALOG": "SSIS_CATALOG", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "StartMigrationScenarioServerRoleResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "exceptions_and_warnings": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SyncDatabaseMigrationReportingState": { + "type": "Enum", + "methods": {}, + "properties": { + "BACKUP_COMPLETED": "BACKUP_COMPLETED", + "BACKUP_IN_PROGRESS": "BACKUP_IN_PROGRESS", + "CANCELLED": "CANCELLED", + "CANCELLING": "CANCELLING", + "COMPLETE": "COMPLETE", + "COMPLETING": "COMPLETING", + "CONFIGURING": "CONFIGURING", + "FAILED": "FAILED", + "INITIALIAZING": "INITIALIAZING", + "READY_TO_COMPLETE": "READY_TO_COMPLETE", + "RESTORE_COMPLETED": "RESTORE_COMPLETED", + "RESTORE_IN_PROGRESS": "RESTORE_IN_PROGRESS", + "RUNNING": "RUNNING", + "STARTING": "STARTING", + "UNDEFINED": "UNDEFINED", + "VALIDATING": "VALIDATING", + "VALIDATION_COMPLETE": "VALIDATION_COMPLETE", + "VALIDATION_FAILED": "VALIDATION_FAILED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SyncMigrationDatabaseErrorEvent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "timestamp_string": { + "attr_type": null + }, + "event_type_string": { + "attr_type": null + }, + "event_text": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SyncTableMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "BEFORE_LOAD": "BEFORE_LOAD", + "CANCELED": "CANCELED", + "COMPLETED": "COMPLETED", + "ERROR": "ERROR", + "FAILED": "FAILED", + "FULL_LOAD": "FULL_LOAD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "default": "none", + "param_type": "keyword_only" + }, + "created_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "created_at": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" + }, + "last_modified_by": { + "attr_type": "last_modified_by" + }, + "last_modified_by_type": { + "attr_type": "last_modified_by_type" + }, + "last_modified_at": { + "attr_type": "last_modified_at" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "SystemDataAutoGenerated": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "default": "none", + "param_type": "keyword_only" + }, + "created_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "created_at": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "default": "none", + "param_type": "keyword_only" + }, + "last_modified_at": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": { + "attr_type": "created_by" + }, + "created_by_type": { + "attr_type": "created_by_type" + }, + "created_at": { + "attr_type": "created_at" + }, + "last_modified_by": { + "attr_type": "last_modified_by" + }, + "last_modified_by_type": { + "attr_type": "last_modified_by_type" + }, + "last_modified_at": { + "attr_type": "last_modified_at" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TargetLocation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_account_resource_id": { + "default": "none", + "param_type": "keyword_only" + }, + "account_key": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "storage_account_resource_id": { + "attr_type": "storage_account_resource_id" + }, + "account_key": { + "attr_type": "account_key" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TaskList": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "value": { + "default": "none", + "param_type": "keyword_only" + }, + "next_link": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "value": { + "attr_type": "value" + }, + "next_link": { + "attr_type": "next_link" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TaskState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "FAILED_INPUT_VALIDATION": "FAILED_INPUT_VALIDATION", + "FAULTED": "FAULTED", + "QUEUED": "QUEUED", + "RUNNING": "RUNNING", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "TaskType": { + "type": "Enum", + "methods": {}, + "properties": { + "CONNECT_MONGO_DB": "CONNECT_MONGO_DB", + "CONNECT_TO_SOURCE_MY_SQL": "CONNECT_TO_SOURCE_MY_SQL", + "CONNECT_TO_SOURCE_ORACLE_SYNC": "CONNECT_TO_SOURCE_ORACLE_SYNC", + "CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC": "CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC", + "CONNECT_TO_SOURCE_SQL_SERVER": "CONNECT_TO_SOURCE_SQL_SERVER", + "CONNECT_TO_SOURCE_SQL_SERVER_SYNC": "CONNECT_TO_SOURCE_SQL_SERVER_SYNC", + "CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL": "CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL", + "CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC": "CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC", + "CONNECT_TO_TARGET_AZURE_SQL_DB_MI": "CONNECT_TO_TARGET_AZURE_SQL_DB_MI", + "CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS": "CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS", + "CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC": "CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC", + "CONNECT_TO_TARGET_SQL_DB": "CONNECT_TO_TARGET_SQL_DB", + "CONNECT_TO_TARGET_SQL_DB_SYNC": "CONNECT_TO_TARGET_SQL_DB_SYNC", + "GET_TDE_CERTIFICATES_SQL": "GET_TDE_CERTIFICATES_SQL", + "GET_USER_TABLES_AZURE_SQL_DB_SYNC": "GET_USER_TABLES_AZURE_SQL_DB_SYNC", + "GET_USER_TABLES_MY_SQL": "GET_USER_TABLES_MY_SQL", + "GET_USER_TABLES_ORACLE": "GET_USER_TABLES_ORACLE", + "GET_USER_TABLES_POSTGRE_SQL": "GET_USER_TABLES_POSTGRE_SQL", + "GET_USER_TABLES_SQL": "GET_USER_TABLES_SQL", + "MIGRATE_MONGO_DB": "MIGRATE_MONGO_DB", + "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL": "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL", + "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC": "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC", + "MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC": "MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC", + "MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2": "MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2", + "MIGRATE_SCHEMA_SQL_SERVER_SQL_DB": "MIGRATE_SCHEMA_SQL_SERVER_SQL_DB", + "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI": "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI", + "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS": "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS", + "MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC": "MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC", + "MIGRATE_SQL_SERVER_SQL_DB": "MIGRATE_SQL_SERVER_SQL_DB", + "MIGRATE_SSIS": "MIGRATE_SSIS", + "SERVICE_CHECK_OCI": "SERVICE_CHECK_OCI", + "SERVICE_INSTALL_OCI": "SERVICE_INSTALL_OCI", + "SERVICE_UPLOAD_OCI": "SERVICE_UPLOAD_OCI", + "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI": "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI", + "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS": "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS", + "VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC": "VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC", + "VALIDATE_MONGO_DB": "VALIDATE_MONGO_DB", + "VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC": "VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "TrackedResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": { + "attr_type": "tags" + }, + "location": { + "attr_type": "location" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "TrackedResourceAutoGenerated": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": "none", + "param_type": "keyword_only" + }, + "tags": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "location": { + "attr_type": "location" + }, + "tags": { + "attr_type": "tags" + }, + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "type": { + "attr_type": null + }, + "system_data": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UpdateActionType": { + "type": "Enum", + "methods": {}, + "properties": { + "ADDED_ON_TARGET": "ADDED_ON_TARGET", + "CHANGED_ON_TARGET": "CHANGED_ON_TARGET", + "DELETED_ON_TARGET": "DELETED_ON_TARGET", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "UploadOCIDriverTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "driver_share": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_share": { + "attr_type": "driver_share" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UploadOCIDriverTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_package_name": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UploadOCIDriverTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "UserAssignedIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": { + "attr_type": null + }, + "client_id": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlDbSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": { + "attr_type": "selected_databases" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "storage_resource_id": { + "attr_type": "storage_resource_id" + }, + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "azure_app": { + "attr_type": "azure_app" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlMISyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlMISyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlMITaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "backup_blob_share": { + "default": null, + "param_type": "keyword_only" + }, + "selected_logins": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_file_share": { + "default": "none", + "param_type": "keyword_only" + }, + "backup_mode": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "selected_logins": { + "attr_type": "selected_logins" + }, + "backup_file_share": { + "attr_type": "backup_file_share" + }, + "backup_blob_share": { + "attr_type": "backup_blob_share" + }, + "backup_mode": { + "attr_type": "backup_mode" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlMITaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "database_backup_info": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "restore_database_name_errors": { + "attr_type": null + }, + "backup_folder_errors": { + "attr_type": null + }, + "backup_share_credentials_errors": { + "attr_type": null + }, + "backup_storage_account_errors": { + "attr_type": null + }, + "existing_backup_errors": { + "attr_type": null + }, + "database_backup_info": { + "attr_type": "database_backup_info" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMigrationInputSqlServerSqlMITaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateMongoDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateOracleAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "default": "none", + "param_type": "keyword_only" + }, + "input": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": { + "attr_type": null + }, + "input": { + "attr_type": "input" + }, + "output": { + "attr_type": null + }, + "errors": { + "attr_type": null + }, + "state": { + "attr_type": null + }, + "commands": { + "attr_type": null + }, + "client_data": { + "attr_type": "client_data" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateOracleAzureDbPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateSyncMigrationInputSqlServerTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "default": null, + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": { + "attr_type": "source_connection_info" + }, + "target_connection_info": { + "attr_type": "target_connection_info" + }, + "selected_databases": { + "attr_type": "selected_databases" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidateSyncMigrationInputSqlServerTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": { + "attr_type": null + }, + "name": { + "attr_type": null + }, + "validation_errors": { + "attr_type": null + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidationError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "text": { + "default": "none", + "param_type": "keyword_only" + }, + "severity": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "text": { + "attr_type": "text" + }, + "severity": { + "attr_type": "severity" + }, + "additional_properties": { + "attr_type": null + } + } + }, + "ValidationStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "COMPLETED_WITH_ISSUES": "COMPLETED_WITH_ISSUES", + "DEFAULT": "DEFAULT", + "FAILED": "FAILED", + "INITIALIZED": "INITIALIZED", + "IN_PROGRESS": "IN_PROGRESS", + "NOT_STARTED": "NOT_STARTED", + "STOPPED": "STOPPED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WaitStatistics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "wait_type": { + "default": "none", + "param_type": "keyword_only" + }, + "wait_time_ms": { + "default": "int", + "param_type": "keyword_only" + }, + "wait_count": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "key_transformer": { + "default": "attribute_transformer", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "deserialize": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "enable_additional_properties_sending": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "from_dict": { + "parameters": { + "data": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key_extractors": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "content_type": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "is_xml_model": { + "parameters": {}, + "is_async": false, + "overloads": [] + }, + "serialize": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "keep_readonly": { + "default": "bool", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "wait_type": { + "attr_type": "wait_type" + }, + "wait_time_ms": { + "attr_type": "wait_time_ms" + }, + "wait_count": { + "attr_type": "wait_count" + }, + "additional_properties": { + "attr_type": null + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.aio": { + "class_nodes": { + "DataMigrationManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "database_migrations_mongo_to_cosmos_db_ru_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbRUMongoOperations" + }, + "database_migrations_mongo_to_cosmos_dbv_core_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations" + }, + "database_migrations_sql_db": { + "attr_type": "DatabaseMigrationsSqlDbOperations" + }, + "database_migrations_sql_mi": { + "attr_type": "DatabaseMigrationsSqlMiOperations" + }, + "database_migrations_sql_vm": { + "attr_type": "DatabaseMigrationsSqlVmOperations" + }, + "operations": { + "attr_type": "Operations" + }, + "migration_services": { + "attr_type": "MigrationServicesOperations" + }, + "sql_migration_services": { + "attr_type": "SqlMigrationServicesOperations" + }, + "resource_skus": { + "attr_type": "ResourceSkusOperations" + }, + "services": { + "attr_type": "ServicesOperations" + }, + "tasks": { + "attr_type": "TasksOperations" + }, + "service_tasks": { + "attr_type": "ServiceTasksOperations" + }, + "projects": { + "attr_type": "ProjectsOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + }, + "files": { + "attr_type": "FilesOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.aio.operations": { + "class_nodes": { + "DatabaseMigrationsMongoToCosmosDbRUMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlDbOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlDb", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_retry": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlMiOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlMi", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlVmOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlVm", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "FilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "read": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "read_write": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "MigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ProjectsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ResourceSkusOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ServiceTasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_children_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_status": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SqlMigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete_node": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DeleteNode", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_monitoring_data": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "regenerate_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "RegenAuthKeys", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "TasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "CommandProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py index c0b1cc0b840f..289ddc3fbedb 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py index b72778e559ce..941ec3155508 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py index 5d0ff3653b5d..b3b9055a1797 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoDeleteDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py index 6822ad874ecd..d0937ee5bac9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoGetDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py index 9b09668b0a45..1e982871edbd 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoGetDatabaseMigrationExpanded.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py index 53eb5be70f5e..165a40ae9586 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CosmosDbMongoListByScopeDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoListByScopeDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py index 8e7da0c7a836..231b7a536569 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateMigrationServiceMAX.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateMigrationServiceMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py index d421bfd55272..fc8b7a2bb19e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateMigrationServiceMIN.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateMigrationServiceMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py index 2d1d42d7b7c8..78630b61ec9d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateSqlMigrationServiceMAX.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateSqlMigrationServiceMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py index fd495eac61d0..f7d3be6fd09d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/CreateOrUpdateSqlMigrationServiceMIN.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateSqlMigrationServiceMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py index 12126ef46684..53fdba2b06b6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteIntegrationRuntimeNode.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/DeleteIntegrationRuntimeNode.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py index a0f34f26415d..18377bc3dbce 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/DeleteMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py index 06f15f5860b0..1991617b336b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/DeleteSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/DeleteSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py index 63517f727945..61011532e9d9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_CreateOrUpdate.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py index 5c409271c915..90f4eef9fc42 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py @@ -39,6 +39,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Delete.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py index 2dc164e59fae..ac5accf9fb8d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Get.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py index 29636b7b6966..4b917cf1b92a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_List.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py index f5b39c0ab90f..85827cf4cc46 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Read.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Read.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py index a1ea29246dd2..7a91aed76201 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_ReadWrite.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_ReadWrite.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py index fd2ac70df20b..21a520b28ab1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Files_Update.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py index 64855a7d77dc..caf6f0827dd1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/GetMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py index 84ee989622cc..5ffe936fe0ce 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetMonitorDataSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/GetMonitorDataSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py index 3b655a07267e..e983ee8d89c3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/GetSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/GetSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py index 4efc02773b52..ffe805a5fa02 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListAuthKeysSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListAuthKeysSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py index b805b28bd0a8..3dcec8d1a7d6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListByResourceGroupMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListByResourceGroupMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py index 241fa4012cd9..bf74376eb8e0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListByResourceGroupSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListByResourceGroupSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py index b96f822b9bd6..b7aa3be33526 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListBySubscriptionMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListBySubscriptionMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py index 8c556d85c4e0..e04c7850f241 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListBySubscriptionSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListBySubscriptionSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py index 735b7a13d4c5..61861da5ebd1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListMigrationsByMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListMigrationsByMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py index 82a6a89cb187..95b488956bcc 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListMigrationsBySqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListMigrationsBySqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py index 8b6e165cea2e..27e9b4cb4448 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ListOperation.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListOperation.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py index 839da7201391..c4b72cc9d22e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_CreateOrUpdate.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py index c866ed5075e6..d54003d9a1e2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Delete.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py index 9f7bbf284f54..6a196a904f2c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Get.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py index 44f7886c14c4..88f716203597 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_List.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py index c4910b5100f2..17f6ecb6f766 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Projects_Update.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py index 503fcf3b72fb..33dcea39283f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/RegenAuthKeysSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/RegenAuthKeysSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py index 86f526ed1935..f81df8309d95 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ResourceSkus_ListSkus.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ResourceSkus_ListSkus.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py index c805c776e003..94a8b00382d3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Cancel.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Cancel.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py index 698723e8deb9..a5e5580101da 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_CreateOrUpdate.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py index 1fbfbaf54009..c7dc202debc2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py @@ -38,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Delete.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py index 2f9149f90dfc..bcf3b636795f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Get.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py index 158f9ebdccfc..b30980f28415 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_List.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py index 5cc718d3702a..a0519a222150 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/ServiceTasks_Update.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py index 7abe66712f06..0ad581ef5a59 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckChildrenNameAvailability.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CheckChildrenNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py index e283108236d0..cd32ef3e6b8f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckNameAvailability.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py index 279008baddc7..f1d8dd90cb2c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CheckStatus.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CheckStatus.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py index 1fab4925ecb9..7cc894fbc073 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_CreateOrUpdate.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py index e847a55f6d96..38968e83859e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Delete.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py index ddfe70b7ff1a..ef2b2dba61a2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Get.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py index 5ad86bad9fc1..90267e62e1b8 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py @@ -36,6 +36,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_List.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py index 610f30228954..1972ad95bf75 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_ListByResourceGroup.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py index 5b915e92c5a6..875c73517c87 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_ListSkus.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_ListSkus.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py index a722821a1d5e..6ce2cfaf05f5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Start.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Start.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py index 8eb7605397ba..13c2fddad1f6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Stop.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Stop.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py index d3f80286761f..ae302698ef84 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Services_Update.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py index 6171b4ee7e85..118884465c37 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCancelDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbCancelDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py index f056b023bcd7..ec4846afd4ab 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py @@ -49,6 +49,7 @@ def main(): "trustServerCertificate": True, "userName": "bbb", }, + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", "tableList": ["[Schema1].[TableName1]", "[Schema2].[TableName2]"], "targetSqlConnection": { "authentication": "SqlAuthentication", @@ -64,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py index d9189926f7b2..377f1a4ca9ea 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py @@ -49,6 +49,7 @@ def main(): "trustServerCertificate": True, "userName": "bbb", }, + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", "targetSqlConnection": { "authentication": "SqlAuthentication", "dataSource": "sqldbinstance", @@ -63,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py index ec3abcf87dae..2caf0547cc06 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbDeleteDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py index 7f6d3a693a41..513d5472fda6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py index f8d098030803..8f9c3449f885 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbGetDatabaseMigrationExpanded.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py index e5bde629596a..3309fe7a185b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlDbRetryDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbRetryDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py index 7b90b9d1c8ec..4b2f6969bc33 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCancelDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCancelDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py index 81b5ce40962a..0461fa671bf7 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py @@ -57,12 +57,13 @@ def main(): "offlineConfiguration": {"lastBackupName": "last_backup_file_name", "offline": True}, "scope": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/instance", "sourceDatabaseName": "aaa", + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", } }, ).result() print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py index cd5e0d898f83..84068959181a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py @@ -59,12 +59,13 @@ def main(): "trustServerCertificate": True, "userName": "bbb", }, + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", } }, ).result() print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py index c563bc4dd174..4d4d567688b3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py @@ -58,12 +58,13 @@ def main(): "trustServerCertificate": True, "userName": "bbb", }, + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", } }, ).result() print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py index af81c9504fe3..ca9488d70099 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiCutoverDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCutoverDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py index c58347335742..e86c763168a8 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiDeleteDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py index e8e336a5473f..f3c59e67e081 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py index ba0296c0cf39..b453adbd82f3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlMiGetDatabaseMigrationExpanded.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py index 4dd3abcd79f7..fb70a3582411 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCancelDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCancelDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py index 0559022686e3..7128c5340828 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py @@ -59,12 +59,13 @@ def main(): "trustServerCertificate": True, "userName": "bbb", }, + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", } }, ).result() print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py index e95c761f5043..b910e2af8eb8 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py @@ -58,12 +58,13 @@ def main(): "trustServerCertificate": True, "userName": "bbb", }, + "sqlServerInstanceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/SqlServerInstances/instanceName", } }, ).result() print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py index f26c25be97d3..4a504ac75ca5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py @@ -39,6 +39,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmCutoverDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCutoverDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py index 396a1c5e4c01..87663286fd81 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmDeleteDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py index 47839b85b798..dad99d497e02 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigration.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py index cd5c025de9fc..ae2390ea9bab 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/SqlVmGetDatabaseMigrationExpanded.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py index b5bd9506f2f4..5d7a45ab2e6a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Cancel.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Cancel.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py index 09d2ab653cbf..ee9220266f58 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Command.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Command.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py index e13872bae62a..90c9d48871dd 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_CreateOrUpdate.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py index c3de4f84b2c0..03545f814c01 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py @@ -39,6 +39,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Delete.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py index 86168c8bc1be..45f6b4080661 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py @@ -40,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Get.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py index 1a54d415227a..dfa8e45d3d82 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py @@ -40,6 +40,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_List.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py index 123593787091..9c9d4e68c26b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py @@ -56,6 +56,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Tasks_Update.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py index 06f93de02a72..2e100b169b0f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/UpdateMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/UpdateMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py index e0462cc0f0f8..5a4694930fa2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/UpdateSqlMigrationService.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/UpdateSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py index 3db82c3217d3..0ba69faf2c0b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/stable/2025-06-30/examples/Usages_List.json +# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Usages_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py index b2dbbd325ce0..cdfacd6727a2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py @@ -25,7 +25,7 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get(self, resource_grou resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_create(self, reso }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_delete(self, reso resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -116,7 +116,7 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope(self, res response = self.client.database_migrations_mongo_to_cosmos_db_ru_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py index f43cc90f3613..9ada16980408 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py @@ -26,7 +26,7 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get(self, resourc resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_create(self }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -108,7 +108,7 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_delete(self resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,7 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope(sel response = self.client.database_migrations_mongo_to_cosmos_db_ru_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py index fa149906b9bb..52b98e731a96 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py @@ -25,7 +25,7 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get(self, resource_g resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -91,7 +91,7 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_create(self, r }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,7 +104,7 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_delete(self, r resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -116,7 +116,7 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope(self, response = self.client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py index 39cc6909f3ca..dc29c797163a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py @@ -26,7 +26,7 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get(self, reso resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_create(s }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -108,7 +108,7 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_delete(s resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,7 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope( response = self.client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py index d16be8e7c0d6..408347c68ca2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py @@ -25,7 +25,7 @@ def test_database_migrations_sql_db_get(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -81,6 +81,7 @@ def test_database_migrations_sql_db_begin_create_or_update(self, resource_group) "trustServerCertificate": bool, "userName": "str", }, + "sqlServerInstanceId": "str", "startedOn": "2020-02-20 00:00:00", "tableList": ["str"], "targetDatabaseCollation": "str", @@ -103,7 +104,7 @@ def test_database_migrations_sql_db_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -116,7 +117,7 @@ def test_database_migrations_sql_db_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -130,7 +131,7 @@ def test_database_migrations_sql_db_begin_cancel(self, resource_group): sql_db_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -144,7 +145,7 @@ def test_database_migrations_sql_db_begin_retry(self, resource_group): sql_db_instance_name="str", target_db_name="str", migration_operation_input={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py index 0fcfb4c293c0..3df50ca15b08 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py @@ -26,7 +26,7 @@ async def test_database_migrations_sql_db_get(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -83,6 +83,7 @@ async def test_database_migrations_sql_db_begin_create_or_update(self, resource_ "trustServerCertificate": bool, "userName": "str", }, + "sqlServerInstanceId": "str", "startedOn": "2020-02-20 00:00:00", "tableList": ["str"], "targetDatabaseCollation": "str", @@ -105,7 +106,7 @@ async def test_database_migrations_sql_db_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -120,7 +121,7 @@ async def test_database_migrations_sql_db_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -136,7 +137,7 @@ async def test_database_migrations_sql_db_begin_cancel(self, resource_group): sql_db_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -152,7 +153,7 @@ async def test_database_migrations_sql_db_begin_retry(self, resource_group): sql_db_instance_name="str", target_db_name="str", migration_operation_input={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py index edd46f184636..6579d152b335 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py @@ -25,7 +25,7 @@ def test_database_migrations_sql_mi_get(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -167,6 +167,7 @@ def test_database_migrations_sql_mi_begin_create_or_update(self, resource_group) "trustServerCertificate": bool, "userName": "str", }, + "sqlServerInstanceId": "str", "startedOn": "2020-02-20 00:00:00", "targetDatabaseCollation": "str", }, @@ -180,7 +181,7 @@ def test_database_migrations_sql_mi_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -193,7 +194,7 @@ def test_database_migrations_sql_mi_begin_delete(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -207,7 +208,7 @@ def test_database_migrations_sql_mi_begin_cancel(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -221,7 +222,7 @@ def test_database_migrations_sql_mi_begin_cutover(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py index a71d11779041..156261e95297 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py @@ -26,7 +26,7 @@ async def test_database_migrations_sql_mi_get(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -169,6 +169,7 @@ async def test_database_migrations_sql_mi_begin_create_or_update(self, resource_ "trustServerCertificate": bool, "userName": "str", }, + "sqlServerInstanceId": "str", "startedOn": "2020-02-20 00:00:00", "targetDatabaseCollation": "str", }, @@ -182,7 +183,7 @@ async def test_database_migrations_sql_mi_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -197,7 +198,7 @@ async def test_database_migrations_sql_mi_begin_delete(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -213,7 +214,7 @@ async def test_database_migrations_sql_mi_begin_cancel(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -229,7 +230,7 @@ async def test_database_migrations_sql_mi_begin_cutover(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py index 1bb7babcf8a4..f4ca8799d940 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py @@ -25,7 +25,7 @@ def test_database_migrations_sql_vm_get(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -167,6 +167,7 @@ def test_database_migrations_sql_vm_begin_create_or_update(self, resource_group) "trustServerCertificate": bool, "userName": "str", }, + "sqlServerInstanceId": "str", "startedOn": "2020-02-20 00:00:00", "targetDatabaseCollation": "str", }, @@ -180,7 +181,7 @@ def test_database_migrations_sql_vm_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -193,7 +194,7 @@ def test_database_migrations_sql_vm_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -207,7 +208,7 @@ def test_database_migrations_sql_vm_begin_cancel(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -221,7 +222,7 @@ def test_database_migrations_sql_vm_begin_cutover(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py index bd4462d05bc1..287b5643d8db 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py @@ -26,7 +26,7 @@ async def test_database_migrations_sql_vm_get(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -169,6 +169,7 @@ async def test_database_migrations_sql_vm_begin_create_or_update(self, resource_ "trustServerCertificate": bool, "userName": "str", }, + "sqlServerInstanceId": "str", "startedOn": "2020-02-20 00:00:00", "targetDatabaseCollation": "str", }, @@ -182,7 +183,7 @@ async def test_database_migrations_sql_vm_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -197,7 +198,7 @@ async def test_database_migrations_sql_vm_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -213,7 +214,7 @@ async def test_database_migrations_sql_vm_begin_cancel(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -229,7 +230,7 @@ async def test_database_migrations_sql_vm_begin_cutover(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py index c1bb13e5913e..bf7d8b944631 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py @@ -25,7 +25,7 @@ def test_files_list(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -39,7 +39,7 @@ def test_files_get(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -74,7 +74,7 @@ def test_files_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -88,7 +88,7 @@ def test_files_delete(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -123,7 +123,7 @@ def test_files_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -137,7 +137,7 @@ def test_files_read(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -151,7 +151,7 @@ def test_files_read_write(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py index fc0ba449d7d7..fb42d61e2ee5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py @@ -26,7 +26,7 @@ async def test_files_list(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -40,7 +40,7 @@ async def test_files_get(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -75,7 +75,7 @@ async def test_files_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -89,7 +89,7 @@ async def test_files_delete(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -124,7 +124,7 @@ async def test_files_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -138,7 +138,7 @@ async def test_files_read(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -152,7 +152,7 @@ async def test_files_read_write(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py index b827ce068213..9f8e9f0a4c13 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py @@ -24,7 +24,7 @@ def test_migration_services_get(self, resource_group): response = self.client.migration_services.get( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_migration_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_migration_services_begin_delete(self, resource_group): response = self.client.migration_services.begin_delete( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_migration_services_begin_update(self, resource_group): resource_group_name=resource_group.name, migration_service_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_migration_services_begin_update(self, resource_group): def test_migration_services_list_by_resource_group(self, resource_group): response = self.client.migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -99,7 +99,7 @@ def test_migration_services_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_migration_services_list_by_subscription(self, resource_group): response = self.client.migration_services.list_by_subscription( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_migration_services_list_migrations(self, resource_group): response = self.client.migration_services.list_migrations( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py index 26eac697e992..79dde40d9c16 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py @@ -25,7 +25,7 @@ async def test_migration_services_get(self, resource_group): response = await self.client.migration_services.get( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -55,7 +55,7 @@ async def test_migration_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -69,7 +69,7 @@ async def test_migration_services_begin_delete(self, resource_group): await self.client.migration_services.begin_delete( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -84,7 +84,7 @@ async def test_migration_services_begin_update(self, resource_group): resource_group_name=resource_group.name, migration_service_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +96,7 @@ async def test_migration_services_begin_update(self, resource_group): async def test_migration_services_list_by_resource_group(self, resource_group): response = self.client.migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -106,7 +106,7 @@ async def test_migration_services_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_migration_services_list_by_subscription(self, resource_group): response = self.client.migration_services.list_by_subscription( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -118,7 +118,7 @@ async def test_migration_services_list_migrations(self, resource_group): response = self.client.migration_services.list_migrations( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py index 5f8609d1e40c..1047b35abeae 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py index 1a615b6ef672..560889709958 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py index 3e28d89d0dda..19c77ae7afba 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py @@ -24,7 +24,7 @@ def test_projects_list(self, resource_group): response = self.client.projects.list( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -66,7 +66,7 @@ def test_projects_create_or_update(self, resource_group): "targetPlatform": "str", "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ def test_projects_get(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -92,7 +92,7 @@ def test_projects_delete(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -134,7 +134,7 @@ def test_projects_update(self, resource_group): "targetPlatform": "str", "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py index 196d57b3a554..dce836e871c6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py @@ -25,7 +25,7 @@ async def test_projects_list(self, resource_group): response = self.client.projects.list( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -67,7 +67,7 @@ async def test_projects_create_or_update(self, resource_group): "targetPlatform": "str", "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -80,7 +80,7 @@ async def test_projects_get(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -93,7 +93,7 @@ async def test_projects_delete(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -135,7 +135,7 @@ async def test_projects_update(self, resource_group): "targetPlatform": "str", "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py index a5476404f158..fa896c998888 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_resource_skus_list_skus(self, resource_group): response = self.client.resource_skus.list_skus( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py index e874e4589c08..9aa616b646d9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_resource_skus_list_skus(self, resource_group): response = self.client.resource_skus.list_skus( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py index dafaa746f0e3..3a542b0e95e3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py @@ -24,7 +24,7 @@ def test_service_tasks_list(self, resource_group): response = self.client.service_tasks.list( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -52,7 +52,7 @@ def test_service_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_service_tasks_get(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_service_tasks_delete(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -106,7 +106,7 @@ def test_service_tasks_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -119,7 +119,7 @@ def test_service_tasks_cancel(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py index 93f823dd0533..fcc5cb92176e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py @@ -25,7 +25,7 @@ async def test_service_tasks_list(self, resource_group): response = self.client.service_tasks.list( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -53,7 +53,7 @@ async def test_service_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -66,7 +66,7 @@ async def test_service_tasks_get(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -79,7 +79,7 @@ async def test_service_tasks_delete(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -107,7 +107,7 @@ async def test_service_tasks_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -120,7 +120,7 @@ async def test_service_tasks_cancel(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py index 291d4cf0c17b..1056b0018fbb 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py @@ -48,7 +48,7 @@ def test_services_begin_create_or_update(self, resource_group): "virtualNicId": "str", "virtualSubnetId": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -60,7 +60,7 @@ def test_services_get(self, resource_group): response = self.client.services.get( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -72,7 +72,7 @@ def test_services_begin_delete(self, resource_group): response = self.client.services.begin_delete( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -108,7 +108,7 @@ def test_services_begin_update(self, resource_group): "virtualNicId": "str", "virtualSubnetId": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -120,7 +120,7 @@ def test_services_check_status(self, resource_group): response = self.client.services.check_status( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -132,7 +132,7 @@ def test_services_begin_start(self, resource_group): response = self.client.services.begin_start( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -144,7 +144,7 @@ def test_services_begin_stop(self, resource_group): response = self.client.services.begin_stop( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -156,7 +156,7 @@ def test_services_list_skus(self, resource_group): response = self.client.services.list_skus( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -169,7 +169,7 @@ def test_services_check_children_name_availability(self, resource_group): group_name="str", service_name="str", parameters={"name": "str", "type": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -180,7 +180,7 @@ def test_services_check_children_name_availability(self, resource_group): def test_services_list_by_resource_group(self, resource_group): response = self.client.services.list_by_resource_group( group_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -190,7 +190,7 @@ def test_services_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_services_list(self, resource_group): response = self.client.services.list( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -202,7 +202,7 @@ def test_services_check_name_availability(self, resource_group): response = self.client.services.check_name_availability( location="str", parameters={"name": "str", "type": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py index 618bc109526c..60dcefb0e554 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py @@ -50,7 +50,7 @@ async def test_services_begin_create_or_update(self, resource_group): "virtualNicId": "str", "virtualSubnetId": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -63,7 +63,7 @@ async def test_services_get(self, resource_group): response = await self.client.services.get( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -76,7 +76,7 @@ async def test_services_begin_delete(self, resource_group): await self.client.services.begin_delete( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -114,7 +114,7 @@ async def test_services_begin_update(self, resource_group): "virtualNicId": "str", "virtualSubnetId": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -127,7 +127,7 @@ async def test_services_check_status(self, resource_group): response = await self.client.services.check_status( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -140,7 +140,7 @@ async def test_services_begin_start(self, resource_group): await self.client.services.begin_start( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -154,7 +154,7 @@ async def test_services_begin_stop(self, resource_group): await self.client.services.begin_stop( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -167,7 +167,7 @@ async def test_services_list_skus(self, resource_group): response = self.client.services.list_skus( group_name="str", service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -180,7 +180,7 @@ async def test_services_check_children_name_availability(self, resource_group): group_name="str", service_name="str", parameters={"name": "str", "type": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -191,7 +191,7 @@ async def test_services_check_children_name_availability(self, resource_group): async def test_services_list_by_resource_group(self, resource_group): response = self.client.services.list_by_resource_group( group_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -201,7 +201,7 @@ async def test_services_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_services_list(self, resource_group): response = self.client.services.list( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -213,7 +213,7 @@ async def test_services_check_name_availability(self, resource_group): response = await self.client.services.check_name_availability( location="str", parameters={"name": "str", "type": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py index 9820762740ed..9d4e0e6c552c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py @@ -24,7 +24,7 @@ def test_sql_migration_services_get(self, resource_group): response = self.client.sql_migration_services.get( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -53,7 +53,7 @@ def test_sql_migration_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -65,7 +65,7 @@ def test_sql_migration_services_begin_delete(self, resource_group): response = self.client.sql_migration_services.begin_delete( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -78,7 +78,7 @@ def test_sql_migration_services_begin_update(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,7 +89,7 @@ def test_sql_migration_services_begin_update(self, resource_group): def test_sql_migration_services_list_by_resource_group(self, resource_group): response = self.client.sql_migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -101,7 +101,7 @@ def test_sql_migration_services_list_auth_keys(self, resource_group): response = self.client.sql_migration_services.list_auth_keys( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -114,7 +114,7 @@ def test_sql_migration_services_regenerate_auth_keys(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"authKey1": "str", "authKey2": "str", "keyName": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -127,7 +127,7 @@ def test_sql_migration_services_delete_node(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"integrationRuntimeName": "str", "nodeName": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -139,7 +139,7 @@ def test_sql_migration_services_list_migrations(self, resource_group): response = self.client.sql_migration_services.list_migrations( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -151,7 +151,7 @@ def test_sql_migration_services_list_monitoring_data(self, resource_group): response = self.client.sql_migration_services.list_monitoring_data( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -161,7 +161,7 @@ def test_sql_migration_services_list_monitoring_data(self, resource_group): @recorded_by_proxy def test_sql_migration_services_list_by_subscription(self, resource_group): response = self.client.sql_migration_services.list_by_subscription( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py index 4438d58d10b6..1958408b39f3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py @@ -25,7 +25,7 @@ async def test_sql_migration_services_get(self, resource_group): response = await self.client.sql_migration_services.get( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -55,7 +55,7 @@ async def test_sql_migration_services_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -69,7 +69,7 @@ async def test_sql_migration_services_begin_delete(self, resource_group): await self.client.sql_migration_services.begin_delete( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -84,7 +84,7 @@ async def test_sql_migration_services_begin_update(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"tags": {"str": "str"}}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +96,7 @@ async def test_sql_migration_services_begin_update(self, resource_group): async def test_sql_migration_services_list_by_resource_group(self, resource_group): response = self.client.sql_migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -108,7 +108,7 @@ async def test_sql_migration_services_list_auth_keys(self, resource_group): response = await self.client.sql_migration_services.list_auth_keys( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -121,7 +121,7 @@ async def test_sql_migration_services_regenerate_auth_keys(self, resource_group) resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"authKey1": "str", "authKey2": "str", "keyName": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -134,7 +134,7 @@ async def test_sql_migration_services_delete_node(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"integrationRuntimeName": "str", "nodeName": "str"}, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -146,7 +146,7 @@ async def test_sql_migration_services_list_migrations(self, resource_group): response = self.client.sql_migration_services.list_migrations( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -158,7 +158,7 @@ async def test_sql_migration_services_list_monitoring_data(self, resource_group) response = await self.client.sql_migration_services.list_monitoring_data( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -168,7 +168,7 @@ async def test_sql_migration_services_list_monitoring_data(self, resource_group) @recorded_by_proxy_async async def test_sql_migration_services_list_by_subscription(self, resource_group): response = self.client.sql_migration_services.list_by_subscription( - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py index 2fe95b031321..0b0862a7cc68 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py @@ -25,7 +25,7 @@ def test_tasks_list(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -54,7 +54,7 @@ def test_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -68,7 +68,7 @@ def test_tasks_get(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -82,7 +82,7 @@ def test_tasks_delete(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -111,7 +111,7 @@ def test_tasks_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -125,7 +125,7 @@ def test_tasks_cancel(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -157,7 +157,7 @@ def test_tasks_command(self, resource_group): }, "state": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py index f2666f5226cd..7f2cb2e04bcc 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py @@ -26,7 +26,7 @@ async def test_tasks_list(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -55,7 +55,7 @@ async def test_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -69,7 +69,7 @@ async def test_tasks_get(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -83,7 +83,7 @@ async def test_tasks_delete(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -112,7 +112,7 @@ async def test_tasks_update(self, resource_group): }, "type": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -126,7 +126,7 @@ async def test_tasks_cancel(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -158,7 +158,7 @@ async def test_tasks_command(self, resource_group): }, "state": "str", }, - api_version="2025-06-30", + api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py index 197edbd7668a..477b2cd2fe38 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py index 7deb8813e92b..78ecb4725584 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-06-30", + api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/pyproject.toml b/sdk/datamigration/azure-mgmt-datamigration/pyproject.toml index a6a7222c77b1..5b285267c254 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/pyproject.toml +++ b/sdk/datamigration/azure-mgmt-datamigration/pyproject.toml @@ -1,3 +1,72 @@ +[build-system] +requires = [ + "setuptools>=77.0.3", + "wheel", +] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-mgmt-datamigration" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Azure Datamigration Management Client Library for Python" +license = "MIT" +classifiers = [ + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] +requires-python = ">=3.9" +keywords = [ + "azure", + "azure sdk", +] +dependencies = [ + "isodate>=0.6.1", + "azure-mgmt-core>=1.6.0", + "typing-extensions>=4.6.0", +] +dynamic = [ + "version", + "readme", +] + +[project.urls] +repository = "https://github.com/Azure/azure-sdk-for-python" + +[tool.setuptools.dynamic.version] +attr = "azure.mgmt.datamigration._version.VERSION" + +[tool.setuptools.dynamic.readme] +file = [ + "README.md", + "CHANGELOG.md", +] +content-type = "text/markdown" + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "generated_tests*", + "samples*", + "generated_samples*", + "doc*", + "azure", + "azure.mgmt", +] + +[tool.setuptools.package-data] +pytyped = [ + "py.typed", +] + [tool.azure-sdk-build] breaking = false mypy = false @@ -9,5 +78,11 @@ verifytypes = false package_name = "azure-mgmt-datamigration" package_pprint_name = "Data Migration" package_doc_id = "" -is_stable = true +is_stable = false title = "DataMigrationManagementClient" +package_nspkg = "azure-mgmt-nspkg" +is_arm = true +need_msrestazure = false +need_azuremgmtcore = true +sample_link = "" +exclude_folders = "" diff --git a/sdk/datamigration/azure-mgmt-datamigration/setup.py b/sdk/datamigration/azure-mgmt-datamigration/setup.py deleted file mode 100644 index e4bebd5f1c73..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/setup.py +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env python - -# ------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- - -import re -import os.path -from io import open -from setuptools import find_packages, setup - -# Change the PACKAGE_NAME only to change folder and different name -PACKAGE_NAME = "azure-mgmt-datamigration" -PACKAGE_PPRINT_NAME = "Data Migration" - -# a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace("-", "/") -# a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace("-", ".") - -# Version extraction inspired from 'requests' -with open( - os.path.join(package_folder_path, "version.py") - if os.path.exists(os.path.join(package_folder_path, "version.py")) - else os.path.join(package_folder_path, "_version.py"), - "r", -) as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) - -if not version: - raise RuntimeError("Cannot find version information") - -with open("README.md", encoding="utf-8") as f: - readme = f.read() -with open("CHANGELOG.md", encoding="utf-8") as f: - changelog = f.read() - -setup( - name=PACKAGE_NAME, - version=version, - description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME), - long_description=readme + "\n\n" + changelog, - long_description_content_type="text/markdown", - license="MIT License", - author="Microsoft Corporation", - author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python", - keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Programming Language :: Python", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: MIT License", - ], - zip_safe=False, - packages=find_packages( - exclude=[ - "tests", - # Exclude packages that will be covered by PEP420 or nspkg - "azure", - "azure.mgmt", - ] - ), - include_package_data=True, - package_data={ - "pytyped": ["py.typed"], - }, - install_requires=[ - "isodate>=0.6.1", - "typing-extensions>=4.6.0", - "azure-common>=1.1", - "azure-mgmt-core>=1.6.0", - ], - python_requires=">=3.9", -) From 165d0961a06807aa34228b08da8f3a082a4ac178 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Fri, 10 Apr 2026 14:39:21 +0800 Subject: [PATCH 2/3] generated from typespec:18420c08307c8e20d55aa42b47178d571f9d0b44 --- .../azure-mgmt-datamigration/_metadata.json | 15 +- .../apiview-properties.json | 1084 +- .../azure/mgmt/datamigration/__init__.py | 4 +- ...ration_management_client.py => _client.py} | 98 +- .../mgmt/datamigration/_configuration.py | 15 +- .../azure/mgmt/datamigration/_patch.py | 13 +- .../mgmt/datamigration/_utils/__init__.py | 2 +- .../mgmt/datamigration/_utils/model_base.py | 1459 + .../datamigration/_utils/serialization.py | 2 +- .../azure/mgmt/datamigration/_version.py | 2 +- .../azure/mgmt/datamigration/aio/__init__.py | 4 +- ...ration_management_client.py => _client.py} | 100 +- .../mgmt/datamigration/aio/_configuration.py | 15 +- .../azure/mgmt/datamigration/aio/_patch.py | 13 +- .../datamigration/aio/operations/__init__.py | 47 +- ..._mongo_to_cosmos_db_ru_mongo_operations.py | 564 - ...ngo_to_cosmos_dbv_core_mongo_operations.py | 564 - .../_database_migrations_sql_db_operations.py | 880 - .../_database_migrations_sql_mi_operations.py | 875 - .../_database_migrations_sql_vm_operations.py | 869 - .../aio/operations/_files_operations.py | 743 - .../_migration_services_operations.py | 894 - .../aio/operations/_operations.py | 11885 ++- .../datamigration/aio/operations/_patch.py | 13 +- .../aio/operations/_projects_operations.py | 587 - .../operations/_resource_skus_operations.py | 137 - .../operations/_service_tasks_operations.py | 674 - .../aio/operations/_services_operations.py | 1483 - .../_sql_migration_services_operations.py | 1243 - .../aio/operations/_tasks_operations.py | 875 - .../aio/operations/_usages_operations.py | 141 - .../mgmt/datamigration/models/__init__.py | 90 +- ...n_management_client_enums.py => _enums.py} | 355 +- .../mgmt/datamigration/models/_models.py | 15425 +++ .../mgmt/datamigration/models/_models_py3.py | 19590 ---- .../azure/mgmt/datamigration/models/_patch.py | 13 +- .../mgmt/datamigration/operations/__init__.py | 47 +- ..._mongo_to_cosmos_db_ru_mongo_operations.py | 707 - ...ngo_to_cosmos_dbv_core_mongo_operations.py | 707 - .../_database_migrations_sql_db_operations.py | 1054 - .../_database_migrations_sql_mi_operations.py | 1050 - .../_database_migrations_sql_vm_operations.py | 1044 - .../operations/_files_operations.py | 973 - .../_migration_services_operations.py | 1102 - .../datamigration/operations/_operations.py | 14165 ++- .../mgmt/datamigration/operations/_patch.py | 13 +- .../operations/_projects_operations.py | 754 - .../operations/_resource_skus_operations.py | 163 - .../operations/_service_tasks_operations.py | 884 - .../operations/_services_operations.py | 1826 - .../_sql_migration_services_operations.py | 1560 - .../operations/_tasks_operations.py | 1134 - .../operations/_usages_operations.py | 170 - .../code_report_typespec.json | 84482 ++++++++++++++++ ...create_or_update_database_migration_max.py | 6 +- ...reate_or_update_database_migration_max1.py | 79 + ...create_or_update_database_migration_min.py | 6 +- ...reate_or_update_database_migration_min1.py | 68 + ...smos_db_mongo_delete_database_migration.py | 7 +- ...mos_db_mongo_delete_database_migration1.py | 42 + .../cosmos_db_mongo_get_database_migration.py | 7 +- ...cosmos_db_mongo_get_database_migration1.py | 43 + ...b_mongo_get_database_migration_expanded.py | 7 +- ..._mongo_get_database_migration_expanded1.py | 43 + ..._mongo_list_by_scope_database_migration.py | 7 +- ...mongo_list_by_scope_database_migration1.py | 43 + ...mongo_list_by_scope_database_migration2.py | 43 + ...mongo_list_by_scope_database_migration3.py | 43 + .../create_or_update_migration_service_max.py | 7 +- .../create_or_update_migration_service_min.py | 7 +- ...ate_or_update_sql_migration_service_max.py | 7 +- ...ate_or_update_sql_migration_service_min.py | 7 +- .../delete_integration_runtime_node.py | 7 +- .../delete_migration_service.py | 7 +- .../delete_sql_migration_service.py | 7 +- .../files_create_or_update.py | 7 +- .../generated_samples/files_delete.py | 7 +- .../generated_samples/files_get.py | 7 +- .../generated_samples/files_list.py | 7 +- .../generated_samples/files_read.py | 7 +- .../generated_samples/files_read_write.py | 7 +- .../generated_samples/files_update.py | 7 +- .../get_migration_service.py | 7 +- .../get_monitor_data_sql_migration_service.py | 7 +- .../get_sql_migration_service.py | 7 +- .../list_auth_keys_sql_migration_service.py | 7 +- ...ist_by_resource_group_migration_service.py | 7 +- ...by_resource_group_sql_migration_service.py | 7 +- .../list_by_subscription_migration_service.py | 7 +- ...t_by_subscription_sql_migration_service.py | 7 +- .../list_migrations_by_migration_service.py | 7 +- ...ist_migrations_by_sql_migration_service.py | 7 +- .../generated_samples/list_operation.py | 5 +- .../projects_create_or_update.py | 7 +- .../generated_samples/projects_delete.py | 7 +- .../generated_samples/projects_get.py | 7 +- .../generated_samples/projects_list.py | 7 +- .../generated_samples/projects_update.py | 7 +- .../regen_auth_keys_sql_migration_service.py | 7 +- .../resource_skus_list_skus.py | 7 +- .../generated_samples/service_tasks_cancel.py | 7 +- .../service_tasks_create_or_update.py | 7 +- .../generated_samples/service_tasks_delete.py | 7 +- .../generated_samples/service_tasks_get.py | 7 +- .../generated_samples/service_tasks_list.py | 7 +- .../generated_samples/service_tasks_update.py | 7 +- ...rvices_check_children_name_availability.py | 7 +- .../services_check_name_availability.py | 7 +- .../services_check_status.py | 7 +- .../services_create_or_update.py | 6 +- .../generated_samples/services_delete.py | 7 +- .../generated_samples/services_get.py | 7 +- .../generated_samples/services_list.py | 7 +- .../services_list_by_resource_group.py | 7 +- .../generated_samples/services_list_skus.py | 7 +- .../generated_samples/services_start.py | 7 +- .../generated_samples/services_stop.py | 7 +- .../generated_samples/services_update.py | 6 +- .../sql_db_cancel_database_migration.py | 7 +- ...create_or_update_database_migration_max.py | 6 +- ...create_or_update_database_migration_min.py | 6 +- .../sql_db_delete_database_migration.py | 7 +- .../sql_db_get_database_migration.py | 7 +- .../sql_db_get_database_migration_expanded.py | 7 +- .../sql_db_retry_database_migration.py | 10 +- .../sql_mi_cancel_database_migration.py | 7 +- ...atabase_migration_blob_managed_identity.py | 6 +- ...create_or_update_database_migration_max.py | 6 +- ...create_or_update_database_migration_min.py | 6 +- .../sql_mi_cutover_database_migration.py | 7 +- .../sql_mi_delete_database_migration.py | 7 +- .../sql_mi_get_database_migration.py | 7 +- .../sql_mi_get_database_migration_expanded.py | 7 +- .../sql_vm_cancel_database_migration.py | 7 +- ...create_or_update_database_migration_max.py | 6 +- ...create_or_update_database_migration_min.py | 6 +- .../sql_vm_cutover_database_migration.py | 7 +- .../sql_vm_delete_database_migration.py | 7 +- .../sql_vm_get_database_migration.py | 7 +- .../sql_vm_get_database_migration_expanded.py | 7 +- .../generated_samples/tasks_cancel.py | 7 +- .../generated_samples/tasks_command.py | 7 +- .../tasks_create_or_update.py | 7 +- .../generated_samples/tasks_delete.py | 7 +- .../generated_samples/tasks_get.py | 7 +- .../generated_samples/tasks_list.py | 7 +- .../generated_samples/tasks_update.py | 7 +- .../update_migration_service.py | 7 +- .../update_sql_migration_service.py | 7 +- .../generated_samples/usages_list.py | 7 +- .../generated_tests/conftest.py | 2 +- ..._mongo_to_cosmos_db_ru_mongo_operations.py | 87 +- ..._to_cosmos_db_ru_mongo_operations_async.py | 87 +- ...ngo_to_cosmos_dbv_core_mongo_operations.py | 87 +- ..._cosmos_dbv_core_mongo_operations_async.py | 87 +- ...t_database_migrations_sql_db_operations.py | 7 +- ...base_migrations_sql_db_operations_async.py | 7 +- ...t_database_migrations_sql_mi_operations.py | 7 +- ...base_migrations_sql_mi_operations_async.py | 7 +- ...t_database_migrations_sql_vm_operations.py | 7 +- ...base_migrations_sql_vm_operations_async.py | 7 +- ...a_migration_management_files_operations.py | 59 +- ...ation_management_files_operations_async.py | 59 +- ...anagement_migration_services_operations.py | 25 +- ...ent_migration_services_operations_async.py | 25 +- ...st_data_migration_management_operations.py | 6 +- ...a_migration_management_operations_async.py | 6 +- ...igration_management_projects_operations.py | 113 +- ...on_management_projects_operations_async.py | 113 +- ...ion_management_resource_skus_operations.py | 6 +- ...nagement_resource_skus_operations_async.py | 6 +- ...ion_management_service_tasks_operations.py | 56 +- ...nagement_service_tasks_operations_async.py | 56 +- ...igration_management_services_operations.py | 123 +- ...on_management_services_operations_async.py | 127 +- ...ement_sql_migration_services_operations.py | 43 +- ...sql_migration_services_operations_async.py | 43 +- ...a_migration_management_tasks_operations.py | 57 +- ...ation_management_tasks_operations_async.py | 57 +- ..._migration_management_usages_operations.py | 3 +- ...tion_management_usages_operations_async.py | 3 +- .../tsp-location.yaml | 4 + 182 files changed, 129747 insertions(+), 45253 deletions(-) rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/{_data_migration_management_client.py => _client.py} (88%) create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/model_base.py rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/{_data_migration_management_client.py => _client.py} (89%) delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py rename sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/{_data_migration_management_client_enums.py => _enums.py} (70%) create mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py delete mode 100644 sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/code_report_typespec.json create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max1.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min1.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration1.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration1.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded1.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration1.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration2.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration3.py create mode 100644 sdk/datamigration/azure-mgmt-datamigration/tsp-location.yaml diff --git a/sdk/datamigration/azure-mgmt-datamigration/_metadata.json b/sdk/datamigration/azure-mgmt-datamigration/_metadata.json index 2f332fac6ed8..19d11fb4d04d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/_metadata.json +++ b/sdk/datamigration/azure-mgmt-datamigration/_metadata.json @@ -1,11 +1,10 @@ { - "commit": "de8103ff8e94ea51c56bb22094ded5d2dfc45a6a", + "apiVersion": "2025-09-01-preview", + "apiVersions": { + "Microsoft.DataMigration": "2025-09-01-preview" + }, + "commit": "18420c08307c8e20d55aa42b47178d571f9d0b44", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest": "3.10.2", - "use": [ - "@autorest/python@6.50.0", - "@autorest/modelerfour@4.27.0" - ], - "autorest_command": "autorest specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/v-chenjiang/spec/worktrees/sdk-azure-mgmt-datamigration/sdk --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", - "readme": "specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/readme.md" + "typespec_src": "specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration", + "emitterVersion": "0.61.3" } \ No newline at end of file diff --git a/sdk/datamigration/azure-mgmt-datamigration/apiview-properties.json b/sdk/datamigration/azure-mgmt-datamigration/apiview-properties.json index f65f7fb7b2a6..5003fa9194f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/apiview-properties.json +++ b/sdk/datamigration/azure-mgmt-datamigration/apiview-properties.json @@ -1,563 +1,529 @@ { - "CrossLanguagePackageId": null, + "CrossLanguagePackageId": "Microsoft.DataMigration", "CrossLanguageDefinitionId": { - "azure.mgmt.datamigration.models.ApiError": null, - "azure.mgmt.datamigration.models.AuthenticationKeys": null, - "azure.mgmt.datamigration.models.AvailableServiceSku": null, - "azure.mgmt.datamigration.models.AvailableServiceSkuCapacity": null, - "azure.mgmt.datamigration.models.AvailableServiceSkuSku": null, - "azure.mgmt.datamigration.models.AzureActiveDirectoryApp": null, - "azure.mgmt.datamigration.models.AzureBlob": null, - "azure.mgmt.datamigration.models.BackupConfiguration": null, - "azure.mgmt.datamigration.models.BackupFileInfo": null, - "azure.mgmt.datamigration.models.BackupSetInfo": null, - "azure.mgmt.datamigration.models.BlobShare": null, - "azure.mgmt.datamigration.models.CheckOCIDriverTaskInput": null, - "azure.mgmt.datamigration.models.CheckOCIDriverTaskOutput": null, - "azure.mgmt.datamigration.models.ProjectTaskProperties": null, - "azure.mgmt.datamigration.models.CheckOCIDriverTaskProperties": null, - "azure.mgmt.datamigration.models.CommandProperties": null, - "azure.mgmt.datamigration.models.ConnectionInfo": null, - "azure.mgmt.datamigration.models.ConnectToMongoDbTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputAgentJobLevel": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputLoginLevel": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputTaskLevel": null, - "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem": null, - "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskProperties": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskInput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput": null, - "azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskProperties": null, - "azure.mgmt.datamigration.models.CopyProgressDetails": null, - "azure.mgmt.datamigration.models.Database": null, - "azure.mgmt.datamigration.models.DatabaseBackupInfo": null, - "azure.mgmt.datamigration.models.DatabaseFileInfo": null, - "azure.mgmt.datamigration.models.DatabaseFileInput": null, - "azure.mgmt.datamigration.models.DatabaseInfo": null, - "azure.mgmt.datamigration.models.Resource": null, - "azure.mgmt.datamigration.models.ProxyResource": null, - "azure.mgmt.datamigration.models.DatabaseMigration": null, - "azure.mgmt.datamigration.models.DatabaseMigrationBase": null, - "azure.mgmt.datamigration.models.DatabaseMigrationBaseListResult": null, - "azure.mgmt.datamigration.models.DatabaseMigrationBaseProperties": null, - "azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo": null, - "azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongoListResult": null, - "azure.mgmt.datamigration.models.DatabaseMigrationListResult": null, - "azure.mgmt.datamigration.models.DatabaseMigrationProperties": null, - "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesCosmosDbMongo": null, - "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb": null, - "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlMi": null, - "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlVm": null, - "azure.mgmt.datamigration.models.ProxyResourceAutoGenerated": null, - "azure.mgmt.datamigration.models.DatabaseMigrationSqlDb": null, - "azure.mgmt.datamigration.models.DatabaseMigrationSqlMi": null, - "azure.mgmt.datamigration.models.DatabaseMigrationSqlVm": null, - "azure.mgmt.datamigration.models.DatabaseObjectName": null, - "azure.mgmt.datamigration.models.DataItemMigrationSummaryResult": null, - "azure.mgmt.datamigration.models.DatabaseSummaryResult": null, - "azure.mgmt.datamigration.models.DatabaseTable": null, - "azure.mgmt.datamigration.models.DataIntegrityValidationResult": null, - "azure.mgmt.datamigration.models.DataMigrationError": null, - "azure.mgmt.datamigration.models.DataMigrationProjectMetadata": null, - "azure.mgmt.datamigration.models.TrackedResourceAutoGenerated": null, - "azure.mgmt.datamigration.models.DataMigrationService": null, - "azure.mgmt.datamigration.models.DataMigrationServiceList": null, - "azure.mgmt.datamigration.models.DataMigrationServiceStatusResponse": null, - "azure.mgmt.datamigration.models.DeleteNode": null, - "azure.mgmt.datamigration.models.ErrorAdditionalInfo": null, - "azure.mgmt.datamigration.models.ErrorDetail": null, - "azure.mgmt.datamigration.models.ErrorInfo": null, - "azure.mgmt.datamigration.models.ErrorResponse": null, - "azure.mgmt.datamigration.models.ExecutionStatistics": null, - "azure.mgmt.datamigration.models.FileList": null, - "azure.mgmt.datamigration.models.FileShare": null, - "azure.mgmt.datamigration.models.FileStorageInfo": null, - "azure.mgmt.datamigration.models.GetProjectDetailsNonSqlTaskInput": null, - "azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskInput": null, - "azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput": null, - "azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskProperties": null, - "azure.mgmt.datamigration.models.GetUserTablesMySqlTaskInput": null, - "azure.mgmt.datamigration.models.GetUserTablesMySqlTaskOutput": null, - "azure.mgmt.datamigration.models.GetUserTablesMySqlTaskProperties": null, - "azure.mgmt.datamigration.models.GetUserTablesOracleTaskInput": null, - "azure.mgmt.datamigration.models.GetUserTablesOracleTaskOutput": null, - "azure.mgmt.datamigration.models.GetUserTablesOracleTaskProperties": null, - "azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskInput": null, - "azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskOutput": null, - "azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskProperties": null, - "azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput": null, - "azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput": null, - "azure.mgmt.datamigration.models.GetUserTablesSqlTaskProperties": null, - "azure.mgmt.datamigration.models.InstallOCIDriverTaskInput": null, - "azure.mgmt.datamigration.models.InstallOCIDriverTaskOutput": null, - "azure.mgmt.datamigration.models.InstallOCIDriverTaskProperties": null, - "azure.mgmt.datamigration.models.IntegrationRuntimeMonitoringData": null, - "azure.mgmt.datamigration.models.ManagedServiceIdentity": null, - "azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput": null, - "azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput": null, - "azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandProperties": null, - "azure.mgmt.datamigration.models.MigrateMongoDbTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskInput": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel": null, - "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbForPostgreSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel": null, - "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput": null, - "azure.mgmt.datamigration.models.SqlMigrationTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSchemaSqlTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateSqlServerDatabaseInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputDatabaseError": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputTableLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrationValidationDatabaseLevelResult": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputTableLevel": null, - "azure.mgmt.datamigration.models.MigrationValidationResult": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputValidationResult": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput": null, - "azure.mgmt.datamigration.models.SqlServerSqlMISyncTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskInput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputAgentJobLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputDatabaseLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputError": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputLoginLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSsisTaskInput": null, - "azure.mgmt.datamigration.models.MigrateSsisTaskOutput": null, - "azure.mgmt.datamigration.models.MigrateSsisTaskOutputMigrationLevel": null, - "azure.mgmt.datamigration.models.MigrateSsisTaskOutputProjectLevel": null, - "azure.mgmt.datamigration.models.MigrateSsisTaskProperties": null, - "azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput": null, - "azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput": null, - "azure.mgmt.datamigration.models.MigrateSyncCompleteCommandProperties": null, - "azure.mgmt.datamigration.models.MigrationEligibilityInfo": null, - "azure.mgmt.datamigration.models.MigrationOperationInput": null, - "azure.mgmt.datamigration.models.MigrationReportResult": null, - "azure.mgmt.datamigration.models.TrackedResource": null, - "azure.mgmt.datamigration.models.MigrationService": null, - "azure.mgmt.datamigration.models.MigrationServiceListResult": null, - "azure.mgmt.datamigration.models.MigrationServiceUpdate": null, - "azure.mgmt.datamigration.models.MigrationStatusDetails": null, - "azure.mgmt.datamigration.models.MigrationTableMetadata": null, - "azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult": null, - "azure.mgmt.datamigration.models.MigrationValidationOptions": null, - "azure.mgmt.datamigration.models.MiSqlConnectionInfo": null, - "azure.mgmt.datamigration.models.MongoConnectionInformation": null, - "azure.mgmt.datamigration.models.MongoDbCancelCommand": null, - "azure.mgmt.datamigration.models.MongoDbClusterInfo": null, - "azure.mgmt.datamigration.models.MongoDbObjectInfo": null, - "azure.mgmt.datamigration.models.MongoDbCollectionInfo": null, - "azure.mgmt.datamigration.models.MongoDbProgress": null, - "azure.mgmt.datamigration.models.MongoDbCollectionProgress": null, - "azure.mgmt.datamigration.models.MongoDbCollectionSettings": null, - "azure.mgmt.datamigration.models.MongoDbCommandInput": null, - "azure.mgmt.datamigration.models.MongoDbConnectionInfo": null, - "azure.mgmt.datamigration.models.MongoDbDatabaseInfo": null, - "azure.mgmt.datamigration.models.MongoDbDatabaseProgress": null, - "azure.mgmt.datamigration.models.MongoDbDatabaseSettings": null, - "azure.mgmt.datamigration.models.MongoDbError": null, - "azure.mgmt.datamigration.models.MongoDbFinishCommand": null, - "azure.mgmt.datamigration.models.MongoDbFinishCommandInput": null, - "azure.mgmt.datamigration.models.MongoDbMigrationProgress": null, - "azure.mgmt.datamigration.models.MongoDbMigrationSettings": null, - "azure.mgmt.datamigration.models.MongoDbRestartCommand": null, - "azure.mgmt.datamigration.models.MongoDbShardKeyField": null, - "azure.mgmt.datamigration.models.MongoDbShardKeyInfo": null, - "azure.mgmt.datamigration.models.MongoDbShardKeySetting": null, - "azure.mgmt.datamigration.models.MongoDbThrottlingSettings": null, - "azure.mgmt.datamigration.models.MongoMigrationCollection": null, - "azure.mgmt.datamigration.models.MongoMigrationProgressDetails": null, - "azure.mgmt.datamigration.models.MySqlConnectionInfo": null, - "azure.mgmt.datamigration.models.NameAvailabilityRequest": null, - "azure.mgmt.datamigration.models.NameAvailabilityResponse": null, - "azure.mgmt.datamigration.models.NodeMonitoringData": null, - "azure.mgmt.datamigration.models.NonSqlDataMigrationTable": null, - "azure.mgmt.datamigration.models.NonSqlDataMigrationTableResult": null, - "azure.mgmt.datamigration.models.NonSqlMigrationTaskInput": null, - "azure.mgmt.datamigration.models.NonSqlMigrationTaskOutput": null, - "azure.mgmt.datamigration.models.ODataError": null, - "azure.mgmt.datamigration.models.OfflineConfiguration": null, - "azure.mgmt.datamigration.models.OperationListResult": null, - "azure.mgmt.datamigration.models.OperationsDefinition": null, - "azure.mgmt.datamigration.models.OperationsDisplayDefinition": null, - "azure.mgmt.datamigration.models.OracleConnectionInfo": null, - "azure.mgmt.datamigration.models.OracleOCIDriverInfo": null, - "azure.mgmt.datamigration.models.OrphanedUserInfo": null, - "azure.mgmt.datamigration.models.PostgreSqlConnectionInfo": null, - "azure.mgmt.datamigration.models.Project": null, - "azure.mgmt.datamigration.models.ResourceAutoGenerated": null, - "azure.mgmt.datamigration.models.ProjectFile": null, - "azure.mgmt.datamigration.models.ProjectFileProperties": null, - "azure.mgmt.datamigration.models.ProjectList": null, - "azure.mgmt.datamigration.models.ProjectTask": null, - "azure.mgmt.datamigration.models.QueryAnalysisValidationResult": null, - "azure.mgmt.datamigration.models.QueryExecutionResult": null, - "azure.mgmt.datamigration.models.Quota": null, - "azure.mgmt.datamigration.models.QuotaList": null, - "azure.mgmt.datamigration.models.QuotaName": null, - "azure.mgmt.datamigration.models.RegenAuthKeys": null, - "azure.mgmt.datamigration.models.ReportableException": null, - "azure.mgmt.datamigration.models.ResourceSku": null, - "azure.mgmt.datamigration.models.ResourceSkuCapabilities": null, - "azure.mgmt.datamigration.models.ResourceSkuCapacity": null, - "azure.mgmt.datamigration.models.ResourceSkuCosts": null, - "azure.mgmt.datamigration.models.ResourceSkuRestrictions": null, - "azure.mgmt.datamigration.models.ResourceSkusResult": null, - "azure.mgmt.datamigration.models.SchemaComparisonValidationResult": null, - "azure.mgmt.datamigration.models.SchemaComparisonValidationResultType": null, - "azure.mgmt.datamigration.models.SchemaMigrationSetting": null, - "azure.mgmt.datamigration.models.SelectedCertificateInput": null, - "azure.mgmt.datamigration.models.ServerProperties": null, - "azure.mgmt.datamigration.models.ServiceOperation": null, - "azure.mgmt.datamigration.models.ServiceOperationDisplay": null, - "azure.mgmt.datamigration.models.ServiceOperationList": null, - "azure.mgmt.datamigration.models.ServiceSku": null, - "azure.mgmt.datamigration.models.ServiceSkuList": null, - "azure.mgmt.datamigration.models.SourceLocation": null, - "azure.mgmt.datamigration.models.SqlBackupFileInfo": null, - "azure.mgmt.datamigration.models.SqlBackupSetInfo": null, - "azure.mgmt.datamigration.models.SqlConnectionInfo": null, - "azure.mgmt.datamigration.models.SqlConnectionInformation": null, - "azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails": null, - "azure.mgmt.datamigration.models.SqlDbOfflineConfiguration": null, - "azure.mgmt.datamigration.models.SqlFileShare": null, - "azure.mgmt.datamigration.models.SqlMigrationListResult": null, - "azure.mgmt.datamigration.models.SqlMigrationService": null, - "azure.mgmt.datamigration.models.SqlMigrationServiceUpdate": null, - "azure.mgmt.datamigration.models.SsisMigrationInfo": null, - "azure.mgmt.datamigration.models.StartMigrationScenarioServerRoleResult": null, - "azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent": null, - "azure.mgmt.datamigration.models.SystemData": null, - "azure.mgmt.datamigration.models.SystemDataAutoGenerated": null, - "azure.mgmt.datamigration.models.TargetLocation": null, - "azure.mgmt.datamigration.models.TaskList": null, - "azure.mgmt.datamigration.models.UploadOCIDriverTaskInput": null, - "azure.mgmt.datamigration.models.UploadOCIDriverTaskOutput": null, - "azure.mgmt.datamigration.models.UploadOCIDriverTaskProperties": null, - "azure.mgmt.datamigration.models.UserAssignedIdentity": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlDbSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskInput": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskProperties": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput": null, - "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskProperties": null, - "azure.mgmt.datamigration.models.ValidateMongoDbTaskProperties": null, - "azure.mgmt.datamigration.models.ValidateOracleAzureDbForPostgreSqlSyncTaskProperties": null, - "azure.mgmt.datamigration.models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput": null, - "azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput": null, - "azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput": null, - "azure.mgmt.datamigration.models.ValidationError": null, - "azure.mgmt.datamigration.models.WaitStatistics": null, - "azure.mgmt.datamigration.models.MongoMigrationStatus": null, - "azure.mgmt.datamigration.models.CreatedByType": null, - "azure.mgmt.datamigration.models.ResourceType": null, - "azure.mgmt.datamigration.models.ProvisioningState": null, - "azure.mgmt.datamigration.models.OperationOrigin": null, - "azure.mgmt.datamigration.models.AuthType": null, - "azure.mgmt.datamigration.models.ManagedServiceIdentityType": null, - "azure.mgmt.datamigration.models.ResourceSkuRestrictionsType": null, - "azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode": null, - "azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType": null, - "azure.mgmt.datamigration.models.ServiceScalability": null, - "azure.mgmt.datamigration.models.CommandType": null, - "azure.mgmt.datamigration.models.CommandState": null, - "azure.mgmt.datamigration.models.TaskType": null, - "azure.mgmt.datamigration.models.TaskState": null, - "azure.mgmt.datamigration.models.AuthenticationType": null, - "azure.mgmt.datamigration.models.SqlSourcePlatform": null, - "azure.mgmt.datamigration.models.MongoDbShardKeyOrder": null, - "azure.mgmt.datamigration.models.MongoDbClusterType": null, - "azure.mgmt.datamigration.models.MySqlTargetPlatformType": null, - "azure.mgmt.datamigration.models.ServerLevelPermissionsGroup": null, - "azure.mgmt.datamigration.models.DatabaseFileType": null, - "azure.mgmt.datamigration.models.DatabaseCompatLevel": null, - "azure.mgmt.datamigration.models.DatabaseState": null, - "azure.mgmt.datamigration.models.LoginType": null, - "azure.mgmt.datamigration.models.MongoDbReplication": null, - "azure.mgmt.datamigration.models.MongoDbErrorType": null, - "azure.mgmt.datamigration.models.MongoDbProgressResultType": null, - "azure.mgmt.datamigration.models.MongoDbMigrationState": null, - "azure.mgmt.datamigration.models.MigrationState": null, - "azure.mgmt.datamigration.models.DatabaseMigrationStage": null, - "azure.mgmt.datamigration.models.MigrationStatus": null, - "azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState": null, - "azure.mgmt.datamigration.models.SyncTableMigrationState": null, - "azure.mgmt.datamigration.models.ScenarioSource": null, - "azure.mgmt.datamigration.models.ScenarioTarget": null, - "azure.mgmt.datamigration.models.ReplicateMigrationState": null, - "azure.mgmt.datamigration.models.BackupMode": null, - "azure.mgmt.datamigration.models.LoginMigrationStage": null, - "azure.mgmt.datamigration.models.DatabaseMigrationState": null, - "azure.mgmt.datamigration.models.BackupType": null, - "azure.mgmt.datamigration.models.BackupFileStatus": null, - "azure.mgmt.datamigration.models.Severity": null, - "azure.mgmt.datamigration.models.ObjectType": null, - "azure.mgmt.datamigration.models.UpdateActionType": null, - "azure.mgmt.datamigration.models.ValidationStatus": null, - "azure.mgmt.datamigration.models.SsisStoreType": null, - "azure.mgmt.datamigration.models.SsisMigrationOverwriteOption": null, - "azure.mgmt.datamigration.models.SsisMigrationStage": null, - "azure.mgmt.datamigration.models.SchemaMigrationOption": null, - "azure.mgmt.datamigration.models.SchemaMigrationStage": null, - "azure.mgmt.datamigration.models.ServiceProvisioningState": null, - "azure.mgmt.datamigration.models.ProjectSourcePlatform": null, - "azure.mgmt.datamigration.models.ProjectTargetPlatform": null, - "azure.mgmt.datamigration.models.ProjectProvisioningState": null, - "azure.mgmt.datamigration.models.ErrorType": null, - "azure.mgmt.datamigration.models.NameCheckFailureReason": null, - "azure.mgmt.datamigration.models.DataMigrationResultCode": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_create": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_create": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get_for_scope": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get_for_scope": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_create": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_create": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get_for_scope": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get_for_scope": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.get": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.get": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_cancel": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_cancel": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_retry": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_retry": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.get": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.get": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_cancel": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_cancel": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_cutover": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_cutover": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.get": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.get": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_cancel": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_cancel": null, - "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_cutover": null, - "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_cutover": null, - "azure.mgmt.datamigration.operations.Operations.list": null, - "azure.mgmt.datamigration.aio.operations.Operations.list": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.get": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.get": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.begin_update": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.begin_update": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.list_by_resource_group": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.list_by_resource_group": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.list_by_subscription": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.list_by_subscription": null, - "azure.mgmt.datamigration.operations.MigrationServicesOperations.list_migrations": null, - "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.list_migrations": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.get": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.get": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.begin_update": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.begin_update": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_by_resource_group": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_by_resource_group": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_auth_keys": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_auth_keys": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.regenerate_auth_keys": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.regenerate_auth_keys": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.delete_node": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.delete_node": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_migrations": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_migrations": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_monitoring_data": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_monitoring_data": null, - "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_by_subscription": null, - "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_by_subscription": null, - "azure.mgmt.datamigration.operations.ResourceSkusOperations.list_skus": null, - "azure.mgmt.datamigration.aio.operations.ResourceSkusOperations.list_skus": null, - "azure.mgmt.datamigration.operations.ServicesOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_create_or_update": null, - "azure.mgmt.datamigration.operations.ServicesOperations.get": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.get": null, - "azure.mgmt.datamigration.operations.ServicesOperations.begin_delete": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_delete": null, - "azure.mgmt.datamigration.operations.ServicesOperations.begin_update": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_update": null, - "azure.mgmt.datamigration.operations.ServicesOperations.check_status": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.check_status": null, - "azure.mgmt.datamigration.operations.ServicesOperations.begin_start": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_start": null, - "azure.mgmt.datamigration.operations.ServicesOperations.begin_stop": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_stop": null, - "azure.mgmt.datamigration.operations.ServicesOperations.list_skus": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.list_skus": null, - "azure.mgmt.datamigration.operations.ServicesOperations.check_children_name_availability": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.check_children_name_availability": null, - "azure.mgmt.datamigration.operations.ServicesOperations.list_by_resource_group": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.list_by_resource_group": null, - "azure.mgmt.datamigration.operations.ServicesOperations.list": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.list": null, - "azure.mgmt.datamigration.operations.ServicesOperations.check_name_availability": null, - "azure.mgmt.datamigration.aio.operations.ServicesOperations.check_name_availability": null, - "azure.mgmt.datamigration.operations.TasksOperations.list": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.list": null, - "azure.mgmt.datamigration.operations.TasksOperations.create_or_update": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.create_or_update": null, - "azure.mgmt.datamigration.operations.TasksOperations.get": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.get": null, - "azure.mgmt.datamigration.operations.TasksOperations.delete": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.delete": null, - "azure.mgmt.datamigration.operations.TasksOperations.update": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.update": null, - "azure.mgmt.datamigration.operations.TasksOperations.cancel": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.cancel": null, - "azure.mgmt.datamigration.operations.TasksOperations.command": null, - "azure.mgmt.datamigration.aio.operations.TasksOperations.command": null, - "azure.mgmt.datamigration.operations.ServiceTasksOperations.list": null, - "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.list": null, - "azure.mgmt.datamigration.operations.ServiceTasksOperations.create_or_update": null, - "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.create_or_update": null, - "azure.mgmt.datamigration.operations.ServiceTasksOperations.get": null, - "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.get": null, - "azure.mgmt.datamigration.operations.ServiceTasksOperations.delete": null, - "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.delete": null, - "azure.mgmt.datamigration.operations.ServiceTasksOperations.update": null, - "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.update": null, - "azure.mgmt.datamigration.operations.ServiceTasksOperations.cancel": null, - "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.cancel": null, - "azure.mgmt.datamigration.operations.ProjectsOperations.list": null, - "azure.mgmt.datamigration.aio.operations.ProjectsOperations.list": null, - "azure.mgmt.datamigration.operations.ProjectsOperations.create_or_update": null, - "azure.mgmt.datamigration.aio.operations.ProjectsOperations.create_or_update": null, - "azure.mgmt.datamigration.operations.ProjectsOperations.get": null, - "azure.mgmt.datamigration.aio.operations.ProjectsOperations.get": null, - "azure.mgmt.datamigration.operations.ProjectsOperations.delete": null, - "azure.mgmt.datamigration.aio.operations.ProjectsOperations.delete": null, - "azure.mgmt.datamigration.operations.ProjectsOperations.update": null, - "azure.mgmt.datamigration.aio.operations.ProjectsOperations.update": null, - "azure.mgmt.datamigration.operations.UsagesOperations.list": null, - "azure.mgmt.datamigration.aio.operations.UsagesOperations.list": null, - "azure.mgmt.datamigration.operations.FilesOperations.list": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.list": null, - "azure.mgmt.datamigration.operations.FilesOperations.get": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.get": null, - "azure.mgmt.datamigration.operations.FilesOperations.create_or_update": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.create_or_update": null, - "azure.mgmt.datamigration.operations.FilesOperations.delete": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.delete": null, - "azure.mgmt.datamigration.operations.FilesOperations.update": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.update": null, - "azure.mgmt.datamigration.operations.FilesOperations.read": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.read": null, - "azure.mgmt.datamigration.operations.FilesOperations.read_write": null, - "azure.mgmt.datamigration.aio.operations.FilesOperations.read_write": null + "azure.mgmt.datamigration.models.ApiError": "Microsoft.DataMigration.ApiError", + "azure.mgmt.datamigration.models.AuthenticationKeys": "Microsoft.DataMigration.AuthenticationKeys", + "azure.mgmt.datamigration.models.AvailableServiceSku": "Microsoft.DataMigration.AvailableServiceSku", + "azure.mgmt.datamigration.models.AvailableServiceSkuCapacity": "Microsoft.DataMigration.AvailableServiceSkuCapacity", + "azure.mgmt.datamigration.models.AvailableServiceSkuSku": "Microsoft.DataMigration.AvailableServiceSkuSku", + "azure.mgmt.datamigration.models.AzureActiveDirectoryApp": "Microsoft.DataMigration.AzureActiveDirectoryApp", + "azure.mgmt.datamigration.models.AzureBlob": "Microsoft.DataMigration.AzureBlob", + "azure.mgmt.datamigration.models.BackupConfiguration": "Microsoft.DataMigration.BackupConfiguration", + "azure.mgmt.datamigration.models.BackupFileInfo": "Microsoft.DataMigration.BackupFileInfo", + "azure.mgmt.datamigration.models.BackupSetInfo": "Microsoft.DataMigration.BackupSetInfo", + "azure.mgmt.datamigration.models.BlobShare": "Microsoft.DataMigration.BlobShare", + "azure.mgmt.datamigration.models.CheckOCIDriverTaskInput": "Microsoft.DataMigration.CheckOCIDriverTaskInput", + "azure.mgmt.datamigration.models.CheckOCIDriverTaskOutput": "Microsoft.DataMigration.CheckOCIDriverTaskOutput", + "azure.mgmt.datamigration.models.ProjectTaskProperties": "Microsoft.DataMigration.ProjectTaskProperties", + "azure.mgmt.datamigration.models.CheckOCIDriverTaskProperties": "Microsoft.DataMigration.CheckOCIDriverTaskProperties", + "azure.mgmt.datamigration.models.CommandProperties": "Microsoft.DataMigration.CommandProperties", + "azure.mgmt.datamigration.models.ConnectionInfo": "Microsoft.DataMigration.ConnectionInfo", + "azure.mgmt.datamigration.models.ConnectToMongoDbTaskProperties": "Microsoft.DataMigration.ConnectToMongoDbTaskProperties", + "azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput": "Microsoft.DataMigration.ConnectToSourceMySqlTaskInput", + "azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskProperties": "Microsoft.DataMigration.ConnectToSourceMySqlTaskProperties", + "azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput": "Microsoft.DataMigration.ConnectToSourceNonSqlTaskOutput", + "azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput": "Microsoft.DataMigration.ConnectToSourceOracleSyncTaskInput", + "azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskOutput": "Microsoft.DataMigration.ConnectToSourceOracleSyncTaskOutput", + "azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskProperties": "Microsoft.DataMigration.ConnectToSourceOracleSyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskInput": "Microsoft.DataMigration.ConnectToSourcePostgreSqlSyncTaskInput", + "azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput": "Microsoft.DataMigration.ConnectToSourcePostgreSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskProperties": "Microsoft.DataMigration.ConnectToSourcePostgreSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerSyncTaskProperties": "Microsoft.DataMigration.ConnectToSourceSqlServerSyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskInput", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskOutput", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputAgentJobLevel": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskOutputAgentJobLevel", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputDatabaseLevel": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputLoginLevel": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskOutputLoginLevel", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutputTaskLevel": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskOutputTaskLevel", + "azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskProperties": "Microsoft.DataMigration.ConnectToSourceSqlServerTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskInput": "Microsoft.DataMigration.ConnectToTargetAzureDbForMySqlTaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput": "Microsoft.DataMigration.ConnectToTargetAzureDbForMySqlTaskOutput", + "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskProperties": "Microsoft.DataMigration.ConnectToTargetAzureDbForMySqlTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput": "Microsoft.DataMigration.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput": "Microsoft.DataMigration.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties": "Microsoft.DataMigration.ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput": "Microsoft.DataMigration.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput": "Microsoft.DataMigration.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem": "Microsoft.DataMigration.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem", + "azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties": "Microsoft.DataMigration.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskInput": "Microsoft.DataMigration.ConnectToTargetSqlSqlDbSyncTaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskProperties": "Microsoft.DataMigration.ConnectToTargetSqlSqlDbSyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput": "Microsoft.DataMigration.ConnectToTargetSqlDbTaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput": "Microsoft.DataMigration.ConnectToTargetSqlDbTaskOutput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskProperties": "Microsoft.DataMigration.ConnectToTargetSqlDbTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskInput": "Microsoft.DataMigration.ConnectToTargetSqlMISyncTaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput": "Microsoft.DataMigration.ConnectToTargetSqlMISyncTaskOutput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskProperties": "Microsoft.DataMigration.ConnectToTargetSqlMISyncTaskProperties", + "azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskInput": "Microsoft.DataMigration.ConnectToTargetSqlMITaskInput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput": "Microsoft.DataMigration.ConnectToTargetSqlMITaskOutput", + "azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskProperties": "Microsoft.DataMigration.ConnectToTargetSqlMITaskProperties", + "azure.mgmt.datamigration.models.CopyProgressDetails": "Microsoft.DataMigration.CopyProgressDetails", + "azure.mgmt.datamigration.models.DatabaseBackupInfo": "Microsoft.DataMigration.DatabaseBackupInfo", + "azure.mgmt.datamigration.models.DatabaseFileInfo": "Microsoft.DataMigration.DatabaseFileInfo", + "azure.mgmt.datamigration.models.DatabaseInfo": "Microsoft.DataMigration.DatabaseInfo", + "azure.mgmt.datamigration.models.Resource": "Azure.ResourceManager.CommonTypes.Resource", + "azure.mgmt.datamigration.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource", + "azure.mgmt.datamigration.models.DatabaseMigration": "Microsoft.DataMigration.DatabaseMigration", + "azure.mgmt.datamigration.models.DatabaseMigrationBase": "Microsoft.DataMigration.DatabaseMigrationBase", + "azure.mgmt.datamigration.models.DatabaseMigrationBaseProperties": "Microsoft.DataMigration.DatabaseMigrationBaseProperties", + "azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongo", + "azure.mgmt.datamigration.models.DatabaseMigrationProperties": "Microsoft.DataMigration.DatabaseMigrationProperties", + "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesCosmosDbMongo": "Microsoft.DataMigration.DatabaseMigrationPropertiesCosmosDbMongo", + "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb": "Microsoft.DataMigration.DatabaseMigrationPropertiesSqlDb", + "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlMi": "Microsoft.DataMigration.DatabaseMigrationPropertiesSqlMi", + "azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlVm": "Microsoft.DataMigration.DatabaseMigrationPropertiesSqlVm", + "azure.mgmt.datamigration.models.DatabaseMigrationSqlDb": "Microsoft.DataMigration.DatabaseMigrationSqlDb", + "azure.mgmt.datamigration.models.DatabaseMigrationSqlMi": "Microsoft.DataMigration.DatabaseMigrationSqlMi", + "azure.mgmt.datamigration.models.DatabaseMigrationSqlVm": "Microsoft.DataMigration.DatabaseMigrationSqlVm", + "azure.mgmt.datamigration.models.DatabaseTable": "Microsoft.DataMigration.DatabaseTable", + "azure.mgmt.datamigration.models.DataIntegrityValidationResult": "Microsoft.DataMigration.DataIntegrityValidationResult", + "azure.mgmt.datamigration.models.DataMigrationService": "Microsoft.DataMigration.DataMigrationService", + "azure.mgmt.datamigration.models.DataMigrationServiceProperties": "Microsoft.DataMigration.DataMigrationServiceProperties", + "azure.mgmt.datamigration.models.DataMigrationServiceStatusResponse": "Microsoft.DataMigration.DataMigrationServiceStatusResponse", + "azure.mgmt.datamigration.models.DeleteNode": "Microsoft.DataMigration.deleteNode", + "azure.mgmt.datamigration.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo", + "azure.mgmt.datamigration.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail", + "azure.mgmt.datamigration.models.ErrorInfo": "Microsoft.DataMigration.ErrorInfo", + "azure.mgmt.datamigration.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse", + "azure.mgmt.datamigration.models.ExecutionStatistics": "Microsoft.DataMigration.ExecutionStatistics", + "azure.mgmt.datamigration.models.FileShare": "Microsoft.DataMigration.FileShare", + "azure.mgmt.datamigration.models.FileStorageInfo": "Microsoft.DataMigration.FileStorageInfo", + "azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskInput": "Microsoft.DataMigration.GetTdeCertificatesSqlTaskInput", + "azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput": "Microsoft.DataMigration.GetTdeCertificatesSqlTaskOutput", + "azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskProperties": "Microsoft.DataMigration.GetTdeCertificatesSqlTaskProperties", + "azure.mgmt.datamigration.models.GetUserTablesMySqlTaskInput": "Microsoft.DataMigration.GetUserTablesMySqlTaskInput", + "azure.mgmt.datamigration.models.GetUserTablesMySqlTaskOutput": "Microsoft.DataMigration.GetUserTablesMySqlTaskOutput", + "azure.mgmt.datamigration.models.GetUserTablesMySqlTaskProperties": "Microsoft.DataMigration.GetUserTablesMySqlTaskProperties", + "azure.mgmt.datamigration.models.GetUserTablesOracleTaskInput": "Microsoft.DataMigration.GetUserTablesOracleTaskInput", + "azure.mgmt.datamigration.models.GetUserTablesOracleTaskOutput": "Microsoft.DataMigration.GetUserTablesOracleTaskOutput", + "azure.mgmt.datamigration.models.GetUserTablesOracleTaskProperties": "Microsoft.DataMigration.GetUserTablesOracleTaskProperties", + "azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskInput": "Microsoft.DataMigration.GetUserTablesPostgreSqlTaskInput", + "azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskOutput": "Microsoft.DataMigration.GetUserTablesPostgreSqlTaskOutput", + "azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskProperties": "Microsoft.DataMigration.GetUserTablesPostgreSqlTaskProperties", + "azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskInput": "Microsoft.DataMigration.GetUserTablesSqlSyncTaskInput", + "azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput": "Microsoft.DataMigration.GetUserTablesSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskProperties": "Microsoft.DataMigration.GetUserTablesSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput": "Microsoft.DataMigration.GetUserTablesSqlTaskInput", + "azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput": "Microsoft.DataMigration.GetUserTablesSqlTaskOutput", + "azure.mgmt.datamigration.models.GetUserTablesSqlTaskProperties": "Microsoft.DataMigration.GetUserTablesSqlTaskProperties", + "azure.mgmt.datamigration.models.InstallOCIDriverTaskInput": "Microsoft.DataMigration.InstallOCIDriverTaskInput", + "azure.mgmt.datamigration.models.InstallOCIDriverTaskOutput": "Microsoft.DataMigration.InstallOCIDriverTaskOutput", + "azure.mgmt.datamigration.models.InstallOCIDriverTaskProperties": "Microsoft.DataMigration.InstallOCIDriverTaskProperties", + "azure.mgmt.datamigration.models.IntegrationRuntimeMonitoringData": "Microsoft.DataMigration.IntegrationRuntimeMonitoringData", + "azure.mgmt.datamigration.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity", + "azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput": "Microsoft.DataMigration.MigrateMISyncCompleteCommandInput", + "azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput": "Microsoft.DataMigration.MigrateMISyncCompleteCommandOutput", + "azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandProperties": "Microsoft.DataMigration.MigrateMISyncCompleteCommandProperties", + "azure.mgmt.datamigration.models.MigrateMongoDbTaskProperties": "Microsoft.DataMigration.MigrateMongoDbTaskProperties", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskInput": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskInput", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskOutput", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputError": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskOutputError", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskProperties": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlOfflineTaskProperties", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncDatabaseInput", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskInput": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskInput", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskOutput", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputError": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskOutputError", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel", + "azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskProperties": "Microsoft.DataMigration.MigrateMySqlAzureDbForMySqlSyncTaskProperties", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbForPostgreSqlSyncTaskProperties": "Microsoft.DataMigration.MigrateOracleAzureDbForPostgreSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskInput", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputError": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskOutputError", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel": "Microsoft.DataMigration.MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel", + "azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties": "Microsoft.DataMigration.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbDatabaseInput", + "azure.mgmt.datamigration.models.SqlMigrationTaskInput": "Microsoft.DataMigration.SqlMigrationTaskInput", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskInput": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbTaskInput", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbTaskOutput", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutputError": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbTaskOutputError", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskProperties": "Microsoft.DataMigration.MigrateSchemaSqlServerSqlDbTaskProperties", + "azure.mgmt.datamigration.models.MigrateSchemaSqlTaskOutputError": "Microsoft.DataMigration.MigrateSchemaSqlTaskOutputError", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput": "Microsoft.DataMigration.MigrateSqlServerSqlDbDatabaseInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncDatabaseInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskInput": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskOutput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputDatabaseError": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskOutputDatabaseError", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputError": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskOutputError", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutputTableLevel": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskOutputTableLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskProperties": "Microsoft.DataMigration.MigrateSqlServerSqlDbSyncTaskProperties", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskInput": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputError": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutputError", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputTableLevel": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutputTableLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutputValidationResult": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskOutputValidationResult", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskProperties": "Microsoft.DataMigration.MigrateSqlServerSqlDbTaskProperties", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput": "Microsoft.DataMigration.MigrateSqlServerSqlMIDatabaseInput", + "azure.mgmt.datamigration.models.SqlServerSqlMISyncTaskInput": "Microsoft.DataMigration.SqlServerSqlMISyncTaskInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskInput": "Microsoft.DataMigration.MigrateSqlServerSqlMISyncTaskInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput": "Microsoft.DataMigration.MigrateSqlServerSqlMISyncTaskOutput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutputError": "Microsoft.DataMigration.MigrateSqlServerSqlMISyncTaskOutputError", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateSqlServerSqlMISyncTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskProperties": "Microsoft.DataMigration.MigrateSqlServerSqlMISyncTaskProperties", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskInput": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskInput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskOutput", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputAgentJobLevel": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskOutputAgentJobLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputDatabaseLevel": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskOutputDatabaseLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputError": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskOutputError", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputLoginLevel": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskOutputLoginLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskProperties": "Microsoft.DataMigration.MigrateSqlServerSqlMITaskProperties", + "azure.mgmt.datamigration.models.MigrateSsisTaskInput": "Microsoft.DataMigration.MigrateSsisTaskInput", + "azure.mgmt.datamigration.models.MigrateSsisTaskOutput": "Microsoft.DataMigration.MigrateSsisTaskOutput", + "azure.mgmt.datamigration.models.MigrateSsisTaskOutputMigrationLevel": "Microsoft.DataMigration.MigrateSsisTaskOutputMigrationLevel", + "azure.mgmt.datamigration.models.MigrateSsisTaskOutputProjectLevel": "Microsoft.DataMigration.MigrateSsisTaskOutputProjectLevel", + "azure.mgmt.datamigration.models.MigrateSsisTaskProperties": "Microsoft.DataMigration.MigrateSsisTaskProperties", + "azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput": "Microsoft.DataMigration.MigrateSyncCompleteCommandInput", + "azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput": "Microsoft.DataMigration.MigrateSyncCompleteCommandOutput", + "azure.mgmt.datamigration.models.MigrateSyncCompleteCommandProperties": "Microsoft.DataMigration.MigrateSyncCompleteCommandProperties", + "azure.mgmt.datamigration.models.MigrationEligibilityInfo": "Microsoft.DataMigration.MigrationEligibilityInfo", + "azure.mgmt.datamigration.models.MigrationOperationInput": "Microsoft.DataMigration.MigrationOperationInput", + "azure.mgmt.datamigration.models.MigrationReportResult": "Microsoft.DataMigration.MigrationReportResult", + "azure.mgmt.datamigration.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource", + "azure.mgmt.datamigration.models.MigrationService": "Microsoft.DataMigration.MigrationService", + "azure.mgmt.datamigration.models.MigrationServiceProperties": "Microsoft.DataMigration.MigrationServiceProperties", + "azure.mgmt.datamigration.models.MigrationServiceUpdate": "Microsoft.DataMigration.MigrationServiceUpdate", + "azure.mgmt.datamigration.models.MigrationStatusDetails": "Microsoft.DataMigration.MigrationStatusDetails", + "azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult": "Microsoft.DataMigration.MigrationValidationDatabaseSummaryResult", + "azure.mgmt.datamigration.models.MigrationValidationOptions": "Microsoft.DataMigration.MigrationValidationOptions", + "azure.mgmt.datamigration.models.MigrationValidationResult": "Microsoft.DataMigration.MigrationValidationResult", + "azure.mgmt.datamigration.models.MiSqlConnectionInfo": "Microsoft.DataMigration.MiSqlConnectionInfo", + "azure.mgmt.datamigration.models.MongoConnectionInformation": "Microsoft.DataMigration.MongoConnectionInformation", + "azure.mgmt.datamigration.models.MongoDbCancelCommand": "Microsoft.DataMigration.MongoDbCancelCommand", + "azure.mgmt.datamigration.models.MongoDbClusterInfo": "Microsoft.DataMigration.MongoDbClusterInfo", + "azure.mgmt.datamigration.models.MongoDbObjectInfo": "Microsoft.DataMigration.MongoDbObjectInfo", + "azure.mgmt.datamigration.models.MongoDbCollectionInfo": "Microsoft.DataMigration.MongoDbCollectionInfo", + "azure.mgmt.datamigration.models.MongoDbProgress": "Microsoft.DataMigration.MongoDbProgress", + "azure.mgmt.datamigration.models.MongoDbCollectionProgress": "Microsoft.DataMigration.MongoDbCollectionProgress", + "azure.mgmt.datamigration.models.MongoDbCollectionSettings": "Microsoft.DataMigration.MongoDbCollectionSettings", + "azure.mgmt.datamigration.models.MongoDbCommandInput": "Microsoft.DataMigration.MongoDbCommandInput", + "azure.mgmt.datamigration.models.MongoDbConnectionInfo": "Microsoft.DataMigration.MongoDbConnectionInfo", + "azure.mgmt.datamigration.models.MongoDbDatabaseInfo": "Microsoft.DataMigration.MongoDbDatabaseInfo", + "azure.mgmt.datamigration.models.MongoDbDatabaseProgress": "Microsoft.DataMigration.MongoDbDatabaseProgress", + "azure.mgmt.datamigration.models.MongoDbDatabaseSettings": "Microsoft.DataMigration.MongoDbDatabaseSettings", + "azure.mgmt.datamigration.models.MongoDbError": "Microsoft.DataMigration.MongoDbError", + "azure.mgmt.datamigration.models.MongoDbFinishCommand": "Microsoft.DataMigration.MongoDbFinishCommand", + "azure.mgmt.datamigration.models.MongoDbFinishCommandInput": "Microsoft.DataMigration.MongoDbFinishCommandInput", + "azure.mgmt.datamigration.models.MongoDbMigrationProgress": "Microsoft.DataMigration.MongoDbMigrationProgress", + "azure.mgmt.datamigration.models.MongoDbMigrationSettings": "Microsoft.DataMigration.MongoDbMigrationSettings", + "azure.mgmt.datamigration.models.MongoDbRestartCommand": "Microsoft.DataMigration.MongoDbRestartCommand", + "azure.mgmt.datamigration.models.MongoDbShardKeyField": "Microsoft.DataMigration.MongoDbShardKeyField", + "azure.mgmt.datamigration.models.MongoDbShardKeyInfo": "Microsoft.DataMigration.MongoDbShardKeyInfo", + "azure.mgmt.datamigration.models.MongoDbShardKeySetting": "Microsoft.DataMigration.MongoDbShardKeySetting", + "azure.mgmt.datamigration.models.MongoDbThrottlingSettings": "Microsoft.DataMigration.MongoDbThrottlingSettings", + "azure.mgmt.datamigration.models.MongoMigrationCollection": "Microsoft.DataMigration.MongoMigrationCollection", + "azure.mgmt.datamigration.models.MongoMigrationProgressDetails": "Microsoft.DataMigration.MongoMigrationProgressDetails", + "azure.mgmt.datamigration.models.MySqlConnectionInfo": "Microsoft.DataMigration.MySqlConnectionInfo", + "azure.mgmt.datamigration.models.NameAvailabilityRequest": "Microsoft.DataMigration.NameAvailabilityRequest", + "azure.mgmt.datamigration.models.NameAvailabilityResponse": "Microsoft.DataMigration.NameAvailabilityResponse", + "azure.mgmt.datamigration.models.NodeMonitoringData": "Microsoft.DataMigration.NodeMonitoringData", + "azure.mgmt.datamigration.models.ODataError": "Microsoft.DataMigration.ODataError", + "azure.mgmt.datamigration.models.OfflineConfiguration": "Microsoft.DataMigration.OfflineConfiguration", + "azure.mgmt.datamigration.models.OperationsDefinition": "Microsoft.DataMigration.OperationsDefinition", + "azure.mgmt.datamigration.models.OperationsDisplayDefinition": "Microsoft.DataMigration.OperationsDisplayDefinition", + "azure.mgmt.datamigration.models.OracleConnectionInfo": "Microsoft.DataMigration.OracleConnectionInfo", + "azure.mgmt.datamigration.models.OracleOCIDriverInfo": "Microsoft.DataMigration.OracleOCIDriverInfo", + "azure.mgmt.datamigration.models.OrphanedUserInfo": "Microsoft.DataMigration.OrphanedUserInfo", + "azure.mgmt.datamigration.models.PostgreSqlConnectionInfo": "Microsoft.DataMigration.PostgreSqlConnectionInfo", + "azure.mgmt.datamigration.models.Project": "Microsoft.DataMigration.Project", + "azure.mgmt.datamigration.models.ProjectFile": "Microsoft.DataMigration.ProjectFile", + "azure.mgmt.datamigration.models.ProjectFileProperties": "Microsoft.DataMigration.ProjectFileProperties", + "azure.mgmt.datamigration.models.ProjectProperties": "Microsoft.DataMigration.ProjectProperties", + "azure.mgmt.datamigration.models.ProjectTask": "Microsoft.DataMigration.ProjectTask", + "azure.mgmt.datamigration.models.QueryAnalysisValidationResult": "Microsoft.DataMigration.QueryAnalysisValidationResult", + "azure.mgmt.datamigration.models.QueryExecutionResult": "Microsoft.DataMigration.QueryExecutionResult", + "azure.mgmt.datamigration.models.Quota": "Microsoft.DataMigration.Quota", + "azure.mgmt.datamigration.models.QuotaName": "Microsoft.DataMigration.QuotaName", + "azure.mgmt.datamigration.models.RegenAuthKeys": "Microsoft.DataMigration.RegenAuthKeys", + "azure.mgmt.datamigration.models.ReportableException": "Microsoft.DataMigration.ReportableException", + "azure.mgmt.datamigration.models.ResourceSku": "Microsoft.DataMigration.ResourceSku", + "azure.mgmt.datamigration.models.ResourceSkuCapabilities": "Microsoft.DataMigration.ResourceSkuCapabilities", + "azure.mgmt.datamigration.models.ResourceSkuCapacity": "Microsoft.DataMigration.ResourceSkuCapacity", + "azure.mgmt.datamigration.models.ResourceSkuCosts": "Microsoft.DataMigration.ResourceSkuCosts", + "azure.mgmt.datamigration.models.ResourceSkuRestrictions": "Microsoft.DataMigration.ResourceSkuRestrictions", + "azure.mgmt.datamigration.models.SchemaComparisonValidationResult": "Microsoft.DataMigration.SchemaComparisonValidationResult", + "azure.mgmt.datamigration.models.SchemaComparisonValidationResultType": "Microsoft.DataMigration.SchemaComparisonValidationResultType", + "azure.mgmt.datamigration.models.SchemaMigrationSetting": "Microsoft.DataMigration.SchemaMigrationSetting", + "azure.mgmt.datamigration.models.SelectedCertificateInput": "Microsoft.DataMigration.SelectedCertificateInput", + "azure.mgmt.datamigration.models.ServerProperties": "Microsoft.DataMigration.ServerProperties", + "azure.mgmt.datamigration.models.ServiceSku": "Microsoft.DataMigration.ServiceSku", + "azure.mgmt.datamigration.models.SourceLocation": "Microsoft.DataMigration.SourceLocation", + "azure.mgmt.datamigration.models.SqlBackupFileInfo": "Microsoft.DataMigration.SqlBackupFileInfo", + "azure.mgmt.datamigration.models.SqlBackupSetInfo": "Microsoft.DataMigration.SqlBackupSetInfo", + "azure.mgmt.datamigration.models.SqlConnectionInfo": "Microsoft.DataMigration.SqlConnectionInfo", + "azure.mgmt.datamigration.models.SqlConnectionInformation": "Microsoft.DataMigration.SqlConnectionInformation", + "azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails": "Microsoft.DataMigration.SqlDbMigrationStatusDetails", + "azure.mgmt.datamigration.models.SqlDbOfflineConfiguration": "Microsoft.DataMigration.SqlDbOfflineConfiguration", + "azure.mgmt.datamigration.models.SqlFileShare": "Microsoft.DataMigration.SqlFileShare", + "azure.mgmt.datamigration.models.SqlMigrationService": "Microsoft.DataMigration.SqlMigrationService", + "azure.mgmt.datamigration.models.SqlMigrationServiceProperties": "Microsoft.DataMigration.SqlMigrationServiceProperties", + "azure.mgmt.datamigration.models.SqlMigrationServiceUpdate": "Microsoft.DataMigration.SqlMigrationServiceUpdate", + "azure.mgmt.datamigration.models.SsisMigrationInfo": "Microsoft.DataMigration.SsisMigrationInfo", + "azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent": "Microsoft.DataMigration.SyncMigrationDatabaseErrorEvent", + "azure.mgmt.datamigration.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData", + "azure.mgmt.datamigration.models.TargetLocation": "Microsoft.DataMigration.TargetLocation", + "azure.mgmt.datamigration.models.UploadOCIDriverTaskInput": "Microsoft.DataMigration.UploadOCIDriverTaskInput", + "azure.mgmt.datamigration.models.UploadOCIDriverTaskOutput": "Microsoft.DataMigration.UploadOCIDriverTaskOutput", + "azure.mgmt.datamigration.models.UploadOCIDriverTaskProperties": "Microsoft.DataMigration.UploadOCIDriverTaskProperties", + "azure.mgmt.datamigration.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlDbSyncTaskProperties": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlDbSyncTaskProperties", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskInput": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlMISyncTaskInput", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlMISyncTaskOutput", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskProperties": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlMISyncTaskProperties", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlMITaskInput", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlMITaskOutput", + "azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskProperties": "Microsoft.DataMigration.ValidateMigrationInputSqlServerSqlMITaskProperties", + "azure.mgmt.datamigration.models.ValidateMongoDbTaskProperties": "Microsoft.DataMigration.ValidateMongoDbTaskProperties", + "azure.mgmt.datamigration.models.ValidateOracleAzureDbForPostgreSqlSyncTaskProperties": "Microsoft.DataMigration.ValidateOracleAzureDbForPostgreSqlSyncTaskProperties", + "azure.mgmt.datamigration.models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput": "Microsoft.DataMigration.ValidateOracleAzureDbPostgreSqlSyncTaskOutput", + "azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput": "Microsoft.DataMigration.ValidateSyncMigrationInputSqlServerTaskInput", + "azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput": "Microsoft.DataMigration.ValidateSyncMigrationInputSqlServerTaskOutput", + "azure.mgmt.datamigration.models.ValidationError": "Microsoft.DataMigration.ValidationError", + "azure.mgmt.datamigration.models.WaitStatistics": "Microsoft.DataMigration.WaitStatistics", + "azure.mgmt.datamigration.models.OperationOrigin": "Microsoft.DataMigration.OperationOrigin", + "azure.mgmt.datamigration.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType", + "azure.mgmt.datamigration.models.ResourceType": "Microsoft.DataMigration.ResourceType", + "azure.mgmt.datamigration.models.ProvisioningState": "Microsoft.DataMigration.ProvisioningState", + "azure.mgmt.datamigration.models.MongoMigrationStatus": "Microsoft.DataMigration.MongoMigrationStatus", + "azure.mgmt.datamigration.models.AuthType": "Microsoft.DataMigration.AuthType", + "azure.mgmt.datamigration.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType", + "azure.mgmt.datamigration.models.TaskType": "Microsoft.DataMigration.TaskType", + "azure.mgmt.datamigration.models.TaskState": "Microsoft.DataMigration.TaskState", + "azure.mgmt.datamigration.models.CommandType": "Microsoft.DataMigration.CommandType", + "azure.mgmt.datamigration.models.CommandState": "Microsoft.DataMigration.CommandState", + "azure.mgmt.datamigration.models.AuthenticationType": "Microsoft.DataMigration.AuthenticationType", + "azure.mgmt.datamigration.models.SqlSourcePlatform": "Microsoft.DataMigration.SqlSourcePlatform", + "azure.mgmt.datamigration.models.MongoDbShardKeyOrder": "Microsoft.DataMigration.MongoDbShardKeyOrder", + "azure.mgmt.datamigration.models.MongoDbClusterType": "Microsoft.DataMigration.MongoDbClusterType", + "azure.mgmt.datamigration.models.MySqlTargetPlatformType": "Microsoft.DataMigration.MySqlTargetPlatformType", + "azure.mgmt.datamigration.models.ServerLevelPermissionsGroup": "Microsoft.DataMigration.ServerLevelPermissionsGroup", + "azure.mgmt.datamigration.models.DatabaseFileType": "Microsoft.DataMigration.DatabaseFileType", + "azure.mgmt.datamigration.models.DatabaseCompatLevel": "Microsoft.DataMigration.DatabaseCompatLevel", + "azure.mgmt.datamigration.models.DatabaseState": "Microsoft.DataMigration.DatabaseState", + "azure.mgmt.datamigration.models.LoginType": "Microsoft.DataMigration.LoginType", + "azure.mgmt.datamigration.models.MongoDbReplication": "Microsoft.DataMigration.MongoDbReplication", + "azure.mgmt.datamigration.models.MongoDbErrorType": "Microsoft.DataMigration.MongoDbErrorType", + "azure.mgmt.datamigration.models.MongoDbProgressResultType": "Microsoft.DataMigration.MongoDbProgressResultType", + "azure.mgmt.datamigration.models.MongoDbMigrationState": "Microsoft.DataMigration.MongoDbMigrationState", + "azure.mgmt.datamigration.models.MigrationState": "Microsoft.DataMigration.MigrationState", + "azure.mgmt.datamigration.models.DatabaseMigrationStage": "Microsoft.DataMigration.DatabaseMigrationStage", + "azure.mgmt.datamigration.models.MigrationStatus": "Microsoft.DataMigration.MigrationStatus", + "azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState": "Microsoft.DataMigration.SyncDatabaseMigrationReportingState", + "azure.mgmt.datamigration.models.SyncTableMigrationState": "Microsoft.DataMigration.SyncTableMigrationState", + "azure.mgmt.datamigration.models.ScenarioSource": "Microsoft.DataMigration.ScenarioSource", + "azure.mgmt.datamigration.models.ScenarioTarget": "Microsoft.DataMigration.ScenarioTarget", + "azure.mgmt.datamigration.models.ReplicateMigrationState": "Microsoft.DataMigration.ReplicateMigrationState", + "azure.mgmt.datamigration.models.BackupMode": "Microsoft.DataMigration.BackupMode", + "azure.mgmt.datamigration.models.LoginMigrationStage": "Microsoft.DataMigration.LoginMigrationStage", + "azure.mgmt.datamigration.models.DatabaseMigrationState": "Microsoft.DataMigration.DatabaseMigrationState", + "azure.mgmt.datamigration.models.BackupType": "Microsoft.DataMigration.BackupType", + "azure.mgmt.datamigration.models.BackupFileStatus": "Microsoft.DataMigration.BackupFileStatus", + "azure.mgmt.datamigration.models.Severity": "Microsoft.DataMigration.Severity", + "azure.mgmt.datamigration.models.ObjectType": "Microsoft.DataMigration.ObjectType", + "azure.mgmt.datamigration.models.UpdateActionType": "Microsoft.DataMigration.UpdateActionType", + "azure.mgmt.datamigration.models.ValidationStatus": "Microsoft.DataMigration.ValidationStatus", + "azure.mgmt.datamigration.models.SsisStoreType": "Microsoft.DataMigration.SsisStoreType", + "azure.mgmt.datamigration.models.SsisMigrationOverwriteOption": "Microsoft.DataMigration.SsisMigrationOverwriteOption", + "azure.mgmt.datamigration.models.SsisMigrationStage": "Microsoft.DataMigration.SsisMigrationStage", + "azure.mgmt.datamigration.models.SchemaMigrationOption": "Microsoft.DataMigration.SchemaMigrationOption", + "azure.mgmt.datamigration.models.SchemaMigrationStage": "Microsoft.DataMigration.SchemaMigrationStage", + "azure.mgmt.datamigration.models.ProjectSourcePlatform": "Microsoft.DataMigration.ProjectSourcePlatform", + "azure.mgmt.datamigration.models.ProjectTargetPlatform": "Microsoft.DataMigration.ProjectTargetPlatform", + "azure.mgmt.datamigration.models.ProjectProvisioningState": "Microsoft.DataMigration.ProjectProvisioningState", + "azure.mgmt.datamigration.models.ServiceProvisioningState": "Microsoft.DataMigration.ServiceProvisioningState", + "azure.mgmt.datamigration.models.ServiceScalability": "Microsoft.DataMigration.ServiceScalability", + "azure.mgmt.datamigration.models.NameCheckFailureReason": "Microsoft.DataMigration.NameCheckFailureReason", + "azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType": "Microsoft.DataMigration.ResourceSkuCapacityScaleType", + "azure.mgmt.datamigration.models.ResourceSkuRestrictionsType": "Microsoft.DataMigration.ResourceSkuRestrictionsType", + "azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode": "Microsoft.DataMigration.ResourceSkuRestrictionsReasonCode", + "azure.mgmt.datamigration.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.datamigration.aio.operations.Operations.list": "Azure.ResourceManager.Legacy.Operations.list", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.get", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.get", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_create": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.create", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_create": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.create", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.delete", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.delete", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get_for_scope": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.getForScope", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.get_for_scope": "Microsoft.DataMigration.DatabaseMigrationsMongoToCosmosDbvCoreMongo.getForScope", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.get": "Microsoft.DataMigration.MigrationServices.get", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.get": "Microsoft.DataMigration.MigrationServices.get", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.begin_create_or_update": "Microsoft.DataMigration.MigrationServices.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.begin_create_or_update": "Microsoft.DataMigration.MigrationServices.createOrUpdate", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.begin_update": "Microsoft.DataMigration.MigrationServices.update", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.begin_update": "Microsoft.DataMigration.MigrationServices.update", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.begin_delete": "Microsoft.DataMigration.MigrationServices.delete", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.begin_delete": "Microsoft.DataMigration.MigrationServices.delete", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.list_by_resource_group": "Microsoft.DataMigration.MigrationServices.listByResourceGroup", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.list_by_resource_group": "Microsoft.DataMigration.MigrationServices.listByResourceGroup", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.list_by_subscription": "Microsoft.DataMigration.MigrationServices.listBySubscription", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.list_by_subscription": "Microsoft.DataMigration.MigrationServices.listBySubscription", + "azure.mgmt.datamigration.operations.MigrationServicesOperations.list_migrations": "Microsoft.DataMigration.MigrationServices.listMigrations", + "azure.mgmt.datamigration.aio.operations.MigrationServicesOperations.list_migrations": "Microsoft.DataMigration.MigrationServices.listMigrations", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.get": "Microsoft.DataMigration.SqlMigrationServices.get", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.get": "Microsoft.DataMigration.SqlMigrationServices.get", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.begin_create_or_update": "Microsoft.DataMigration.SqlMigrationServices.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.begin_create_or_update": "Microsoft.DataMigration.SqlMigrationServices.createOrUpdate", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.begin_update": "Microsoft.DataMigration.SqlMigrationServices.update", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.begin_update": "Microsoft.DataMigration.SqlMigrationServices.update", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.begin_delete": "Microsoft.DataMigration.SqlMigrationServices.delete", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.begin_delete": "Microsoft.DataMigration.SqlMigrationServices.delete", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_by_resource_group": "Microsoft.DataMigration.SqlMigrationServices.listByResourceGroup", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_by_resource_group": "Microsoft.DataMigration.SqlMigrationServices.listByResourceGroup", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_by_subscription": "Microsoft.DataMigration.SqlMigrationServices.listBySubscription", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_by_subscription": "Microsoft.DataMigration.SqlMigrationServices.listBySubscription", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_auth_keys": "Microsoft.DataMigration.SqlMigrationServices.listAuthKeys", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_auth_keys": "Microsoft.DataMigration.SqlMigrationServices.listAuthKeys", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.regenerate_auth_keys": "Microsoft.DataMigration.SqlMigrationServices.regenerateAuthKeys", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.regenerate_auth_keys": "Microsoft.DataMigration.SqlMigrationServices.regenerateAuthKeys", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.delete_node": "Microsoft.DataMigration.SqlMigrationServices.deleteNode", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.delete_node": "Microsoft.DataMigration.SqlMigrationServices.deleteNode", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_migrations": "Microsoft.DataMigration.SqlMigrationServices.listMigrations", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_migrations": "Microsoft.DataMigration.SqlMigrationServices.listMigrations", + "azure.mgmt.datamigration.operations.SqlMigrationServicesOperations.list_monitoring_data": "Microsoft.DataMigration.SqlMigrationServices.listMonitoringData", + "azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations.list_monitoring_data": "Microsoft.DataMigration.SqlMigrationServices.listMonitoringData", + "azure.mgmt.datamigration.operations.ServiceTasksOperations.get": "Microsoft.DataMigration.ServiceTasks.get", + "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.get": "Microsoft.DataMigration.ServiceTasks.get", + "azure.mgmt.datamigration.operations.ServiceTasksOperations.create_or_update": "Microsoft.DataMigration.ServiceTasks.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.create_or_update": "Microsoft.DataMigration.ServiceTasks.createOrUpdate", + "azure.mgmt.datamigration.operations.ServiceTasksOperations.update": "Microsoft.DataMigration.ServiceTasks.update", + "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.update": "Microsoft.DataMigration.ServiceTasks.update", + "azure.mgmt.datamigration.operations.ServiceTasksOperations.delete": "Microsoft.DataMigration.ServiceTasks.delete", + "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.delete": "Microsoft.DataMigration.ServiceTasks.delete", + "azure.mgmt.datamigration.operations.ServiceTasksOperations.list": "Microsoft.DataMigration.ServiceTasks.list", + "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.list": "Microsoft.DataMigration.ServiceTasks.list", + "azure.mgmt.datamigration.operations.ServiceTasksOperations.cancel": "Microsoft.DataMigration.ServiceTasks.cancel", + "azure.mgmt.datamigration.aio.operations.ServiceTasksOperations.cancel": "Microsoft.DataMigration.ServiceTasks.cancel", + "azure.mgmt.datamigration.operations.ProjectsOperations.get": "Microsoft.DataMigration.Projects.get", + "azure.mgmt.datamigration.aio.operations.ProjectsOperations.get": "Microsoft.DataMigration.Projects.get", + "azure.mgmt.datamigration.operations.ProjectsOperations.create_or_update": "Microsoft.DataMigration.Projects.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.ProjectsOperations.create_or_update": "Microsoft.DataMigration.Projects.createOrUpdate", + "azure.mgmt.datamigration.operations.ProjectsOperations.update": "Microsoft.DataMigration.Projects.update", + "azure.mgmt.datamigration.aio.operations.ProjectsOperations.update": "Microsoft.DataMigration.Projects.update", + "azure.mgmt.datamigration.operations.ProjectsOperations.delete": "Microsoft.DataMigration.Projects.delete", + "azure.mgmt.datamigration.aio.operations.ProjectsOperations.delete": "Microsoft.DataMigration.Projects.delete", + "azure.mgmt.datamigration.operations.ProjectsOperations.list": "Microsoft.DataMigration.Projects.list", + "azure.mgmt.datamigration.aio.operations.ProjectsOperations.list": "Microsoft.DataMigration.Projects.list", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.get", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.get", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_create": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.create", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_create": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.create", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.delete", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.delete", + "azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get_for_scope": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.getForScope", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations.get_for_scope": "Microsoft.DataMigration.DatabaseMigrationCosmosDbMongos.getForScope", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.get": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.get", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.get": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.get", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_create_or_update": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_create_or_update": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.createOrUpdate", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.delete", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.delete", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_cancel": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.cancel", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_cancel": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.cancel", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations.begin_retry": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.retry", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations.begin_retry": "Microsoft.DataMigration.DatabaseMigrationSqlDbs.retry", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.get": "Microsoft.DataMigration.DatabaseMigrationSqlMis.get", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.get": "Microsoft.DataMigration.DatabaseMigrationSqlMis.get", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_create_or_update": "Microsoft.DataMigration.DatabaseMigrationSqlMis.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_create_or_update": "Microsoft.DataMigration.DatabaseMigrationSqlMis.createOrUpdate", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationSqlMis.delete", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationSqlMis.delete", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_cancel": "Microsoft.DataMigration.DatabaseMigrationSqlMis.cancel", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_cancel": "Microsoft.DataMigration.DatabaseMigrationSqlMis.cancel", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlMiOperations.begin_cutover": "Microsoft.DataMigration.DatabaseMigrationSqlMis.cutover", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlMiOperations.begin_cutover": "Microsoft.DataMigration.DatabaseMigrationSqlMis.cutover", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.get": "Microsoft.DataMigration.DatabaseMigrationSqlVms.get", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.get": "Microsoft.DataMigration.DatabaseMigrationSqlVms.get", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_create_or_update": "Microsoft.DataMigration.DatabaseMigrationSqlVms.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_create_or_update": "Microsoft.DataMigration.DatabaseMigrationSqlVms.createOrUpdate", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationSqlVms.delete", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_delete": "Microsoft.DataMigration.DatabaseMigrationSqlVms.delete", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_cancel": "Microsoft.DataMigration.DatabaseMigrationSqlVms.cancel", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_cancel": "Microsoft.DataMigration.DatabaseMigrationSqlVms.cancel", + "azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations.begin_cutover": "Microsoft.DataMigration.DatabaseMigrationSqlVms.cutover", + "azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations.begin_cutover": "Microsoft.DataMigration.DatabaseMigrationSqlVms.cutover", + "azure.mgmt.datamigration.operations.ServicesOperations.get": "Microsoft.DataMigration.DataMigrationServices.get", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.get": "Microsoft.DataMigration.DataMigrationServices.get", + "azure.mgmt.datamigration.operations.ServicesOperations.begin_create_or_update": "Microsoft.DataMigration.DataMigrationServices.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_create_or_update": "Microsoft.DataMigration.DataMigrationServices.createOrUpdate", + "azure.mgmt.datamigration.operations.ServicesOperations.begin_update": "Microsoft.DataMigration.DataMigrationServices.update", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_update": "Microsoft.DataMigration.DataMigrationServices.update", + "azure.mgmt.datamigration.operations.ServicesOperations.begin_delete": "Microsoft.DataMigration.DataMigrationServices.delete", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_delete": "Microsoft.DataMigration.DataMigrationServices.delete", + "azure.mgmt.datamigration.operations.ServicesOperations.list_by_resource_group": "Microsoft.DataMigration.DataMigrationServices.listByResourceGroup", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.list_by_resource_group": "Microsoft.DataMigration.DataMigrationServices.listByResourceGroup", + "azure.mgmt.datamigration.operations.ServicesOperations.list": "Microsoft.DataMigration.DataMigrationServices.list", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.list": "Microsoft.DataMigration.DataMigrationServices.list", + "azure.mgmt.datamigration.operations.ServicesOperations.check_status": "Microsoft.DataMigration.DataMigrationServices.checkStatus", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.check_status": "Microsoft.DataMigration.DataMigrationServices.checkStatus", + "azure.mgmt.datamigration.operations.ServicesOperations.begin_start": "Microsoft.DataMigration.DataMigrationServices.start", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_start": "Microsoft.DataMigration.DataMigrationServices.start", + "azure.mgmt.datamigration.operations.ServicesOperations.begin_stop": "Microsoft.DataMigration.DataMigrationServices.stop", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.begin_stop": "Microsoft.DataMigration.DataMigrationServices.stop", + "azure.mgmt.datamigration.operations.ServicesOperations.list_skus": "Microsoft.DataMigration.DataMigrationServices.listSkus", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.list_skus": "Microsoft.DataMigration.DataMigrationServices.listSkus", + "azure.mgmt.datamigration.operations.ServicesOperations.check_children_name_availability": "Microsoft.DataMigration.DataMigrationServices.checkChildrenNameAvailability", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.check_children_name_availability": "Microsoft.DataMigration.DataMigrationServices.checkChildrenNameAvailability", + "azure.mgmt.datamigration.operations.ServicesOperations.check_name_availability": "Microsoft.DataMigration.ServicesOperationGroup.checkNameAvailability", + "azure.mgmt.datamigration.aio.operations.ServicesOperations.check_name_availability": "Microsoft.DataMigration.ServicesOperationGroup.checkNameAvailability", + "azure.mgmt.datamigration.operations.TasksOperations.get": "Microsoft.DataMigration.ProjectTasks.get", + "azure.mgmt.datamigration.aio.operations.TasksOperations.get": "Microsoft.DataMigration.ProjectTasks.get", + "azure.mgmt.datamigration.operations.TasksOperations.create_or_update": "Microsoft.DataMigration.ProjectTasks.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.TasksOperations.create_or_update": "Microsoft.DataMigration.ProjectTasks.createOrUpdate", + "azure.mgmt.datamigration.operations.TasksOperations.update": "Microsoft.DataMigration.ProjectTasks.update", + "azure.mgmt.datamigration.aio.operations.TasksOperations.update": "Microsoft.DataMigration.ProjectTasks.update", + "azure.mgmt.datamigration.operations.TasksOperations.delete": "Microsoft.DataMigration.ProjectTasks.delete", + "azure.mgmt.datamigration.aio.operations.TasksOperations.delete": "Microsoft.DataMigration.ProjectTasks.delete", + "azure.mgmt.datamigration.operations.TasksOperations.list": "Microsoft.DataMigration.ProjectTasks.list", + "azure.mgmt.datamigration.aio.operations.TasksOperations.list": "Microsoft.DataMigration.ProjectTasks.list", + "azure.mgmt.datamigration.operations.TasksOperations.cancel": "Microsoft.DataMigration.ProjectTasks.cancel", + "azure.mgmt.datamigration.aio.operations.TasksOperations.cancel": "Microsoft.DataMigration.ProjectTasks.cancel", + "azure.mgmt.datamigration.operations.TasksOperations.command": "Microsoft.DataMigration.ProjectTasks.command", + "azure.mgmt.datamigration.aio.operations.TasksOperations.command": "Microsoft.DataMigration.ProjectTasks.command", + "azure.mgmt.datamigration.operations.FilesOperations.get": "Microsoft.DataMigration.ProjectFiles.get", + "azure.mgmt.datamigration.aio.operations.FilesOperations.get": "Microsoft.DataMigration.ProjectFiles.get", + "azure.mgmt.datamigration.operations.FilesOperations.create_or_update": "Microsoft.DataMigration.ProjectFiles.createOrUpdate", + "azure.mgmt.datamigration.aio.operations.FilesOperations.create_or_update": "Microsoft.DataMigration.ProjectFiles.createOrUpdate", + "azure.mgmt.datamigration.operations.FilesOperations.update": "Microsoft.DataMigration.ProjectFiles.update", + "azure.mgmt.datamigration.aio.operations.FilesOperations.update": "Microsoft.DataMigration.ProjectFiles.update", + "azure.mgmt.datamigration.operations.FilesOperations.delete": "Microsoft.DataMigration.ProjectFiles.delete", + "azure.mgmt.datamigration.aio.operations.FilesOperations.delete": "Microsoft.DataMigration.ProjectFiles.delete", + "azure.mgmt.datamigration.operations.FilesOperations.list": "Microsoft.DataMigration.ProjectFiles.list", + "azure.mgmt.datamigration.aio.operations.FilesOperations.list": "Microsoft.DataMigration.ProjectFiles.list", + "azure.mgmt.datamigration.operations.FilesOperations.read": "Microsoft.DataMigration.ProjectFiles.read", + "azure.mgmt.datamigration.aio.operations.FilesOperations.read": "Microsoft.DataMigration.ProjectFiles.read", + "azure.mgmt.datamigration.operations.FilesOperations.read_write": "Microsoft.DataMigration.ProjectFiles.readWrite", + "azure.mgmt.datamigration.aio.operations.FilesOperations.read_write": "Microsoft.DataMigration.ProjectFiles.readWrite", + "azure.mgmt.datamigration.operations.ResourceSkusOperations.list_skus": "Microsoft.DataMigration.ResourceSkusOperationGroup.listSkus", + "azure.mgmt.datamigration.aio.operations.ResourceSkusOperations.list_skus": "Microsoft.DataMigration.ResourceSkusOperationGroup.listSkus", + "azure.mgmt.datamigration.operations.UsagesOperations.list": "Microsoft.DataMigration.UsagesOperationGroup.list", + "azure.mgmt.datamigration.aio.operations.UsagesOperations.list": "Microsoft.DataMigration.UsagesOperationGroup.list" } } \ No newline at end of file diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py index fe09662b09b9..442deef2b933 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._data_migration_management_client import DataMigrationManagementClient # type: ignore +from ._client import DataMigrationManagementClient # type: ignore from ._version import VERSION __version__ = VERSION diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_client.py similarity index 88% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_client.py index 45d30b555dba..88cb32ba8d54 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_data_migration_management_client.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,7 +17,6 @@ from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from . import models as _models from ._configuration import DataMigrationManagementClientConfiguration from ._utils.serialization import Deserializer, Serializer from .operations import ( @@ -44,16 +43,28 @@ class DataMigrationManagementClient: # pylint: disable=too-many-instance-attributes - """Data Migration Client. + """The SQL Migration management API provides a RESTful set of web APIs that allow users to migrate + their SQL Server databases to Azure SQL. - :ivar database_migrations_mongo_to_cosmos_db_ru_mongo: - DatabaseMigrationsMongoToCosmosDbRUMongoOperations operations - :vartype database_migrations_mongo_to_cosmos_db_ru_mongo: - azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.datamigration.operations.Operations :ivar database_migrations_mongo_to_cosmos_dbv_core_mongo: DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations operations :vartype database_migrations_mongo_to_cosmos_dbv_core_mongo: azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations + :ivar migration_services: MigrationServicesOperations operations + :vartype migration_services: azure.mgmt.datamigration.operations.MigrationServicesOperations + :ivar sql_migration_services: SqlMigrationServicesOperations operations + :vartype sql_migration_services: + azure.mgmt.datamigration.operations.SqlMigrationServicesOperations + :ivar service_tasks: ServiceTasksOperations operations + :vartype service_tasks: azure.mgmt.datamigration.operations.ServiceTasksOperations + :ivar projects: ProjectsOperations operations + :vartype projects: azure.mgmt.datamigration.operations.ProjectsOperations + :ivar database_migrations_mongo_to_cosmos_db_ru_mongo: + DatabaseMigrationsMongoToCosmosDbRUMongoOperations operations + :vartype database_migrations_mongo_to_cosmos_db_ru_mongo: + azure.mgmt.datamigration.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations :ivar database_migrations_sql_db: DatabaseMigrationsSqlDbOperations operations :vartype database_migrations_sql_db: azure.mgmt.datamigration.operations.DatabaseMigrationsSqlDbOperations @@ -63,38 +74,28 @@ class DataMigrationManagementClient: # pylint: disable=too-many-instance-attrib :ivar database_migrations_sql_vm: DatabaseMigrationsSqlVmOperations operations :vartype database_migrations_sql_vm: azure.mgmt.datamigration.operations.DatabaseMigrationsSqlVmOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.datamigration.operations.Operations - :ivar migration_services: MigrationServicesOperations operations - :vartype migration_services: azure.mgmt.datamigration.operations.MigrationServicesOperations - :ivar sql_migration_services: SqlMigrationServicesOperations operations - :vartype sql_migration_services: - azure.mgmt.datamigration.operations.SqlMigrationServicesOperations - :ivar resource_skus: ResourceSkusOperations operations - :vartype resource_skus: azure.mgmt.datamigration.operations.ResourceSkusOperations :ivar services: ServicesOperations operations :vartype services: azure.mgmt.datamigration.operations.ServicesOperations :ivar tasks: TasksOperations operations :vartype tasks: azure.mgmt.datamigration.operations.TasksOperations - :ivar service_tasks: ServiceTasksOperations operations - :vartype service_tasks: azure.mgmt.datamigration.operations.ServiceTasksOperations - :ivar projects: ProjectsOperations operations - :vartype projects: azure.mgmt.datamigration.operations.ProjectsOperations - :ivar usages: UsagesOperations operations - :vartype usages: azure.mgmt.datamigration.operations.UsagesOperations :ivar files: FilesOperations operations :vartype files: azure.mgmt.datamigration.operations.FilesOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :ivar resource_skus: ResourceSkusOperations operations + :vartype resource_skus: azure.mgmt.datamigration.operations.ResourceSkusOperations + :ivar usages: UsagesOperations operations + :vartype usages: azure.mgmt.datamigration.operations.UsagesOperations + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Subscription ID that identifies an Azure subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-09-01-preview". Default value is "2025-09-01-preview". Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -109,6 +110,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: @@ -117,6 +119,7 @@ def __init__( self._config = DataMigrationManagementClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -140,49 +143,48 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.database_migrations_mongo_to_cosmos_db_ru_mongo = DatabaseMigrationsMongoToCosmosDbRUMongoOperations( + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.database_migrations_mongo_to_cosmos_dbv_core_mongo = DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_mongo_to_cosmos_dbv_core_mongo = DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations( + self.migration_services = MigrationServicesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_sql_db = DatabaseMigrationsSqlDbOperations( + self.sql_migration_services = SqlMigrationServicesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_sql_mi = DatabaseMigrationsSqlMiOperations( + self.service_tasks = ServiceTasksOperations(self._client, self._config, self._serialize, self._deserialize) + self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize) + self.database_migrations_mongo_to_cosmos_db_ru_mongo = DatabaseMigrationsMongoToCosmosDbRUMongoOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_sql_vm = DatabaseMigrationsSqlVmOperations( + self.database_migrations_sql_db = DatabaseMigrationsSqlDbOperations( self._client, self._config, self._serialize, self._deserialize ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.migration_services = MigrationServicesOperations( + self.database_migrations_sql_mi = DatabaseMigrationsSqlMiOperations( self._client, self._config, self._serialize, self._deserialize ) - self.sql_migration_services = SqlMigrationServicesOperations( + self.database_migrations_sql_vm = DatabaseMigrationsSqlVmOperations( self._client, self._config, self._serialize, self._deserialize ) - self.resource_skus = ResourceSkusOperations(self._client, self._config, self._serialize, self._deserialize) self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize) self.tasks = TasksOperations(self._client, self._config, self._serialize, self._deserialize) - self.service_tasks = ServiceTasksOperations(self._client, self._config, self._serialize, self._deserialize) - self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize) - self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize) self.files = FilesOperations(self._client, self._config, self._serialize, self._deserialize) + self.resource_skus = ResourceSkusOperations(self._client, self._config, self._serialize, self._deserialize) + self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize) - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: + def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = client._send_request(request) + >>> response = client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -195,7 +197,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py index b044e819b12a..b4eae5640d40 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -24,15 +24,18 @@ class DataMigrationManagementClientConfiguration: # pylint: disable=too-many-in Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Subscription ID that identifies an Azure subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-09-01-preview". Default value is "2025-09-01-preview". Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ @@ -40,6 +43,7 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_patch.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_patch.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/__init__.py index 0af9b28f6607..8026245c2abc 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/__init__.py @@ -1,6 +1,6 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/model_base.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/model_base.py new file mode 100644 index 000000000000..eef4e52ed1a0 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/model_base.py @@ -0,0 +1,1459 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=protected-access, broad-except + +import copy +import calendar +import decimal +import functools +import sys +import logging +import base64 +import re +import typing +import enum +import email.utils +from datetime import datetime, date, time, timedelta, timezone +from json import JSONEncoder +import xml.etree.ElementTree as ET +from collections.abc import MutableMapping +from typing_extensions import Self +import isodate +from azure.core.exceptions import DeserializationError +from azure.core import CaseInsensitiveEnumMeta +from azure.core.pipeline import PipelineResponse +from azure.core.serialization import _Null +from azure.core.rest import HttpResponse + +_LOGGER = logging.getLogger(__name__) + +__all__ = ["SdkJSONEncoder", "Model", "rest_field", "rest_discriminator"] + +TZ_UTC = timezone.utc +_T = typing.TypeVar("_T") +_NONE_TYPE = type(None) + + +def _timedelta_as_isostr(td: timedelta) -> str: + """Converts a datetime.timedelta object into an ISO 8601 formatted string, e.g. 'P4DT12H30M05S' + + Function adapted from the Tin Can Python project: https://github.com/RusticiSoftware/TinCanPython + + :param timedelta td: The timedelta to convert + :rtype: str + :return: ISO8601 version of this timedelta + """ + + # Split seconds to larger units + seconds = td.total_seconds() + minutes, seconds = divmod(seconds, 60) + hours, minutes = divmod(minutes, 60) + days, hours = divmod(hours, 24) + + days, hours, minutes = list(map(int, (days, hours, minutes))) + seconds = round(seconds, 6) + + # Build date + date_str = "" + if days: + date_str = "%sD" % days + + if hours or minutes or seconds: + # Build time + time_str = "T" + + # Hours + bigger_exists = date_str or hours + if bigger_exists: + time_str += "{:02}H".format(hours) + + # Minutes + bigger_exists = bigger_exists or minutes + if bigger_exists: + time_str += "{:02}M".format(minutes) + + # Seconds + try: + if seconds.is_integer(): + seconds_string = "{:02}".format(int(seconds)) + else: + # 9 chars long w/ leading 0, 6 digits after decimal + seconds_string = "%09.6f" % seconds + # Remove trailing zeros + seconds_string = seconds_string.rstrip("0") + except AttributeError: # int.is_integer() raises + seconds_string = "{:02}".format(seconds) + + time_str += "{}S".format(seconds_string) + else: + time_str = "" + + return "P" + date_str + time_str + + +def _serialize_bytes(o, format: typing.Optional[str] = None) -> str: + encoded = base64.b64encode(o).decode() + if format == "base64url": + return encoded.strip("=").replace("+", "-").replace("/", "_") + return encoded + + +def _serialize_datetime(o, format: typing.Optional[str] = None): + if hasattr(o, "year") and hasattr(o, "hour"): + if format == "rfc7231": + return email.utils.format_datetime(o, usegmt=True) + if format == "unix-timestamp": + return int(calendar.timegm(o.utctimetuple())) + + # astimezone() fails for naive times in Python 2.7, so make make sure o is aware (tzinfo is set) + if not o.tzinfo: + iso_formatted = o.replace(tzinfo=TZ_UTC).isoformat() + else: + iso_formatted = o.astimezone(TZ_UTC).isoformat() + # Replace the trailing "+00:00" UTC offset with "Z" (RFC 3339: https://www.ietf.org/rfc/rfc3339.txt) + return iso_formatted.replace("+00:00", "Z") + # Next try datetime.date or datetime.time + return o.isoformat() + + +def _is_readonly(p): + try: + return p._visibility == ["read"] + except AttributeError: + return False + + +class SdkJSONEncoder(JSONEncoder): + """A JSON encoder that's capable of serializing datetime objects and bytes.""" + + def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): + super().__init__(*args, **kwargs) + self.exclude_readonly = exclude_readonly + self.format = format + + def default(self, o): # pylint: disable=too-many-return-statements + if _is_model(o): + if self.exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + return {k: v for k, v in o.items() if k not in readonly_props} + return dict(o.items()) + try: + return super(SdkJSONEncoder, self).default(o) + except TypeError: + if isinstance(o, _Null): + return None + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, self.format) + try: + # First try datetime.datetime + return _serialize_datetime(o, self.format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return super(SdkJSONEncoder, self).default(o) + + +_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}]?") +_VALID_RFC7231 = re.compile( + r"(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s\d{2}\s" + r"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT" +) + +_ARRAY_ENCODE_MAPPING = { + "pipeDelimited": "|", + "spaceDelimited": " ", + "commaDelimited": ",", + "newlineDelimited": "\n", +} + + +def _deserialize_array_encoded(delimit: str, attr): + if isinstance(attr, str): + if attr == "": + return [] + return attr.split(delimit) + return attr + + +def _deserialize_datetime(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + attr = attr.upper() + match = _VALID_DATE.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + return date_obj # type: ignore[no-any-return] + + +def _deserialize_datetime_rfc7231(attr: typing.Union[str, datetime]) -> datetime: + """Deserialize RFC7231 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + match = _VALID_RFC7231.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + return email.utils.parsedate_to_datetime(attr) + + +def _deserialize_datetime_unix_timestamp(attr: typing.Union[float, datetime]) -> datetime: + """Deserialize unix timestamp into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: ~datetime.datetime + :returns: The datetime object from that input + """ + if isinstance(attr, datetime): + # i'm already deserialized + return attr + return datetime.fromtimestamp(attr, TZ_UTC) + + +def _deserialize_date(attr: typing.Union[str, date]) -> date: + """Deserialize ISO-8601 formatted string into Date object. + :param str attr: response string to be deserialized. + :rtype: date + :returns: The date object from that input + """ + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + if isinstance(attr, date): + return attr + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) # type: ignore + + +def _deserialize_time(attr: typing.Union[str, time]) -> time: + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :returns: The time object from that input + """ + if isinstance(attr, time): + return attr + return isodate.parse_time(attr) # type: ignore[no-any-return] + + +def _deserialize_bytes(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + return bytes(base64.b64decode(attr)) + + +def _deserialize_bytes_base64(attr): + if isinstance(attr, (bytes, bytearray)): + return attr + padding = "=" * (3 - (len(attr) + 3) % 4) # type: ignore + attr = attr + padding # type: ignore + encoded = attr.replace("-", "+").replace("_", "/") + return bytes(base64.b64decode(encoded)) + + +def _deserialize_duration(attr): + if isinstance(attr, timedelta): + return attr + return isodate.parse_duration(attr) + + +def _deserialize_decimal(attr): + if isinstance(attr, decimal.Decimal): + return attr + return decimal.Decimal(str(attr)) + + +def _deserialize_int_as_str(attr): + if isinstance(attr, int): + return attr + return int(attr) + + +_DESERIALIZE_MAPPING = { + datetime: _deserialize_datetime, + date: _deserialize_date, + time: _deserialize_time, + bytes: _deserialize_bytes, + bytearray: _deserialize_bytes, + timedelta: _deserialize_duration, + typing.Any: lambda x: x, + decimal.Decimal: _deserialize_decimal, +} + +_DESERIALIZE_MAPPING_WITHFORMAT = { + "rfc3339": _deserialize_datetime, + "rfc7231": _deserialize_datetime_rfc7231, + "unix-timestamp": _deserialize_datetime_unix_timestamp, + "base64": _deserialize_bytes, + "base64url": _deserialize_bytes_base64, +} + + +def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): + if annotation is int and rf and rf._format == "str": + return _deserialize_int_as_str + if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: + return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) + if rf and rf._format: + return _DESERIALIZE_MAPPING_WITHFORMAT.get(rf._format) + return _DESERIALIZE_MAPPING.get(annotation) # pyright: ignore + + +def _get_type_alias_type(module_name: str, alias_name: str): + types = { + k: v + for k, v in sys.modules[module_name].__dict__.items() + if isinstance(v, typing._GenericAlias) # type: ignore + } + if alias_name not in types: + return alias_name + return types[alias_name] + + +def _get_model(module_name: str, model_name: str): + models = {k: v for k, v in sys.modules[module_name].__dict__.items() if isinstance(v, type)} + module_end = module_name.rsplit(".", 1)[0] + models.update({k: v for k, v in sys.modules[module_end].__dict__.items() if isinstance(v, type)}) + if isinstance(model_name, str): + model_name = model_name.split(".")[-1] + if model_name not in models: + return model_name + return models[model_name] + + +_UNSET = object() + + +class _MyMutableMapping(MutableMapping[str, typing.Any]): + def __init__(self, data: dict[str, typing.Any]) -> None: + self._data = data + + def __contains__(self, key: typing.Any) -> bool: + return key in self._data + + def __getitem__(self, key: str) -> typing.Any: + # If this key has been deserialized (for mutable types), we need to handle serialization + if hasattr(self, "_attr_to_rest_field"): + cache_attr = f"_deserialized_{key}" + if hasattr(self, cache_attr): + rf = _get_rest_field(getattr(self, "_attr_to_rest_field"), key) + if rf: + value = self._data.get(key) + if isinstance(value, (dict, list, set)): + # For mutable types, serialize and return + # But also update _data with serialized form and clear flag + # so mutations via this returned value affect _data + serialized = _serialize(value, rf._format) + # If serialized form is same type (no transformation needed), + # return _data directly so mutations work + if isinstance(serialized, type(value)) and serialized == value: + return self._data.get(key) + # Otherwise return serialized copy and clear flag + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + # Store serialized form back + self._data[key] = serialized + return serialized + return self._data.__getitem__(key) + + def __setitem__(self, key: str, value: typing.Any) -> None: + # Clear any cached deserialized value when setting through dictionary access + cache_attr = f"_deserialized_{key}" + try: + object.__delattr__(self, cache_attr) + except AttributeError: + pass + self._data.__setitem__(key, value) + + def __delitem__(self, key: str) -> None: + self._data.__delitem__(key) + + def __iter__(self) -> typing.Iterator[typing.Any]: + return self._data.__iter__() + + def __len__(self) -> int: + return self._data.__len__() + + def __ne__(self, other: typing.Any) -> bool: + return not self.__eq__(other) + + def keys(self) -> typing.KeysView[str]: + """ + :returns: a set-like object providing a view on D's keys + :rtype: ~typing.KeysView + """ + return self._data.keys() + + def values(self) -> typing.ValuesView[typing.Any]: + """ + :returns: an object providing a view on D's values + :rtype: ~typing.ValuesView + """ + return self._data.values() + + def items(self) -> typing.ItemsView[str, typing.Any]: + """ + :returns: set-like object providing a view on D's items + :rtype: ~typing.ItemsView + """ + return self._data.items() + + def get(self, key: str, default: typing.Any = None) -> typing.Any: + """ + Get the value for key if key is in the dictionary, else default. + :param str key: The key to look up. + :param any default: The value to return if key is not in the dictionary. Defaults to None + :returns: D[k] if k in D, else d. + :rtype: any + """ + try: + return self[key] + except KeyError: + return default + + @typing.overload + def pop(self, key: str) -> typing.Any: ... # pylint: disable=arguments-differ + + @typing.overload + def pop(self, key: str, default: _T) -> _T: ... # pylint: disable=signature-differs + + @typing.overload + def pop(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def pop(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Removes specified key and return the corresponding value. + :param str key: The key to pop. + :param any default: The value to return if key is not in the dictionary + :returns: The value corresponding to the key. + :rtype: any + :raises KeyError: If key is not found and default is not given. + """ + if default is _UNSET: + return self._data.pop(key) + return self._data.pop(key, default) + + def popitem(self) -> tuple[str, typing.Any]: + """ + Removes and returns some (key, value) pair + :returns: The (key, value) pair. + :rtype: tuple + :raises KeyError: if D is empty. + """ + return self._data.popitem() + + def clear(self) -> None: + """ + Remove all items from D. + """ + self._data.clear() + + def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ + """ + Updates D from mapping/iterable E and F. + :param any args: Either a mapping object or an iterable of key-value pairs. + """ + self._data.update(*args, **kwargs) + + @typing.overload + def setdefault(self, key: str, default: None = None) -> None: ... + + @typing.overload + def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint: disable=signature-differs + + def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: + """ + Same as calling D.get(k, d), and setting D[k]=d if k not found + :param str key: The key to look up. + :param any default: The value to set if key is not in the dictionary + :returns: D[k] if k in D, else d. + :rtype: any + """ + if default is _UNSET: + return self._data.setdefault(key) + return self._data.setdefault(key, default) + + def __eq__(self, other: typing.Any) -> bool: + if isinstance(other, _MyMutableMapping): + return self._data == other._data + try: + other_model = self.__class__(other) + except Exception: + return False + return self._data == other_model._data + + def __repr__(self) -> str: + return str(self._data) + + +def _is_model(obj: typing.Any) -> bool: + return getattr(obj, "_is_model", False) + + +def _serialize(o, format: typing.Optional[str] = None): # pylint: disable=too-many-return-statements + if isinstance(o, list): + if format in _ARRAY_ENCODE_MAPPING and all(isinstance(x, str) for x in o): + return _ARRAY_ENCODE_MAPPING[format].join(o) + return [_serialize(x, format) for x in o] + if isinstance(o, dict): + return {k: _serialize(v, format) for k, v in o.items()} + if isinstance(o, set): + return {_serialize(x, format) for x in o} + if isinstance(o, tuple): + return tuple(_serialize(x, format) for x in o) + if isinstance(o, (bytes, bytearray)): + return _serialize_bytes(o, format) + if isinstance(o, decimal.Decimal): + return float(o) + if isinstance(o, enum.Enum): + return o.value + if isinstance(o, int): + if format == "str": + return str(o) + return o + try: + # First try datetime.datetime + return _serialize_datetime(o, format) + except AttributeError: + pass + # Last, try datetime.timedelta + try: + return _timedelta_as_isostr(o) + except AttributeError: + # This will be raised when it hits value.total_seconds in the method above + pass + return o + + +def _get_rest_field(attr_to_rest_field: dict[str, "_RestField"], rest_name: str) -> typing.Optional["_RestField"]: + try: + return next(rf for rf in attr_to_rest_field.values() if rf._rest_name == rest_name) + except StopIteration: + return None + + +def _create_value(rf: typing.Optional["_RestField"], value: typing.Any) -> typing.Any: + if not rf: + return _serialize(value, None) + if rf._is_multipart_file_input: + return value + if rf._is_model: + return _deserialize(rf._type, value) + if isinstance(value, ET.Element): + value = _deserialize(rf._type, value) + return _serialize(value, rf._format) + + +class Model(_MyMutableMapping): + _is_model = True + # label whether current class's _attr_to_rest_field has been calculated + # could not see _attr_to_rest_field directly because subclass inherits it from parent class + _calculated: set[str] = set() + + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + class_name = self.__class__.__name__ + if len(args) > 1: + raise TypeError(f"{class_name}.__init__() takes 2 positional arguments but {len(args) + 1} were given") + dict_to_pass = { + rest_field._rest_name: rest_field._default + for rest_field in self._attr_to_rest_field.values() + if rest_field._default is not _UNSET + } + if args: + if isinstance(args[0], ET.Element): + dict_to_pass.update(self._init_from_xml(args[0])) + else: + dict_to_pass.update( + {k: _create_value(_get_rest_field(self._attr_to_rest_field, k), v) for k, v in args[0].items()} + ) + else: + non_attr_kwargs = [k for k in kwargs if k not in self._attr_to_rest_field] + if non_attr_kwargs: + # actual type errors only throw the first wrong keyword arg they see, so following that. + raise TypeError(f"{class_name}.__init__() got an unexpected keyword argument '{non_attr_kwargs[0]}'") + dict_to_pass.update( + { + self._attr_to_rest_field[k]._rest_name: _create_value(self._attr_to_rest_field[k], v) + for k, v in kwargs.items() + if v is not None + } + ) + super().__init__(dict_to_pass) + + def _init_from_xml(self, element: ET.Element) -> dict[str, typing.Any]: + """Deserialize an XML element into a dict mapping rest field names to values. + + :param ET.Element element: The XML element to deserialize from. + :returns: A dictionary of rest_name to deserialized value pairs. + :rtype: dict + """ + result: dict[str, typing.Any] = {} + model_meta = getattr(self, "_xml", {}) + existed_attr_keys: list[str] = [] + + for rf in self._attr_to_rest_field.values(): + prop_meta = getattr(rf, "_xml", {}) + xml_name = prop_meta.get("name", rf._rest_name) + xml_ns = _resolve_xml_ns(prop_meta, model_meta) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + # attribute + if prop_meta.get("attribute", False) and element.get(xml_name) is not None: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = _deserialize(rf._type, element.get(xml_name)) + continue + + # unwrapped element is array + if prop_meta.get("unwrapped", False): + # unwrapped array could either use prop items meta/prop meta + _items_name = prop_meta.get("itemsName") + if _items_name: + xml_name = _items_name + _items_ns = prop_meta.get("itemsNs") + if _items_ns is not None: + xml_ns = _items_ns + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + items = element.findall(xml_name) # pyright: ignore + if len(items) > 0: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = _deserialize(rf._type, items) + elif not rf._is_optional: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = [] + continue + + # text element is primitive type + if prop_meta.get("text", False): + if element.text is not None: + result[rf._rest_name] = _deserialize(rf._type, element.text) + continue + + # wrapped element could be normal property or array, it should only have one element + item = element.find(xml_name) + if item is not None: + existed_attr_keys.append(xml_name) + result[rf._rest_name] = _deserialize(rf._type, item) + + # rest thing is additional properties + for e in element: + if e.tag not in existed_attr_keys: + result[e.tag] = _convert_element(e) + + return result + + def copy(self) -> "Model": + return Model(self.__dict__) + + def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: + if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated: + # we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping', + # 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object' + mros = cls.__mro__[:-9][::-1] # ignore parents, and reverse the mro order + attr_to_rest_field: dict[str, _RestField] = { # map attribute name to rest_field property + k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type") + } + annotations = { + k: v + for mro_class in mros + if hasattr(mro_class, "__annotations__") + for k, v in mro_class.__annotations__.items() + } + for attr, rf in attr_to_rest_field.items(): + rf._module = cls.__module__ + if not rf._type: + rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None)) + if not rf._rest_name_input: + rf._rest_name_input = attr + cls._attr_to_rest_field: dict[str, _RestField] = dict(attr_to_rest_field.items()) + cls._backcompat_attr_to_rest_field: dict[str, _RestField] = { + Model._get_backcompat_attribute_name(cls._attr_to_rest_field, attr): rf + for attr, rf in cls._attr_to_rest_field.items() + } + cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}") + + return super().__new__(cls) + + def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None: + for base in cls.__bases__: + if hasattr(base, "__mapping__"): + base.__mapping__[discriminator or cls.__name__] = cls # type: ignore + + @classmethod + def _get_backcompat_attribute_name(cls, attr_to_rest_field: dict[str, "_RestField"], attr_name: str) -> str: + rest_field_obj = attr_to_rest_field.get(attr_name) # pylint: disable=protected-access + if rest_field_obj is None: + return attr_name + original_tsp_name = getattr(rest_field_obj, "_original_tsp_name", None) # pylint: disable=protected-access + if original_tsp_name: + return original_tsp_name + return attr_name + + @classmethod + def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField"]: + for v in cls.__dict__.values(): + if isinstance(v, _RestField) and v._is_discriminator and v._rest_name not in exist_discriminators: + return v + return None + + @classmethod + def _deserialize(cls, data, exist_discriminators): + if not hasattr(cls, "__mapping__"): + return cls(data) + discriminator = cls._get_discriminator(exist_discriminators) + if discriminator is None: + return cls(data) + exist_discriminators.append(discriminator._rest_name) + if isinstance(data, ET.Element): + model_meta = getattr(cls, "_xml", {}) + prop_meta = getattr(discriminator, "_xml", {}) + xml_name = prop_meta.get("name", discriminator._rest_name) + xml_ns = _resolve_xml_ns(prop_meta, model_meta) + if xml_ns: + xml_name = "{" + xml_ns + "}" + xml_name + + if data.get(xml_name) is not None: + discriminator_value = data.get(xml_name) + else: + discriminator_value = data.find(xml_name).text # pyright: ignore + else: + discriminator_value = data.get(discriminator._rest_name) + mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore # pylint: disable=no-member + return mapped_cls._deserialize(data, exist_discriminators) + + def as_dict(self, *, exclude_readonly: bool = False) -> dict[str, typing.Any]: + """Return a dict that can be turned into json using json.dump. + + :keyword bool exclude_readonly: Whether to remove the readonly properties. + :returns: A dict JSON compatible object + :rtype: dict + """ + + result = {} + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in self._attr_to_rest_field.values() if _is_readonly(p)] + for k, v in self.items(): + if exclude_readonly and k in readonly_props: # pyright: ignore + continue + is_multipart_file_input = False + try: + is_multipart_file_input = next( + rf for rf in self._attr_to_rest_field.values() if rf._rest_name == k + )._is_multipart_file_input + except StopIteration: + pass + result[k] = v if is_multipart_file_input else Model._as_dict_value(v, exclude_readonly=exclude_readonly) + return result + + @staticmethod + def _as_dict_value(v: typing.Any, exclude_readonly: bool = False) -> typing.Any: + if v is None or isinstance(v, _Null): + return None + if isinstance(v, (list, tuple, set)): + return type(v)(Model._as_dict_value(x, exclude_readonly=exclude_readonly) for x in v) + if isinstance(v, dict): + return {dk: Model._as_dict_value(dv, exclude_readonly=exclude_readonly) for dk, dv in v.items()} + return v.as_dict(exclude_readonly=exclude_readonly) if hasattr(v, "as_dict") else v + + +def _deserialize_model(model_deserializer: typing.Optional[typing.Callable], obj): + if _is_model(obj): + return obj + return _deserialize(model_deserializer, obj) + + +def _deserialize_with_optional(if_obj_deserializer: typing.Optional[typing.Callable], obj): + if obj is None: + return obj + return _deserialize_with_callable(if_obj_deserializer, obj) + + +def _deserialize_with_union(deserializers, obj): + for deserializer in deserializers: + try: + return _deserialize(deserializer, obj) + except DeserializationError: + pass + raise DeserializationError() + + +def _deserialize_dict( + value_deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj: dict[typing.Any, typing.Any], +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = {child.tag: child for child in obj} + return {k: _deserialize(value_deserializer, v, module) for k, v in obj.items()} + + +def _deserialize_multiple_sequence( + entry_deserializers: list[typing.Optional[typing.Callable]], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + return type(obj)(_deserialize(deserializer, entry, module) for entry, deserializer in zip(obj, entry_deserializers)) + + +def _is_array_encoded_deserializer(deserializer: functools.partial) -> bool: + return ( + isinstance(deserializer, functools.partial) + and isinstance(deserializer.args[0], functools.partial) + and deserializer.args[0].func == _deserialize_array_encoded # pylint: disable=comparison-with-callable + ) + + +def _deserialize_sequence( + deserializer: typing.Optional[typing.Callable], + module: typing.Optional[str], + obj, +): + if obj is None: + return obj + if isinstance(obj, ET.Element): + obj = list(obj) + + # encoded string may be deserialized to sequence + if isinstance(obj, str) and isinstance(deserializer, functools.partial): + # for list[str] + if _is_array_encoded_deserializer(deserializer): + return deserializer(obj) + + # for list[Union[...]] + if isinstance(deserializer.args[0], list): + for sub_deserializer in deserializer.args[0]: + if _is_array_encoded_deserializer(sub_deserializer): + return sub_deserializer(obj) + + return type(obj)(_deserialize(deserializer, entry, module) for entry in obj) + + +def _sorted_annotations(types: list[typing.Any]) -> list[typing.Any]: + return sorted( + types, + key=lambda x: hasattr(x, "__name__") and x.__name__.lower() in ("str", "float", "int", "bool"), + ) + + +def _get_deserialize_callable_from_annotation( # pylint: disable=too-many-return-statements, too-many-statements, too-many-branches + annotation: typing.Any, + module: typing.Optional[str], + rf: typing.Optional["_RestField"] = None, +) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + if not annotation: + return None + + # is it a type alias? + if isinstance(annotation, str): + if module is not None: + annotation = _get_type_alias_type(module, annotation) + + # is it a forward ref / in quotes? + if isinstance(annotation, (str, typing.ForwardRef)): + try: + model_name = annotation.__forward_arg__ # type: ignore + except AttributeError: + model_name = annotation + if module is not None: + annotation = _get_model(module, model_name) # type: ignore + + try: + if module and _is_model(annotation): + if rf: + rf._is_model = True + + return functools.partial(_deserialize_model, annotation) # pyright: ignore + except Exception: + pass + + # is it a literal? + try: + if annotation.__origin__ is typing.Literal: # pyright: ignore + return None + except AttributeError: + pass + + # is it optional? + try: + if any(a is _NONE_TYPE for a in annotation.__args__): # pyright: ignore + if rf: + rf._is_optional = True + if len(annotation.__args__) <= 2: # pyright: ignore + if_obj_deserializer = _get_deserialize_callable_from_annotation( + next(a for a in annotation.__args__ if a is not _NONE_TYPE), module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_with_optional, if_obj_deserializer) + # the type is Optional[Union[...]], we need to remove the None type from the Union + annotation_copy = copy.copy(annotation) + annotation_copy.__args__ = [a for a in annotation_copy.__args__ if a is not _NONE_TYPE] # pyright: ignore + return _get_deserialize_callable_from_annotation(annotation_copy, module, rf) + except AttributeError: + pass + + # is it union? + if getattr(annotation, "__origin__", None) is typing.Union: + # initial ordering is we make `string` the last deserialization option, because it is often them most generic + deserializers = [ + _get_deserialize_callable_from_annotation(arg, module, rf) + for arg in _sorted_annotations(annotation.__args__) # pyright: ignore + ] + + return functools.partial(_deserialize_with_union, deserializers) + + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() == "dict": + value_deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[1], module, rf # pyright: ignore + ) + + return functools.partial( + _deserialize_dict, + value_deserializer, + module, + ) + except (AttributeError, IndexError): + pass + try: + annotation_name = ( + annotation.__name__ if hasattr(annotation, "__name__") else annotation._name # pyright: ignore + ) + if annotation_name.lower() in ["list", "set", "tuple", "sequence"]: + if len(annotation.__args__) > 1: # pyright: ignore + entry_deserializers = [ + _get_deserialize_callable_from_annotation(dt, module, rf) + for dt in annotation.__args__ # pyright: ignore + ] + return functools.partial(_deserialize_multiple_sequence, entry_deserializers, module) + deserializer = _get_deserialize_callable_from_annotation( + annotation.__args__[0], module, rf # pyright: ignore + ) + + return functools.partial(_deserialize_sequence, deserializer, module) + except (TypeError, IndexError, AttributeError, SyntaxError): + pass + + def _deserialize_default( + deserializer, + obj, + ): + if obj is None: + return obj + try: + return _deserialize_with_callable(deserializer, obj) + except Exception: + pass + return obj + + if get_deserializer(annotation, rf): + return functools.partial(_deserialize_default, get_deserializer(annotation, rf)) + + return functools.partial(_deserialize_default, annotation) + + +def _deserialize_with_callable( + deserializer: typing.Optional[typing.Callable[[typing.Any], typing.Any]], + value: typing.Any, +): # pylint: disable=too-many-return-statements + try: + if value is None or isinstance(value, _Null): + return None + if isinstance(value, ET.Element): + if deserializer is str: + return value.text or "" + if deserializer is int: + return int(value.text) if value.text else None + if deserializer is float: + return float(value.text) if value.text else None + if deserializer is bool: + return value.text == "true" if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING.values(): + return deserializer(value.text) if value.text else None + if deserializer and deserializer in _DESERIALIZE_MAPPING_WITHFORMAT.values(): + return deserializer(value.text) if value.text else None + if deserializer is None: + return value + if deserializer in [int, float, bool]: + return deserializer(value) + if isinstance(deserializer, CaseInsensitiveEnumMeta): + try: + return deserializer(value.text if isinstance(value, ET.Element) else value) + except ValueError: + # for unknown value, return raw value + return value.text if isinstance(value, ET.Element) else value + if isinstance(deserializer, type) and issubclass(deserializer, Model): + return deserializer._deserialize(value, []) + return typing.cast(typing.Callable[[typing.Any], typing.Any], deserializer)(value) + except Exception as e: + raise DeserializationError() from e + + +def _deserialize( + deserializer: typing.Any, + value: typing.Any, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + if isinstance(value, PipelineResponse): + value = value.http_response.json() + if rf is None and format: + rf = _RestField(format=format) + if not isinstance(deserializer, functools.partial): + deserializer = _get_deserialize_callable_from_annotation(deserializer, module, rf) + return _deserialize_with_callable(deserializer, value) + + +def _failsafe_deserialize( + deserializer: typing.Any, + response: HttpResponse, + module: typing.Optional[str] = None, + rf: typing.Optional["_RestField"] = None, + format: typing.Optional[str] = None, +) -> typing.Any: + try: + return _deserialize(deserializer, response.json(), module, rf, format) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +def _failsafe_deserialize_xml( + deserializer: typing.Any, + response: HttpResponse, +) -> typing.Any: + try: + return _deserialize_xml(deserializer, response.text()) + except Exception: # pylint: disable=broad-except + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + +# pylint: disable=too-many-instance-attributes +class _RestField: + def __init__( + self, + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + is_discriminator: bool = False, + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + original_tsp_name: typing.Optional[str] = None, + ): + self._type = type + self._rest_name_input = name + self._module: typing.Optional[str] = None + self._is_discriminator = is_discriminator + self._visibility = visibility + self._is_model = False + self._is_optional = False + self._default = default + self._format = format + self._is_multipart_file_input = is_multipart_file_input + self._xml = xml if xml is not None else {} + self._original_tsp_name = original_tsp_name + + @property + def _class_type(self) -> typing.Any: + result = getattr(self._type, "args", [None])[0] + # type may be wrapped by nested functools.partial so we need to check for that + if isinstance(result, functools.partial): + return getattr(result, "args", [None])[0] + return result + + @property + def _rest_name(self) -> str: + if self._rest_name_input is None: + raise ValueError("Rest name was never set") + return self._rest_name_input + + def __get__(self, obj: Model, type=None): # pylint: disable=redefined-builtin + # by this point, type and rest_name will have a value bc we default + # them in __new__ of the Model class + # Use _data.get() directly to avoid triggering __getitem__ which clears the cache + item = obj._data.get(self._rest_name) + if item is None: + return item + if self._is_model: + return item + + # For mutable types, we want mutations to directly affect _data + # Check if we've already deserialized this value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + # Return the value from _data directly (it's been deserialized in place) + return obj._data.get(self._rest_name) + + deserialized = _deserialize(self._type, _serialize(item, self._format), rf=self) + + # For mutable types, store the deserialized value back in _data + # so mutations directly affect _data + if isinstance(deserialized, (dict, list, set)): + obj._data[self._rest_name] = deserialized + object.__setattr__(obj, cache_attr, True) # Mark as deserialized + return deserialized + + return deserialized + + def __set__(self, obj: Model, value) -> None: + # Clear the cached deserialized object when setting a new value + cache_attr = f"_deserialized_{self._rest_name}" + if hasattr(obj, cache_attr): + object.__delattr__(obj, cache_attr) + + if value is None: + # we want to wipe out entries if users set attr to None + try: + obj.__delitem__(self._rest_name) + except KeyError: + pass + return + if self._is_model: + if not _is_model(value): + value = _deserialize(self._type, value) + obj.__setitem__(self._rest_name, value) + return + obj.__setitem__(self._rest_name, _serialize(value, self._format)) + + def _get_deserialize_callable_from_annotation( + self, annotation: typing.Any + ) -> typing.Optional[typing.Callable[[typing.Any], typing.Any]]: + return _get_deserialize_callable_from_annotation(annotation, self._module, self) + + +def rest_field( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + default: typing.Any = _UNSET, + format: typing.Optional[str] = None, + is_multipart_file_input: bool = False, + xml: typing.Optional[dict[str, typing.Any]] = None, + original_tsp_name: typing.Optional[str] = None, +) -> typing.Any: + return _RestField( + name=name, + type=type, + visibility=visibility, + default=default, + format=format, + is_multipart_file_input=is_multipart_file_input, + xml=xml, + original_tsp_name=original_tsp_name, + ) + + +def rest_discriminator( + *, + name: typing.Optional[str] = None, + type: typing.Optional[typing.Callable] = None, # pylint: disable=redefined-builtin + visibility: typing.Optional[list[str]] = None, + xml: typing.Optional[dict[str, typing.Any]] = None, +) -> typing.Any: + return _RestField(name=name, type=type, is_discriminator=True, visibility=visibility, xml=xml) + + +def serialize_xml(model: Model, exclude_readonly: bool = False) -> str: + """Serialize a model to XML. + + :param Model model: The model to serialize. + :param bool exclude_readonly: Whether to exclude readonly properties. + :returns: The XML representation of the model. + :rtype: str + """ + return ET.tostring(_get_element(model, exclude_readonly), encoding="unicode") # type: ignore + + +def _get_xml_ns(meta: dict[str, typing.Any]) -> typing.Optional[str]: + """Return the XML namespace from a metadata dict, checking both 'ns' (old-style) and 'namespace' (DPG) keys. + + :param dict meta: The metadata dictionary to extract namespace from. + :returns: The namespace string if 'ns' or 'namespace' key is present, None otherwise. + :rtype: str or None + """ + ns = meta.get("ns") + if ns is None: + ns = meta.get("namespace") + return ns + + +def _resolve_xml_ns( + prop_meta: dict[str, typing.Any], model_meta: typing.Optional[dict[str, typing.Any]] = None +) -> typing.Optional[str]: + """Resolve XML namespace for a property, falling back to model namespace when appropriate. + + Checks the property metadata first; if no namespace is found and the model does not declare + an explicit prefix, falls back to the model-level namespace. + + :param dict prop_meta: The property metadata dictionary. + :param dict model_meta: The model metadata dictionary, used as fallback. + :returns: The resolved namespace string, or None. + :rtype: str or None + """ + ns = _get_xml_ns(prop_meta) + if ns is None and model_meta is not None and not model_meta.get("prefix"): + ns = _get_xml_ns(model_meta) + return ns + + +def _set_xml_attribute(element: ET.Element, name: str, value: typing.Any, prop_meta: dict[str, typing.Any]) -> None: + """Set an XML attribute on an element, handling namespace prefix registration. + + :param ET.Element element: The element to set the attribute on. + :param str name: The default attribute name (wire name). + :param any value: The attribute value. + :param dict prop_meta: The property metadata dictionary. + """ + xml_name = prop_meta.get("name", name) + _attr_ns = _get_xml_ns(prop_meta) + if _attr_ns: + _attr_prefix = prop_meta.get("prefix") + if _attr_prefix: + _safe_register_namespace(_attr_prefix, _attr_ns) + xml_name = "{" + _attr_ns + "}" + xml_name + element.set(xml_name, _get_primitive_type_value(value)) + + +def _get_element( + o: typing.Any, + exclude_readonly: bool = False, + parent_meta: typing.Optional[dict[str, typing.Any]] = None, + wrapped_element: typing.Optional[ET.Element] = None, +) -> typing.Union[ET.Element, list[ET.Element]]: + if _is_model(o): + model_meta = getattr(o, "_xml", {}) + + # if prop is a model, then use the prop element directly, else generate a wrapper of model + if wrapped_element is None: + # When serializing as an array item (parent_meta is set), check if the parent has an + # explicit itemsName. This ensures correct element names for unwrapped arrays (where + # the element tag is the property/items name, not the model type name). + _items_name = parent_meta.get("itemsName") if parent_meta is not None else None + element_name = _items_name if _items_name else (model_meta.get("name") or o.__class__.__name__) + _model_ns = _get_xml_ns(model_meta) + wrapped_element = _create_xml_element( + element_name, + model_meta.get("prefix"), + _model_ns, + ) + + readonly_props = [] + if exclude_readonly: + readonly_props = [p._rest_name for p in o._attr_to_rest_field.values() if _is_readonly(p)] + + for k, v in o.items(): + # do not serialize readonly properties + if exclude_readonly and k in readonly_props: + continue + + prop_rest_field = _get_rest_field(o._attr_to_rest_field, k) + if prop_rest_field: + prop_meta = getattr(prop_rest_field, "_xml").copy() + # use the wire name as xml name if no specific name is set + if prop_meta.get("name") is None: + prop_meta["name"] = k + else: + # additional properties will not have rest field, use the wire name as xml name + prop_meta = {"name": k} + + # Propagate model namespace to properties only for old-style "ns"-keyed models. + # DPG-generated models use the "namespace" key and explicitly declare namespace on + # each property that needs it, so propagation is intentionally skipped for them. + if prop_meta.get("ns") is None and model_meta.get("ns"): + prop_meta["ns"] = model_meta.get("ns") + prop_meta["prefix"] = model_meta.get("prefix") + + if prop_meta.get("unwrapped", False): + # unwrapped could only set on array + wrapped_element.extend(_get_element(v, exclude_readonly, prop_meta)) + elif prop_meta.get("text", False): + # text could only set on primitive type + wrapped_element.text = _get_primitive_type_value(v) + elif prop_meta.get("attribute", False): + _set_xml_attribute(wrapped_element, k, v, prop_meta) + else: + # other wrapped prop element + wrapped_element.append(_get_wrapped_element(v, exclude_readonly, prop_meta)) + return wrapped_element + if isinstance(o, list): + return [_get_element(x, exclude_readonly, parent_meta) for x in o] # type: ignore + if isinstance(o, dict): + result = [] + _dict_ns = _get_xml_ns(parent_meta) if parent_meta else None + for k, v in o.items(): + result.append( + _get_wrapped_element( + v, + exclude_readonly, + { + "name": k, + "ns": _dict_ns, + "prefix": parent_meta.get("prefix") if parent_meta else None, + }, + ) + ) + return result + + # primitive case need to create element based on parent_meta + if parent_meta: + _items_ns = parent_meta.get("itemsNs") + if _items_ns is None: + _items_ns = _get_xml_ns(parent_meta) + return _get_wrapped_element( + o, + exclude_readonly, + { + "name": parent_meta.get("itemsName", parent_meta.get("name")), + "prefix": parent_meta.get("itemsPrefix", parent_meta.get("prefix")), + "ns": _items_ns, + }, + ) + + raise ValueError("Could not serialize value into xml: " + o) + + +def _get_wrapped_element( + v: typing.Any, + exclude_readonly: bool, + meta: typing.Optional[dict[str, typing.Any]], +) -> ET.Element: + _meta_ns = _get_xml_ns(meta) if meta else None + wrapped_element = _create_xml_element( + meta.get("name") if meta else None, meta.get("prefix") if meta else None, _meta_ns + ) + if isinstance(v, (dict, list)): + wrapped_element.extend(_get_element(v, exclude_readonly, meta)) + elif _is_model(v): + _get_element(v, exclude_readonly, meta, wrapped_element) + else: + wrapped_element.text = _get_primitive_type_value(v) + return wrapped_element # type: ignore[no-any-return] + + +def _get_primitive_type_value(v) -> str: + if v is True: + return "true" + if v is False: + return "false" + if isinstance(v, _Null): + return "" + return str(v) + + +def _safe_register_namespace(prefix: str, ns: str) -> None: + """Register an XML namespace prefix, handling reserved prefix patterns. + + Some prefixes (e.g. 'ns2') match Python's reserved 'ns\\d+' pattern used for + auto-generated prefixes, causing register_namespace to raise ValueError. + Falls back to directly registering in the internal namespace map. + + :param str prefix: The namespace prefix to register. + :param str ns: The namespace URI. + """ + try: + ET.register_namespace(prefix, ns) + except ValueError: + _ns_map = getattr(ET, "_namespace_map", None) + if _ns_map is not None: + _ns_map[ns] = prefix + + +def _create_xml_element( + tag: typing.Any, prefix: typing.Optional[str] = None, ns: typing.Optional[str] = None +) -> ET.Element: + if prefix and ns: + _safe_register_namespace(prefix, ns) + if ns: + return ET.Element("{" + ns + "}" + tag) + return ET.Element(tag) + + +def _deserialize_xml( + deserializer: typing.Any, + value: str, +) -> typing.Any: + element = ET.fromstring(value) # nosec + return _deserialize(deserializer, element) + + +def _convert_element(e: ET.Element): + # dict case + if len(e.attrib) > 0 or len({child.tag for child in e}) > 1: + dict_result: dict[str, typing.Any] = {} + for child in e: + if dict_result.get(child.tag) is not None: + if isinstance(dict_result[child.tag], list): + dict_result[child.tag].append(_convert_element(child)) + else: + dict_result[child.tag] = [dict_result[child.tag], _convert_element(child)] + else: + dict_result[child.tag] = _convert_element(child) + dict_result.update(e.attrib) + return dict_result + # array case + if len(e) > 0: + array_result: list[typing.Any] = [] + for child in e: + array_result.append(_convert_element(child)) + return array_result + # primitive case + return e.text diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py index 6da830e0cf4a..81ec1de5922b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_utils/serialization.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- 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 a1e5cf8bc16e..cb6972ad9e00 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_version.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_version.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py index ea3d43b85a90..cb8e2cc5fd4e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -12,7 +12,7 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._data_migration_management_client import DataMigrationManagementClient # type: ignore +from ._client import DataMigrationManagementClient # type: ignore try: from ._patch import __all__ as _patch_all diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_client.py similarity index 89% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_client.py index 491251cf8bef..9e6b6b2bed21 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_data_migration_management_client.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_client.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -17,7 +17,6 @@ from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from azure.mgmt.core.tools import get_arm_endpoints -from .. import models as _models from .._utils.serialization import Deserializer, Serializer from ._configuration import DataMigrationManagementClientConfiguration from .operations import ( @@ -44,16 +43,29 @@ class DataMigrationManagementClient: # pylint: disable=too-many-instance-attributes - """Data Migration Client. + """The SQL Migration management API provides a RESTful set of web APIs that allow users to migrate + their SQL Server databases to Azure SQL. - :ivar database_migrations_mongo_to_cosmos_db_ru_mongo: - DatabaseMigrationsMongoToCosmosDbRUMongoOperations operations - :vartype database_migrations_mongo_to_cosmos_db_ru_mongo: - azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.datamigration.aio.operations.Operations :ivar database_migrations_mongo_to_cosmos_dbv_core_mongo: DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations operations :vartype database_migrations_mongo_to_cosmos_dbv_core_mongo: azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations + :ivar migration_services: MigrationServicesOperations operations + :vartype migration_services: + azure.mgmt.datamigration.aio.operations.MigrationServicesOperations + :ivar sql_migration_services: SqlMigrationServicesOperations operations + :vartype sql_migration_services: + azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations + :ivar service_tasks: ServiceTasksOperations operations + :vartype service_tasks: azure.mgmt.datamigration.aio.operations.ServiceTasksOperations + :ivar projects: ProjectsOperations operations + :vartype projects: azure.mgmt.datamigration.aio.operations.ProjectsOperations + :ivar database_migrations_mongo_to_cosmos_db_ru_mongo: + DatabaseMigrationsMongoToCosmosDbRUMongoOperations operations + :vartype database_migrations_mongo_to_cosmos_db_ru_mongo: + azure.mgmt.datamigration.aio.operations.DatabaseMigrationsMongoToCosmosDbRUMongoOperations :ivar database_migrations_sql_db: DatabaseMigrationsSqlDbOperations operations :vartype database_migrations_sql_db: azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlDbOperations @@ -63,39 +75,28 @@ class DataMigrationManagementClient: # pylint: disable=too-many-instance-attrib :ivar database_migrations_sql_vm: DatabaseMigrationsSqlVmOperations operations :vartype database_migrations_sql_vm: azure.mgmt.datamigration.aio.operations.DatabaseMigrationsSqlVmOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.datamigration.aio.operations.Operations - :ivar migration_services: MigrationServicesOperations operations - :vartype migration_services: - azure.mgmt.datamigration.aio.operations.MigrationServicesOperations - :ivar sql_migration_services: SqlMigrationServicesOperations operations - :vartype sql_migration_services: - azure.mgmt.datamigration.aio.operations.SqlMigrationServicesOperations - :ivar resource_skus: ResourceSkusOperations operations - :vartype resource_skus: azure.mgmt.datamigration.aio.operations.ResourceSkusOperations :ivar services: ServicesOperations operations :vartype services: azure.mgmt.datamigration.aio.operations.ServicesOperations :ivar tasks: TasksOperations operations :vartype tasks: azure.mgmt.datamigration.aio.operations.TasksOperations - :ivar service_tasks: ServiceTasksOperations operations - :vartype service_tasks: azure.mgmt.datamigration.aio.operations.ServiceTasksOperations - :ivar projects: ProjectsOperations operations - :vartype projects: azure.mgmt.datamigration.aio.operations.ProjectsOperations - :ivar usages: UsagesOperations operations - :vartype usages: azure.mgmt.datamigration.aio.operations.UsagesOperations :ivar files: FilesOperations operations :vartype files: azure.mgmt.datamigration.aio.operations.FilesOperations - :param credential: Credential needed for the client to connect to Azure. Required. + :ivar resource_skus: ResourceSkusOperations operations + :vartype resource_skus: azure.mgmt.datamigration.aio.operations.ResourceSkusOperations + :ivar usages: UsagesOperations operations + :vartype usages: azure.mgmt.datamigration.aio.operations.UsagesOperations + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Subscription ID that identifies an Azure subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str - :param base_url: Service URL. Default value is None. + :param base_url: Service host. Default value is None. :type base_url: str :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-09-01-preview". Default value is "2025-09-01-preview". Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -110,6 +111,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: + _endpoint = "{endpoint}" _cloud = cloud_setting or settings.current.azure_cloud # type: ignore _endpoints = get_arm_endpoints(_cloud) if not base_url: @@ -118,6 +120,7 @@ def __init__( self._config = DataMigrationManagementClientConfiguration( credential=credential, subscription_id=subscription_id, + base_url=cast(str, base_url), cloud_setting=cloud_setting, credential_scopes=credential_scopes, **kwargs @@ -142,44 +145,43 @@ def __init__( self._config.http_logging_policy, ] self._client: AsyncARMPipelineClient = AsyncARMPipelineClient( - base_url=cast(str, base_url), policies=_policies, **kwargs + base_url=cast(str, _endpoint), policies=_policies, **kwargs ) - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) + self._serialize = Serializer() + self._deserialize = Deserializer() self._serialize.client_side_validation = False - self.database_migrations_mongo_to_cosmos_db_ru_mongo = DatabaseMigrationsMongoToCosmosDbRUMongoOperations( + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.database_migrations_mongo_to_cosmos_dbv_core_mongo = DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_mongo_to_cosmos_dbv_core_mongo = DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations( + self.migration_services = MigrationServicesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_sql_db = DatabaseMigrationsSqlDbOperations( + self.sql_migration_services = SqlMigrationServicesOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_sql_mi = DatabaseMigrationsSqlMiOperations( + self.service_tasks = ServiceTasksOperations(self._client, self._config, self._serialize, self._deserialize) + self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize) + self.database_migrations_mongo_to_cosmos_db_ru_mongo = DatabaseMigrationsMongoToCosmosDbRUMongoOperations( self._client, self._config, self._serialize, self._deserialize ) - self.database_migrations_sql_vm = DatabaseMigrationsSqlVmOperations( + self.database_migrations_sql_db = DatabaseMigrationsSqlDbOperations( self._client, self._config, self._serialize, self._deserialize ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.migration_services = MigrationServicesOperations( + self.database_migrations_sql_mi = DatabaseMigrationsSqlMiOperations( self._client, self._config, self._serialize, self._deserialize ) - self.sql_migration_services = SqlMigrationServicesOperations( + self.database_migrations_sql_vm = DatabaseMigrationsSqlVmOperations( self._client, self._config, self._serialize, self._deserialize ) - self.resource_skus = ResourceSkusOperations(self._client, self._config, self._serialize, self._deserialize) self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize) self.tasks = TasksOperations(self._client, self._config, self._serialize, self._deserialize) - self.service_tasks = ServiceTasksOperations(self._client, self._config, self._serialize, self._deserialize) - self.projects = ProjectsOperations(self._client, self._config, self._serialize, self._deserialize) - self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize) self.files = FilesOperations(self._client, self._config, self._serialize, self._deserialize) + self.resource_skus = ResourceSkusOperations(self._client, self._config, self._serialize, self._deserialize) + self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize) - def _send_request( + def send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. @@ -187,7 +189,7 @@ def _send_request( >>> from azure.core.rest import HttpRequest >>> request = HttpRequest("GET", "https://www.example.org/") - >>> response = await client._send_request(request) + >>> response = await client.send_request(request) For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request @@ -200,7 +202,11 @@ def _send_request( """ request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py index 5acb53c90da4..e71af9d768d2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_configuration.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -24,15 +24,18 @@ class DataMigrationManagementClientConfiguration: # pylint: disable=too-many-in Note that all parameters used to create this instance are saved as instance attributes. - :param credential: Credential needed for the client to connect to Azure. Required. + :param credential: Credential used to authenticate requests to the service. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Subscription ID that identifies an Azure subscription. Required. + :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. :type subscription_id: str + :param base_url: Service host. Default value is "https://management.azure.com". + :type base_url: str :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: Api Version. Default value is "2025-09-01-preview". Note that overriding - this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2025-09-01-preview". Default value is "2025-09-01-preview". Note that overriding this default + value may result in unsupported behavior. :paramtype api_version: str """ @@ -40,6 +43,7 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, + base_url: str = "https://management.azure.com", cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: @@ -52,6 +56,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id + self.base_url = base_url self.cloud_setting = cloud_setting self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_patch.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_patch.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/__init__.py index 5ca18c11cedc..5e22fc1ea415 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/__init__.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,42 +12,42 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._database_migrations_mongo_to_cosmos_db_ru_mongo_operations import DatabaseMigrationsMongoToCosmosDbRUMongoOperations # type: ignore -from ._database_migrations_mongo_to_cosmos_dbv_core_mongo_operations import DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations # type: ignore -from ._database_migrations_sql_db_operations import DatabaseMigrationsSqlDbOperations # type: ignore -from ._database_migrations_sql_mi_operations import DatabaseMigrationsSqlMiOperations # type: ignore -from ._database_migrations_sql_vm_operations import DatabaseMigrationsSqlVmOperations # type: ignore from ._operations import Operations # type: ignore -from ._migration_services_operations import MigrationServicesOperations # type: ignore -from ._sql_migration_services_operations import SqlMigrationServicesOperations # type: ignore -from ._resource_skus_operations import ResourceSkusOperations # type: ignore -from ._services_operations import ServicesOperations # type: ignore -from ._tasks_operations import TasksOperations # type: ignore -from ._service_tasks_operations import ServiceTasksOperations # type: ignore -from ._projects_operations import ProjectsOperations # type: ignore -from ._usages_operations import UsagesOperations # type: ignore -from ._files_operations import FilesOperations # type: ignore +from ._operations import DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations # type: ignore +from ._operations import MigrationServicesOperations # type: ignore +from ._operations import SqlMigrationServicesOperations # type: ignore +from ._operations import ServiceTasksOperations # type: ignore +from ._operations import ProjectsOperations # type: ignore +from ._operations import DatabaseMigrationsMongoToCosmosDbRUMongoOperations # type: ignore +from ._operations import DatabaseMigrationsSqlDbOperations # type: ignore +from ._operations import DatabaseMigrationsSqlMiOperations # type: ignore +from ._operations import DatabaseMigrationsSqlVmOperations # type: ignore +from ._operations import ServicesOperations # type: ignore +from ._operations import TasksOperations # type: ignore +from ._operations import FilesOperations # type: ignore +from ._operations import ResourceSkusOperations # type: ignore +from ._operations import UsagesOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "DatabaseMigrationsMongoToCosmosDbRUMongoOperations", + "Operations", "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations", + "MigrationServicesOperations", + "SqlMigrationServicesOperations", + "ServiceTasksOperations", + "ProjectsOperations", + "DatabaseMigrationsMongoToCosmosDbRUMongoOperations", "DatabaseMigrationsSqlDbOperations", "DatabaseMigrationsSqlMiOperations", "DatabaseMigrationsSqlVmOperations", - "Operations", - "MigrationServicesOperations", - "SqlMigrationServicesOperations", - "ResourceSkusOperations", "ServicesOperations", "TasksOperations", - "ServiceTasksOperations", - "ProjectsOperations", - "UsagesOperations", "FilesOperations", + "ResourceSkusOperations", + "UsagesOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py deleted file mode 100644 index 10ecafeb2d79..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py +++ /dev/null @@ -1,564 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._database_migrations_mongo_to_cosmos_db_ru_mongo_operations import ( - build_create_request, - build_delete_request, - build_get_for_scope_request, - build_get_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DatabaseMigrationsMongoToCosmosDbRUMongoOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`database_migrations_mongo_to_cosmos_db_ru_mongo` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any - ) -> _models.DatabaseMigrationCosmosDbMongo: - """Get Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :return: DatabaseMigrationCosmosDbMongo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationCosmosDbMongo") - - _request = build_create_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: _models.DatabaseMigrationCosmosDbMongo, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationCosmosDbMongo or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationCosmosDbMongo or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Is either a - DatabaseMigrationCosmosDbMongo type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationCosmosDbMongo or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_for_scope( - self, resource_group_name: str, target_resource_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: - """Get Database Migration resources for the scope. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :return: An iterator like instance of either DatabaseMigrationCosmosDbMongo or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongoListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_get_for_scope_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongoListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py deleted file mode 100644 index 04bcd3e5cdd6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py +++ /dev/null @@ -1,564 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._database_migrations_mongo_to_cosmos_dbv_core_mongo_operations import ( - build_create_request, - build_delete_request, - build_get_for_scope_request, - build_get_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`database_migrations_mongo_to_cosmos_dbv_core_mongo` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any - ) -> _models.DatabaseMigrationCosmosDbMongo: - """Get Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :return: DatabaseMigrationCosmosDbMongo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationCosmosDbMongo") - - _request = build_create_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: _models.DatabaseMigrationCosmosDbMongo, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationCosmosDbMongo or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationCosmosDbMongo or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Is either a - DatabaseMigrationCosmosDbMongo type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationCosmosDbMongo or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_for_scope( - self, resource_group_name: str, target_resource_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: - """Get Database Migration resources for the scope. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :return: An iterator like instance of either DatabaseMigrationCosmosDbMongo or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongoListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_get_for_scope_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongoListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py deleted file mode 100644 index 10b5f3b8bafd..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_db_operations.py +++ /dev/null @@ -1,880 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._database_migrations_sql_db_operations import ( - build_cancel_request, - build_create_or_update_request, - build_delete_request, - build_get_request, - build_retry_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DatabaseMigrationsSqlDbOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`database_migrations_sql_db` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.DatabaseMigrationSqlDb: - """Retrieve the Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_id: Optional migration operation ID. If this is provided, then - details of migration operation for that ID are retrieved. If not provided (default), then - details related to most recent or current operation are retrieved. Default value is None. - :type migration_operation_id: str - :param expand: Complete migration details be included in the response. Default value is None. - :type expand: str - :return: DatabaseMigrationSqlDb or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - migration_operation_id=migration_operation_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationSqlDb", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlDb, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationSqlDb") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: _models.DatabaseMigrationSqlDb, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of Sql Db migration resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of Sql Db migration resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlDb, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of Sql Db migration resource. Is either a DatabaseMigrationSqlDb - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlDb", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationSqlDb].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationSqlDb]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _cancel_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cancel_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_cancel( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_cancel( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_cancel( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. Is - either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._cancel_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _retry_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(migration_operation_input, (IOBase, bytes)): - _content = migration_operation_input - else: - _json = self._serialize.body(migration_operation_input, "MigrationOperationInput") - - _request = build_retry_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_retry( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: - """Retry on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_input: Required migration operation ID for which retry will be - initiated. Required. - :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_retry( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: - """Retry on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_input: Required migration operation ID for which retry will be - initiated. Required. - :type migration_operation_input: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_retry( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: - """Retry on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_input: Required migration operation ID for which retry will be - initiated. Is either a MigrationOperationInput type or a IO[bytes] type. Required. - :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlDb or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._retry_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - migration_operation_input=migration_operation_input, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlDb", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationSqlDb].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationSqlDb]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py deleted file mode 100644 index 6e2ae8a8fe02..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_mi_operations.py +++ /dev/null @@ -1,875 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._database_migrations_sql_mi_operations import ( - build_cancel_request, - build_create_or_update_request, - build_cutover_request, - build_delete_request, - build_get_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DatabaseMigrationsSqlMiOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`database_migrations_sql_mi` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.DatabaseMigrationSqlMi: - """Retrieve the specified database migration for a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_id: Optional migration operation ID. If this is provided, then - details of migration operation for that ID are retrieved. If not provided (default), then - details related to most recent or current operation are retrieved. Default value is None. - :type migration_operation_id: str - :param expand: Complete migration details be included in the response. Default value is None. - :type expand: str - :return: DatabaseMigrationSqlMi or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - migration_operation_id=migration_operation_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationSqlMi", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlMi, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationSqlMi") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: _models.DatabaseMigrationSqlMi, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: - """Create a new database migration to a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlMi or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: - """Create a new database migration to a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlMi or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlMi, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: - """Create a new database migration to a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Is either a DatabaseMigrationSqlMi - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlMi or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlMi", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationSqlMi]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlMi or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlMi", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationSqlMi]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _cancel_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cancel_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_cancel( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop in-progress database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_cancel( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop in-progress database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_cancel( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop in-progress database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. Is - either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._cancel_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _cutover_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cutover_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_cutover( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cutover will be initiated. - Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_cutover( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cutover will be initiated. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_cutover( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cutover will be initiated. Is - either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._cutover_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py deleted file mode 100644 index 625feaef1605..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_database_migrations_sql_vm_operations.py +++ /dev/null @@ -1,869 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload - -from azure.core import AsyncPipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._database_migrations_sql_vm_operations import ( - build_cancel_request, - build_create_or_update_request, - build_cutover_request, - build_delete_request, - build_get_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class DatabaseMigrationsSqlVmOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`database_migrations_sql_vm` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.DatabaseMigrationSqlVm: - """Retrieve the specified database migration for a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_id: Optional migration operation ID. If this is provided, then - details of migration operation for that ID are retrieved. If not provided (default), then - details related to most recent or current operation are retrieved. Default value is None. - :type migration_operation_id: str - :param expand: Complete migration details be included in the response. Default value is None. - :type expand: str - :return: DatabaseMigrationSqlVm or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - migration_operation_id=migration_operation_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationSqlVm", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlVm, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationSqlVm") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: _models.DatabaseMigrationSqlVm, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: - """Create a new database migration to a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlVm or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: - """Create a new database migration to a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlVm or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlVm, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: - """Create a new database migration to a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Is either a DatabaseMigrationSqlVm - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlVm or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlVm", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationSqlVm]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of AsyncLROPoller that returns either DatabaseMigrationSqlVm or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlVm", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DatabaseMigrationSqlVm]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _cancel_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cancel_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_cancel( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop in-progress database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_cancel( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop in-progress database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_cancel( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop in-progress database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Is either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._cancel_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _cutover_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cutover_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_cutover( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_cutover( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_cutover( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Is either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._cutover_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py deleted file mode 100644 index 3f0668bed24f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_files_operations.py +++ /dev/null @@ -1,743 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._files_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_read_request, - build_read_write_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class FilesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`files` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, group_name: str, service_name: str, project_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.ProjectFile"]: - """Get files in a project. - - The project resource is a nested resource representing a stored migration project. This method - returns a list of files owned by a project resource. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :return: An iterator like instance of either ProjectFile or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ProjectFile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FileList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("FileList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> _models.ProjectFile: - """Get file information. - - The files resource is a nested, proxy-only resource representing a file stored under the - project resource. This method retrieves information about a file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: _models.ProjectFile, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Create a file resource. - - The PUT method creates a new file or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Create a file resource. - - The PUT method creates a new file or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: Union[_models.ProjectFile, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectFile: - """Create a file resource. - - The PUT method creates a new file or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Is either a ProjectFile type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or IO[bytes] - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectFile") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> None: - """Delete file. - - This method deletes a file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: _models.ProjectFile, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Update a file. - - This method updates an existing file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Update a file. - - This method updates an existing file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: Union[_models.ProjectFile, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectFile: - """Update a file. - - This method updates an existing file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Is either a ProjectFile type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or IO[bytes] - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectFile") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def read( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> _models.FileStorageInfo: - """Request storage information for downloading the file content. - - This method is used for requesting storage information using which contents of the file can be - downloaded. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: FileStorageInfo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) - - _request = build_read_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def read_write( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> _models.FileStorageInfo: - """Request information for reading and writing file content. - - This method is used for requesting information for reading and writing the file content. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: FileStorageInfo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) - - _request = build_read_write_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py deleted file mode 100644 index 0bab2c19bd61..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_migration_services_operations.py +++ /dev/null @@ -1,894 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._migration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_list_migrations_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class MigrationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`migration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, migration_service_name: str, **kwargs: Any - ) -> _models.MigrationService: - """Retrieve the Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :return: MigrationService or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.MigrationService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MigrationService", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: _models.MigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Is either a MigrationService type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationService or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, migration_service_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, migration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationServiceUpdate") - - _request = build_update_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: _models.MigrationServiceUpdate, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Is either a MigrationServiceUpdate - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.MigrationService"]: - """Retrieve all migration services in the resource group. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either MigrationService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MigrationServiceListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("MigrationServiceListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.MigrationService"]: - """Retrieve all migration services in the subscriptions. - - :return: An iterator like instance of either MigrationService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MigrationServiceListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("MigrationServiceListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_migrations( - self, resource_group_name: str, migration_service_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DatabaseMigrationBase"]: - """Retrieve the List of database migrations attached to the service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :return: An iterator like instance of either DatabaseMigrationBase or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationBaseListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_migrations_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationBaseListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py index 102f1d7f45d7..123da30bb302 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_operations.py @@ -1,12 +1,15 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import AsyncPipelineClient @@ -17,21 +20,110 @@ ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.pipeline import PipelineResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models +from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer -from ...operations._operations import build_list_request +from ...operations._operations import ( + build_database_migrations_mongo_to_cosmos_db_ru_mongo_create_request, + build_database_migrations_mongo_to_cosmos_db_ru_mongo_delete_request, + build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope_request, + build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_request, + build_database_migrations_mongo_to_cosmos_dbv_core_mongo_create_request, + build_database_migrations_mongo_to_cosmos_dbv_core_mongo_delete_request, + build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope_request, + build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_request, + build_database_migrations_sql_db_cancel_request, + build_database_migrations_sql_db_create_or_update_request, + build_database_migrations_sql_db_delete_request, + build_database_migrations_sql_db_get_request, + build_database_migrations_sql_db_retry_request, + build_database_migrations_sql_mi_cancel_request, + build_database_migrations_sql_mi_create_or_update_request, + build_database_migrations_sql_mi_cutover_request, + build_database_migrations_sql_mi_delete_request, + build_database_migrations_sql_mi_get_request, + build_database_migrations_sql_vm_cancel_request, + build_database_migrations_sql_vm_create_or_update_request, + build_database_migrations_sql_vm_cutover_request, + build_database_migrations_sql_vm_delete_request, + build_database_migrations_sql_vm_get_request, + build_files_create_or_update_request, + build_files_delete_request, + build_files_get_request, + build_files_list_request, + build_files_read_request, + build_files_read_write_request, + build_files_update_request, + build_migration_services_create_or_update_request, + build_migration_services_delete_request, + build_migration_services_get_request, + build_migration_services_list_by_resource_group_request, + build_migration_services_list_by_subscription_request, + build_migration_services_list_migrations_request, + build_migration_services_update_request, + build_operations_list_request, + build_projects_create_or_update_request, + build_projects_delete_request, + build_projects_get_request, + build_projects_list_request, + build_projects_update_request, + build_resource_skus_list_skus_request, + build_service_tasks_cancel_request, + build_service_tasks_create_or_update_request, + build_service_tasks_delete_request, + build_service_tasks_get_request, + build_service_tasks_list_request, + build_service_tasks_update_request, + build_services_check_children_name_availability_request, + build_services_check_name_availability_request, + build_services_check_status_request, + build_services_create_or_update_request, + build_services_delete_request, + build_services_get_request, + build_services_list_by_resource_group_request, + build_services_list_request, + build_services_list_skus_request, + build_services_start_request, + build_services_stop_request, + build_services_update_request, + build_sql_migration_services_create_or_update_request, + build_sql_migration_services_delete_node_request, + build_sql_migration_services_delete_request, + build_sql_migration_services_get_request, + build_sql_migration_services_list_auth_keys_request, + build_sql_migration_services_list_by_resource_group_request, + build_sql_migration_services_list_by_subscription_request, + build_sql_migration_services_list_migrations_request, + build_sql_migration_services_list_monitoring_data_request, + build_sql_migration_services_regenerate_auth_keys_request, + build_sql_migration_services_update_request, + build_tasks_cancel_request, + build_tasks_command_request, + build_tasks_create_or_update_request, + build_tasks_delete_request, + build_tasks_get_request, + build_tasks_list_request, + build_tasks_update_request, + build_usages_list_request, +) from .._configuration import DataMigrationManagementClientConfiguration T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list @@ -45,8 +137,6 @@ class Operations: :attr:`operations` attribute. """ - models = _models - def __init__(self, *args, **kwargs) -> None: input_args = list(args) self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") @@ -58,19 +148,605 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def list(self, **kwargs: Any) -> AsyncItemPaged["_models.OperationsDefinition"]: - """Lists all of the available SQL Migration REST API operations. + """List the operations for the provider. - :return: An iterator like instance of either OperationsDefinition or the result of - cls(response) + :return: An iterator like instance of OperationsDefinition :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.OperationsDefinition] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.OperationsDefinition]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_operations_list_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.OperationsDefinition], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`database_migrations_mongo_to_cosmos_dbv_core_mongo` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any + ) -> _models.DatabaseMigrationCosmosDbMongo: + """Get Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :return: DatabaseMigrationCosmosDbMongo. The DatabaseMigrationCosmosDbMongo is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_create_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: _models.DatabaseMigrationCosmosDbMongo, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Is one of the + following types: DatabaseMigrationCosmosDbMongo, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_delete_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def get_for_scope( + self, resource_group_name: str, target_resource_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: + """Get Database Migration resources for the scope. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :return: An iterator like instance of DatabaseMigrationCosmosDbMongo + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) + cls: ClsType[List[_models.DatabaseMigrationCosmosDbMongo]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -83,12 +759,20 @@ def list(self, **kwargs: Any) -> AsyncItemPaged["_models.OperationsDefinition"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -103,16 +787,24 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request async def extract_data(pipeline_response): - deserialized = self._deserialize("OperationListResult", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigrationCosmosDbMongo], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) async def get_next(next_link=None): _request = prepare_request(next_link) @@ -125,7 +817,11160 @@ async def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class MigrationServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`migration_services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, migration_service_name: str, **kwargs: Any + ) -> _models.MigrationService: + """Retrieve the Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :return: MigrationService. The MigrationService is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.MigrationService + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) + + _request = build_migration_services_get_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.MigrationService, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_migration_services_create_or_update_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: _models.MigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Is one of the following types: + MigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationService or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.MigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.MigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.MigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_migration_services_update_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: _models.MigrationServiceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Is one of the following types: + MigrationServiceUpdate, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.MigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.MigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.MigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, migration_service_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_migration_services_delete_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, migration_service_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.MigrationService"]: + """Retrieve all migration services in the resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of MigrationService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.MigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_migration_services_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.MigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.MigrationService"]: + """Retrieve all migration services in the subscriptions. + + :return: An iterator like instance of MigrationService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.MigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_migration_services_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.MigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_migrations( + self, resource_group_name: str, migration_service_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DatabaseMigrationBase"]: + """Retrieve the List of database migrations attached to the service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :return: An iterator like instance of DatabaseMigrationBase + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigrationBase]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_migration_services_list_migrations_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigrationBase], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class SqlMigrationServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`sql_migration_services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> _models.SqlMigrationService: + """Retrieve the Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: SqlMigrationService. The SqlMigrationService is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.SqlMigrationService + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_get_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SqlMigrationService, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_create_or_update_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.SqlMigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + SqlMigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SqlMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SqlMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SqlMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_update_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if response.status_code == 201: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.SqlMigrationServiceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + SqlMigrationServiceUpdate, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns SqlMigrationService. The + SqlMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.SqlMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.SqlMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.SqlMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_delete_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.SqlMigrationService"]: + """Retrieve all SQL migration services in the resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of SqlMigrationService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SqlMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_sql_migration_services_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SqlMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.SqlMigrationService"]: + """Retrieve all SQL migration services in the subscriptions. + + :return: An iterator like instance of SqlMigrationService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SqlMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_sql_migration_services_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SqlMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def list_auth_keys( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> _models.AuthenticationKeys: + """Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: AuthenticationKeys. The AuthenticationKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.AuthenticationKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AuthenticationKeys] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_list_auth_keys_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AuthenticationKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.RegenAuthKeys, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.RegenAuthKeys, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + RegenAuthKeys, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys or JSON or IO[bytes] + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.RegenAuthKeys] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_regenerate_auth_keys_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RegenAuthKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.DeleteNode, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DeleteNode + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.DeleteNode, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + DeleteNode, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DeleteNode or JSON or IO[bytes] + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DeleteNode] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_delete_node_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DeleteNode, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_migrations( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DatabaseMigration"]: + """Retrieve the List of database migrations attached to the service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: An iterator like instance of DatabaseMigration + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigration] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigration]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_sql_migration_services_list_migrations_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigration], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def list_monitoring_data( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeMonitoringData: + """Retrieve the registered Integration Runtime nodes and their monitoring data for a given + Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: IntegrationRuntimeMonitoringData. The IntegrationRuntimeMonitoringData is compatible + with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.IntegrationRuntimeMonitoringData + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_list_monitoring_data_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeMonitoringData, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ServiceTasksOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`service_tasks` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, group_name: str, service_name: str, task_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.ProjectTask: + """Get service task information. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The GET method retrieves information about a service task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword expand: Expand the response. Default value is None. + :paramtype expand: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_service_tasks_get_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_service_tasks_create_or_update_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_service_tasks_update_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, + group_name: str, + service_name: str, + task_name: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The DELETE method deletes a service task, canceling it first if it's + running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_service_tasks_delete_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, group_name: str, service_name: str, *, task_type: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.ProjectTask"]: + """Get service level tasks for a service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of service level tasks owned by a service + resource. Some tasks may have a status of Unknown, which indicates that an error occurred while + querying the status of that task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :keyword task_type: Filter tasks by task type. Default value is None. + :paramtype task_type: str + :return: An iterator like instance of ProjectTask + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ProjectTask] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ProjectTask]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_service_tasks_list_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + task_type=task_type, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ProjectTask], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def cancel(self, group_name: str, service_name: str, task_name: str, **kwargs: Any) -> _models.ProjectTask: + """Cancel a service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. This method cancels a service task if it's currently queued or running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_service_tasks_cancel_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ProjectsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`projects` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, group_name: str, service_name: str, project_name: str, **kwargs: Any) -> _models.Project: + """Get project information. + + The project resource is a nested resource representing a stored migration project. The GET + method retrieves information about a project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Project] = kwargs.pop("cls", None) + + _request = build_projects_get_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Project, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: _models.Project, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: ~azure.mgmt.datamigration.models.Project + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: Union[_models.Project, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Is one of the following types: Project, JSON, + IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.Project or JSON or IO[bytes] + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Project] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_projects_create_or_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Project, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: _models.Project, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: ~azure.mgmt.datamigration.models.Project + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: Union[_models.Project, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Is one of the following types: Project, JSON, + IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.Project or JSON or IO[bytes] + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Project] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_projects_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Project, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, + group_name: str, + service_name: str, + project_name: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete project. + + The project resource is a nested resource representing a stored migration project. The DELETE + method deletes a project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_projects_delete_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Project"]: + """Get projects in a service. + + The project resource is a nested resource representing a stored migration project. This method + returns a list of projects owned by a service resource. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An iterator like instance of Project + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.Project] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Project]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_projects_list_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Project], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DatabaseMigrationsMongoToCosmosDbRUMongoOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`database_migrations_mongo_to_cosmos_db_ru_mongo` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any + ) -> _models.DatabaseMigrationCosmosDbMongo: + """Get Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :return: DatabaseMigrationCosmosDbMongo. The DatabaseMigrationCosmosDbMongo is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_create_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: _models.DatabaseMigrationCosmosDbMongo, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Is one of the + following types: DatabaseMigrationCosmosDbMongo, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or JSON or + IO[bytes] + :return: An instance of AsyncLROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationCosmosDbMongo]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_delete_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def get_for_scope( + self, resource_group_name: str, target_resource_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: + """Get Database Migration resources for the scope. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :return: An iterator like instance of DatabaseMigrationCosmosDbMongo + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigrationCosmosDbMongo]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigrationCosmosDbMongo], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class DatabaseMigrationsSqlDbOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`database_migrations_sql_db` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.DatabaseMigrationSqlDb: + """Retrieve the Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword migration_operation_id: Optional migration operation ID. If this is provided, then + details of migration operation for that ID are retrieved. If not provided (default), then + details related to most recent or current operation are retrieved. Default value is None. + :paramtype migration_operation_id: str + :keyword expand: Complete migration details be included in the response. Default value is None. + :paramtype expand: str + :return: DatabaseMigrationSqlDb. The DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_db_get_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + migration_operation_id=migration_operation_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationSqlDb, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlDb, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_db_create_or_update_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: _models.DatabaseMigrationSqlDb, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlDb, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Is one of the following types: + DatabaseMigrationSqlDb, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlDb, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationSqlDb].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationSqlDb]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_db_delete_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _cancel_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_db_cancel_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. Is one + of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._cancel_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _retry_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(migration_operation_input, (IOBase, bytes)): + _content = migration_operation_input + else: + _content = json.dumps(migration_operation_input, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_db_retry_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Required. + :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Required. + :type migration_operation_input: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Required. + :type migration_operation_input: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Is one of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput or + JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._retry_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + migration_operation_input=migration_operation_input, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class DatabaseMigrationsSqlMiOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`database_migrations_sql_mi` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.DatabaseMigrationSqlMi: + """Retrieve the specified database migration for a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword migration_operation_id: Optional migration operation ID. If this is provided, then + details of migration operation for that ID are retrieved. If not provided (default), then + details related to most recent or current operation are retrieved. Default value is None. + :paramtype migration_operation_id: str + :keyword expand: Complete migration details be included in the response. Default value is None. + :paramtype expand: str + :return: DatabaseMigrationSqlMi. The DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_mi_get_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + migration_operation_id=migration_operation_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationSqlMi, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlMi, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_mi_create_or_update_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: _models.DatabaseMigrationSqlMi, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlMi, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + DatabaseMigrationSqlMi, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlMi, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationSqlMi]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_mi_delete_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlMi]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlMi, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationSqlMi]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _cancel_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_mi_cancel_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. Is one + of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._cancel_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _cutover_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_mi_cutover_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. + Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. Is one + of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._cutover_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class DatabaseMigrationsSqlVmOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`database_migrations_sql_vm` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.DatabaseMigrationSqlVm: + """Retrieve the specified database migration for a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword migration_operation_id: Optional migration operation ID. If this is provided, then + details of migration operation for that ID are retrieved. If not provided (default), then + details related to most recent or current operation are retrieved. Default value is None. + :paramtype migration_operation_id: str + :keyword expand: Complete migration details be included in the response. Default value is None. + :paramtype expand: str + :return: DatabaseMigrationSqlVm. The DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_vm_get_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + migration_operation_id=migration_operation_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationSqlVm, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlVm, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_vm_create_or_update_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: _models.DatabaseMigrationSqlVm, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlVm, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + DatabaseMigrationSqlVm, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlVm, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationSqlVm]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_vm_delete_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.DatabaseMigrationSqlVm]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of AsyncLROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlVm, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DatabaseMigrationSqlVm]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _cancel_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_vm_cancel_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Is one of the following types: MigrationOperationInput, JSON, IO[bytes] + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._cancel_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _cutover_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_vm_cutover_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Is one of the following types: MigrationOperationInput, JSON, IO[bytes] + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._cutover_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get(self, group_name: str, service_name: str, **kwargs: Any) -> _models.DataMigrationService: + """Get DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The GET method retrieves information about a service instance. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: DataMigrationService. The DataMigrationService is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DataMigrationService + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) + + _request = build_services_get_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataMigrationService, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _create_or_update_initial( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_create_or_update_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: _models.DataMigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Is one of the following types: + DataMigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._create_or_update_initial( + group_name=group_name, + service_name=service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DataMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DataMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DataMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _update_initial( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_update_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + async def begin_update( + self, + group_name: str, + service_name: str, + parameters: _models.DataMigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + group_name: str, + service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def begin_update( + self, + group_name: str, + service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def begin_update( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> AsyncLROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Is one of the following types: + DataMigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns DataMigrationService. The + DataMigrationService is compatible with MutableMapping + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._update_initial( + group_name=group_name, + service_name=service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DataMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[_models.DataMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[_models.DataMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + async def _delete_initial( + self, group_name: str, service_name: str, *, delete_running_tasks: Optional[bool] = None, **kwargs: Any + ) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_services_delete_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_delete( + self, group_name: str, service_name: str, *, delete_running_tasks: Optional[bool] = None, **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The DELETE method deletes a service. Any running tasks will be canceled. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._delete_initial( + group_name=group_name, + service_name=service_name, + delete_running_tasks=delete_running_tasks, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.DataMigrationService"]: + """Get services in resource group. + + The Services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of service resources in a resource group. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :return: An iterator like instance of DataMigrationService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_services_list_by_resource_group_request( + group_name=group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> AsyncItemPaged["_models.DataMigrationService"]: + """Get services in subscription. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of service resources in a subscription. + + :return: An iterator like instance of DataMigrationService + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_services_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def check_status( + self, group_name: str, service_name: str, **kwargs: Any + ) -> _models.DataMigrationServiceStatusResponse: + """Check service health status. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This action performs a health check and returns the status of the service + and virtual machine size. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: DataMigrationServiceStatusResponse. The DataMigrationServiceStatusResponse is + compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DataMigrationServiceStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DataMigrationServiceStatusResponse] = kwargs.pop("cls", None) + + _request = build_services_check_status_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataMigrationServiceStatusResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + async def _start_initial(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_services_start_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_start(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Start service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This action starts the service and the service can be used for data + migration. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._start_initial( + group_name=group_name, + service_name=service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + async def _stop_initial(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) + + _request = build_services_stop_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def begin_stop(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + """Stop service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This action stops the service and the service cannot be used for data + migration. The service owner won't be billed when the service is stopped. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An instance of AsyncLROPoller that returns None + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = await self._stop_initial( + group_name=group_name, + service_name=service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + await raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: AsyncPollingMethod = cast( + AsyncPollingMethod, AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: + polling_method = polling + if cont_token: + return AsyncLROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_skus( + self, group_name: str, service_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.AvailableServiceSku"]: + """Get compatible SKUs. + + The services resource is the top-level resource that represents the Database Migration Service + (classic). The skus action returns the list of SKUs that a service resource can be updated to. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An iterator like instance of AvailableServiceSku + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.AvailableServiceSku] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AvailableServiceSku]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_services_list_skus_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AvailableServiceSku], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: _models.NameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: Union[_models.NameAvailabilityRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Is one of the following types: + NameAvailabilityRequest, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or JSON or IO[bytes] + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_check_children_name_availability_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def check_name_availability( + self, + location: str, + parameters: _models.NameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_name_availability( + self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def check_name_availability( + self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def check_name_availability( + self, location: str, parameters: Union[_models.NameAvailabilityRequest, JSON, IO[bytes]], **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Is one of the following types: NameAvailabilityRequest, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or JSON or IO[bytes] + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_check_name_availability_request( + location=location, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class TasksOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`tasks` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.ProjectTask: + """Get task information. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The GET method retrieves information about a task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword expand: Expand the response. Default value is None. + :paramtype expand: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_tasks_get_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_tasks_create_or_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_tasks_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The DELETE method deletes a task, canceling it first if it's running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_tasks_delete_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, group_name: str, service_name: str, project_name: str, *, task_type: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged["_models.ProjectTask"]: + """Get tasks in a service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of tasks owned by a service resource. Some tasks + may have a status of Unknown, which indicates that an error occurred while querying the status + of that task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :keyword task_type: Filter tasks by task type. Default value is None. + :paramtype task_type: str + :return: An iterator like instance of ProjectTask + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ProjectTask] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ProjectTask]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_tasks_list_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + task_type=task_type, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ProjectTask], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def cancel( + self, group_name: str, service_name: str, project_name: str, task_name: str, **kwargs: Any + ) -> _models.ProjectTask: + """Cancel a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method cancels a task if it's currently queued or running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_tasks_cancel_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: _models.CommandProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Required. + :type parameters: ~azure.mgmt.datamigration.models.CommandProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: Union[_models.CommandProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Is one of the following types: CommandProperties, JSON, + IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.CommandProperties or JSON or IO[bytes] + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CommandProperties] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_tasks_command_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CommandProperties, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class FilesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`files` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace_async + async def get( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> _models.ProjectFile: + """Get file information. + + The files resource is a nested, proxy-only resource representing a file stored under the + project resource. This method retrieves information about a file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) + + _request = build_files_get_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectFile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: _models.ProjectFile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: Union[_models.ProjectFile, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Is one of the following types: ProjectFile, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or JSON or IO[bytes] + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_files_create_or_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectFile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: _models.ProjectFile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: Union[_models.ProjectFile, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Is one of the following types: ProjectFile, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or JSON or IO[bytes] + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_files_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectFile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def delete( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> None: + """Delete file. + + This method deletes a file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_files_delete_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, group_name: str, service_name: str, project_name: str, **kwargs: Any + ) -> AsyncItemPaged["_models.ProjectFile"]: + """Get files in a project. + + The project resource is a nested resource representing a stored migration project. This method + returns a list of files owned by a project resource. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :return: An iterator like instance of ProjectFile + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ProjectFile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ProjectFile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_files_list_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ProjectFile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @distributed_trace_async + async def read( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> _models.FileStorageInfo: + """Request storage information for downloading the file content. + + This method is used for requesting storage information using which contents of the file can be + downloaded. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: FileStorageInfo. The FileStorageInfo is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) + + _request = build_files_read_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FileStorageInfo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace_async + async def read_write( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> _models.FileStorageInfo: + """Request information for reading and writing file content. + + This method is used for requesting information for reading and writing the file content. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: FileStorageInfo. The FileStorageInfo is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) + + _request = build_files_read_write_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + await response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FileStorageInfo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ResourceSkusOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`resource_skus` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_skus(self, **kwargs: Any) -> AsyncItemPaged["_models.ResourceSku"]: + """Get supported SKUs. + + The skus action returns the list of SKUs that DMS (classic) supports. + + :return: An iterator like instance of ResourceSku + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ResourceSku] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ResourceSku]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_resource_skus_list_skus_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ResourceSku], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + +class UsagesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s + :attr:`usages` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Quota"]: + """Get resource quotas and usage information. + + This method returns region-specific quotas and resource usage information for the Azure + Database Migration Service (classic). + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Quota + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.Quota] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Quota]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_usages_list_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + async def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Quota], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_patch.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_patch.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py deleted file mode 100644 index 3eeba071aeaa..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_projects_operations.py +++ /dev/null @@ -1,587 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._projects_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ProjectsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`projects` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncItemPaged["_models.Project"]: - """Get projects in a service. - - The project resource is a nested resource representing a stored migration project. This method - returns a list of projects owned by a service resource. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An iterator like instance of either Project or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.Project] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ProjectList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: _models.Project, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Create or update project. - - The project resource is a nested resource representing a stored migration project. The PUT - method creates a new project or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: ~azure.mgmt.datamigration.models.Project - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Create or update project. - - The project resource is a nested resource representing a stored migration project. The PUT - method creates a new project or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: Union[_models.Project, IO[bytes]], - **kwargs: Any - ) -> _models.Project: - """Create or update project. - - The project resource is a nested resource representing a stored migration project. The PUT - method creates a new project or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Is either a Project type or a IO[bytes] type. - Required. - :type parameters: ~azure.mgmt.datamigration.models.Project or IO[bytes] - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Project] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "Project") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Project", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, group_name: str, service_name: str, project_name: str, **kwargs: Any) -> _models.Project: - """Get project information. - - The project resource is a nested resource representing a stored migration project. The GET - method retrieves information about a project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Project] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Project", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, - group_name: str, - service_name: str, - project_name: str, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Delete project. - - The project resource is a nested resource representing a stored migration project. The DELETE - method deletes a project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: _models.Project, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Update project. - - The project resource is a nested resource representing a stored migration project. The PATCH - method updates an existing project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: ~azure.mgmt.datamigration.models.Project - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Update project. - - The project resource is a nested resource representing a stored migration project. The PATCH - method updates an existing project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: Union[_models.Project, IO[bytes]], - **kwargs: Any - ) -> _models.Project: - """Update project. - - The project resource is a nested resource representing a stored migration project. The PATCH - method updates an existing project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Is either a Project type or a IO[bytes] type. - Required. - :type parameters: ~azure.mgmt.datamigration.models.Project or IO[bytes] - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Project] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "Project") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Project", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py deleted file mode 100644 index e3e425c8810a..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_resource_skus_operations.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._resource_skus_operations import build_list_skus_request -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ResourceSkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`resource_skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_skus(self, **kwargs: Any) -> AsyncItemPaged["_models.ResourceSku"]: - """Get supported SKUs. - - The skus action returns the list of SKUs that DMS (classic) supports. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ResourceSkusResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_skus_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkusResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py deleted file mode 100644 index 39ce3c95e443..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_service_tasks_operations.py +++ /dev/null @@ -1,674 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._service_tasks_operations import ( - build_cancel_request, - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ServiceTasksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`service_tasks` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, group_name: str, service_name: str, task_type: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.ProjectTask"]: - """Get service level tasks for a service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of service level tasks owned by a service - resource. Some tasks may have a status of Unknown, which indicates that an error occurred while - querying the status of that task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_type: Filter tasks by task type. Default value is None. - :type task_type: str - :return: An iterator like instance of either ProjectTask or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ProjectTask] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TaskList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - task_type=task_type, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("TaskList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PUT method creates a new service task or updates an existing one, - although since service tasks have no mutable custom properties, there is little reason to - update an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PUT method creates a new service task or updates an existing one, - although since service tasks have no mutable custom properties, there is little reason to - update an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PUT method creates a new service task or updates an existing one, - although since service tasks have no mutable custom properties, there is little reason to - update an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, group_name: str, service_name: str, task_name: str, expand: Optional[str] = None, **kwargs: Any - ) -> _models.ProjectTask: - """Get service task information. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The GET method retrieves information about a service task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param expand: Expand the response. Default value is None. - :type expand: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, - group_name: str, - service_name: str, - task_name: str, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Delete service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The DELETE method deletes a service task, canceling it first if it's - running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PATCH method updates an existing service task, but since service - tasks have no mutable custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PATCH method updates an existing service task, but since service - tasks have no mutable custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PATCH method updates an existing service task, but since service - tasks have no mutable custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def cancel(self, group_name: str, service_name: str, task_name: str, **kwargs: Any) -> _models.ProjectTask: - """Cancel a service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. This method cancels a service task if it's currently queued or running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_cancel_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py deleted file mode 100644 index 7769494f060f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_services_operations.py +++ /dev/null @@ -1,1483 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._services_operations import ( - build_check_children_name_availability_request, - build_check_name_availability_request, - build_check_status_request, - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_by_resource_group_request, - build_list_request, - build_list_skus_request, - build_start_request, - build_stop_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - async def _create_or_update_initial( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DataMigrationService") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - group_name: str, - service_name: str, - parameters: _models.DataMigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PUT method creates a new service or updates an existing one. When a - service is updated, existing child resources (i.e. tasks) are unaffected. Services currently - support a single kind, "vm", which refers to a VM-based service, although other kinds may be - added in the future. This method can change the kind, SKU, and network of the service, but if - tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request - ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. - Long-running operations use the provisioningState property. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DataMigrationService or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - group_name: str, - service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PUT method creates a new service or updates an existing one. When a - service is updated, existing child resources (i.e. tasks) are unaffected. Services currently - support a single kind, "vm", which refers to a VM-based service, although other kinds may be - added in the future. This method can change the kind, SKU, and network of the service, but if - tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request - ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. - Long-running operations use the provisioningState property. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DataMigrationService or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PUT method creates a new service or updates an existing one. When a - service is updated, existing child resources (i.e. tasks) are unaffected. Services currently - support a single kind, "vm", which refers to a VM-based service, although other kinds may be - added in the future. This method can change the kind, SKU, and network of the service, but if - tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request - ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. - Long-running operations use the provisioningState property. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Is either a DataMigrationService type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DataMigrationService or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - group_name=group_name, - service_name=service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DataMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DataMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get(self, group_name: str, service_name: str, **kwargs: Any) -> _models.DataMigrationService: - """Get DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The GET method retrieves information about a service instance. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: DataMigrationService or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DataMigrationService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_initial( - self, group_name: str, service_name: str, delete_running_tasks: Optional[bool] = None, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, group_name: str, service_name: str, delete_running_tasks: Optional[bool] = None, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The DELETE method deletes a service. Any running tasks will be canceled. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - group_name=group_name, - service_name=service_name, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DataMigrationService") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - group_name: str, - service_name: str, - parameters: _models.DataMigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PATCH method updates an existing service. This method can change the - kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is - busy), this will fail with 400 Bad Request ("ServiceIsBusy"). - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DataMigrationService or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - group_name: str, - service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PATCH method updates an existing service. This method can change the - kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is - busy), this will fail with 400 Bad Request ("ServiceIsBusy"). - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DataMigrationService or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PATCH method updates an existing service. This method can change the - kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is - busy), this will fail with 400 Bad Request ("ServiceIsBusy"). - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Is either a DataMigrationService type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DataMigrationService or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - group_name=group_name, - service_name=service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DataMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DataMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def check_status( - self, group_name: str, service_name: str, **kwargs: Any - ) -> _models.DataMigrationServiceStatusResponse: - """Check service health status. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This action performs a health check and returns the status of the service - and virtual machine size. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: DataMigrationServiceStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DataMigrationServiceStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationServiceStatusResponse] = kwargs.pop("cls", None) - - _request = build_check_status_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataMigrationServiceStatusResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _start_initial(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_start(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This action starts the service and the service can be used for data - migration. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( - group_name=group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_stop(self, group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This action stops the service and the service cannot be used for data - migration. The service owner won't be billed when the service is stopped. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( - group_name=group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_skus( - self, group_name: str, service_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.AvailableServiceSku"]: - """Get compatible SKUs. - - The services resource is the top-level resource that represents the Database Migration Service - (classic). The skus action returns the list of SKUs that a service resource can be updated to. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An iterator like instance of either AvailableServiceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.AvailableServiceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ServiceSkuList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_skus_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceSkuList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def check_children_name_availability( - self, - group_name: str, - service_name: str, - parameters: _models.NameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check nested resource name validity and availability. - - This method checks whether a proposed nested resource name is valid and available. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Requested name to validate. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_children_name_availability( - self, - group_name: str, - service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check nested resource name validity and availability. - - This method checks whether a proposed nested resource name is valid and available. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Requested name to validate. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_children_name_availability( - self, - group_name: str, - service_name: str, - parameters: Union[_models.NameAvailabilityRequest, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check nested resource name validity and availability. - - This method checks whether a proposed nested resource name is valid and available. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Requested name to validate. Is either a NameAvailabilityRequest type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or IO[bytes] - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "NameAvailabilityRequest") - - _request = build_check_children_name_availability_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_resource_group(self, group_name: str, **kwargs: Any) -> AsyncItemPaged["_models.DataMigrationService"]: - """Get services in resource group. - - The Services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of service resources in a resource group. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :return: An iterator like instance of either DataMigrationService or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationServiceList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - group_name=group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DataMigrationServiceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncItemPaged["_models.DataMigrationService"]: - """Get services in subscription. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of service resources in a subscription. - - :return: An iterator like instance of either DataMigrationService or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationServiceList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DataMigrationServiceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def check_name_availability( - self, - location: str, - parameters: _models.NameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check name validity and availability. - - This method checks whether a proposed top-level resource name is valid and available. - - :param location: The Azure region of the operation. Required. - :type location: str - :param parameters: Requested name to validate. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check name validity and availability. - - This method checks whether a proposed top-level resource name is valid and available. - - :param location: The Azure region of the operation. Required. - :type location: str - :param parameters: Requested name to validate. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, location: str, parameters: Union[_models.NameAvailabilityRequest, IO[bytes]], **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check name validity and availability. - - This method checks whether a proposed top-level resource name is valid and available. - - :param location: The Azure region of the operation. Required. - :type location: str - :param parameters: Requested name to validate. Is either a NameAvailabilityRequest type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or IO[bytes] - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "NameAvailabilityRequest") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py deleted file mode 100644 index 7b734df9143c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_sql_migration_services_operations.py +++ /dev/null @@ -1,1243 +0,0 @@ -# pylint: disable=too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._sql_migration_services_operations import ( - build_create_or_update_request, - build_delete_node_request, - build_delete_request, - build_get_request, - build_list_auth_keys_request, - build_list_by_resource_group_request, - build_list_by_subscription_request, - build_list_migrations_request, - build_list_monitoring_data_request, - build_regenerate_auth_keys_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class SqlMigrationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`sql_migration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace_async - async def get( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> _models.SqlMigrationService: - """Retrieve the Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: SqlMigrationService or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.SqlMigrationService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SqlMigrationService", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "SqlMigrationService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.SqlMigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SqlMigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SqlMigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.SqlMigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a SqlMigrationService - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService or IO[bytes] - :return: An instance of AsyncLROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SqlMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.SqlMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SqlMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> AsyncIterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "SqlMigrationServiceUpdate") - - _request = build_update_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - await response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.SqlMigrationServiceUpdate, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SqlMigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.SqlMigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.SqlMigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a - SqlMigrationServiceUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate or IO[bytes] - :return: An instance of AsyncLROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - await raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SqlMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.SqlMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.SqlMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.SqlMigrationService"]: - """Retrieve all SQL migration services in the resource group. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either SqlMigrationService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SqlMigrationListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SqlMigrationListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_auth_keys( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> _models.AuthenticationKeys: - """Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: AuthenticationKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.AuthenticationKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AuthenticationKeys] = kwargs.pop("cls", None) - - _request = build_list_auth_keys_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AuthenticationKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_auth_keys( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.RegenAuthKeys, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.RegenAuthKeys: - """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: RegenAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_auth_keys( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.RegenAuthKeys: - """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: RegenAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_auth_keys( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.RegenAuthKeys, IO[bytes]], - **kwargs: Any - ) -> _models.RegenAuthKeys: - """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a RegenAuthKeys type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys or IO[bytes] - :return: RegenAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RegenAuthKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "RegenAuthKeys") - - _request = build_regenerate_auth_keys_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RegenAuthKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def delete_node( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.DeleteNode, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DeleteNode: - """Delete the integration runtime node. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DeleteNode - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DeleteNode or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DeleteNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def delete_node( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DeleteNode: - """Delete the integration runtime node. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DeleteNode or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DeleteNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def delete_node( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.DeleteNode, IO[bytes]], - **kwargs: Any - ) -> _models.DeleteNode: - """Delete the integration runtime node. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a DeleteNode type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DeleteNode or IO[bytes] - :return: DeleteNode or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DeleteNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeleteNode] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DeleteNode") - - _request = build_delete_node_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeleteNode", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_migrations( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> AsyncItemPaged["_models.DatabaseMigration"]: - """Retrieve the List of database migrations attached to the service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: An iterator like instance of either DatabaseMigration or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.DatabaseMigration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_migrations_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_monitoring_data( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeMonitoringData: - """Retrieve the registered Integration Runtime nodes and their monitoring data for a given - Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: IntegrationRuntimeMonitoringData or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.IntegrationRuntimeMonitoringData - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) - - _request = build_list_monitoring_data_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeMonitoringData", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.SqlMigrationService"]: - """Retrieve all SQL migration services in the subscriptions. - - :return: An iterator like instance of either SqlMigrationService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SqlMigrationListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SqlMigrationListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py deleted file mode 100644 index f40fa732f8f3..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_tasks_operations.py +++ /dev/null @@ -1,875 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._tasks_operations import ( - build_cancel_request, - build_command_request, - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class TasksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`tasks` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, group_name: str, service_name: str, project_name: str, task_type: Optional[str] = None, **kwargs: Any - ) -> AsyncItemPaged["_models.ProjectTask"]: - """Get tasks in a service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of tasks owned by a service resource. Some tasks - may have a status of Unknown, which indicates that an error occurred while querying the status - of that task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_type: Filter tasks by task type. Default value is None. - :type task_type: str - :return: An iterator like instance of either ProjectTask or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.ProjectTask] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TaskList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - task_type=task_type, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("TaskList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PUT method creates a new task or updates an existing one, although - since tasks have no mutable custom properties, there is little reason to update an existing - one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PUT method creates a new task or updates an existing one, although - since tasks have no mutable custom properties, there is little reason to update an existing - one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PUT method creates a new task or updates an existing one, although - since tasks have no mutable custom properties, there is little reason to update an existing - one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.ProjectTask: - """Get task information. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The GET method retrieves information about a task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param expand: Expand the response. Default value is None. - :type expand: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def delete( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Delete task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The DELETE method deletes a task, canceling it first if it's running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable - custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable - custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable - custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def cancel( - self, group_name: str, service_name: str, project_name: str, task_name: str, **kwargs: Any - ) -> _models.ProjectTask: - """Cancel a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method cancels a task if it's currently queued or running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_cancel_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def command( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: _models.CommandProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CommandProperties: - """Execute a command on a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method executes a command on a running task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Command to execute. Required. - :type parameters: ~azure.mgmt.datamigration.models.CommandProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CommandProperties or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.CommandProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def command( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CommandProperties: - """Execute a command on a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method executes a command on a running task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Command to execute. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CommandProperties or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.CommandProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def command( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: Union[_models.CommandProperties, IO[bytes]], - **kwargs: Any - ) -> _models.CommandProperties: - """Execute a command on a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method executes a command on a running task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Command to execute. Is either a CommandProperties type or a IO[bytes] type. - Required. - :type parameters: ~azure.mgmt.datamigration.models.CommandProperties or IO[bytes] - :return: CommandProperties or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.CommandProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CommandProperties] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "CommandProperties") - - _request = build_command_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CommandProperties", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py deleted file mode 100644 index f3cf6a9b03f9..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/aio/operations/_usages_operations.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import AsyncPipelineClient -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._utils.serialization import Deserializer, Serializer -from ...operations._usages_operations import build_list_request -from .._configuration import DataMigrationManagementClientConfiguration - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] -List = list - - -class UsagesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.aio.DataMigrationManagementClient`'s - :attr:`usages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.Quota"]: - """Get resource quotas and usage information. - - This method returns region-specific quotas and resource usage information for the Azure - Database Migration Service (classic). - - :param location: The Azure region of the operation. Required. - :type location: str - :return: An iterator like instance of either Quota or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datamigration.models.Quota] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.QuotaList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("QuotaList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py index 95cfe7489461..46eaf0b23a1d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/__init__.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,7 +13,7 @@ from ._patch import * # pylint: disable=unused-wildcard-import -from ._models_py3 import ( # type: ignore +from ._models import ( # type: ignore ApiError, AuthenticationKeys, AvailableServiceSku, @@ -71,24 +71,16 @@ ConnectionInfo, CopyProgressDetails, DataIntegrityValidationResult, - DataItemMigrationSummaryResult, - DataMigrationError, - DataMigrationProjectMetadata, DataMigrationService, - DataMigrationServiceList, + DataMigrationServiceProperties, DataMigrationServiceStatusResponse, - Database, DatabaseBackupInfo, DatabaseFileInfo, - DatabaseFileInput, DatabaseInfo, DatabaseMigration, DatabaseMigrationBase, - DatabaseMigrationBaseListResult, DatabaseMigrationBaseProperties, DatabaseMigrationCosmosDbMongo, - DatabaseMigrationCosmosDbMongoListResult, - DatabaseMigrationListResult, DatabaseMigrationProperties, DatabaseMigrationPropertiesCosmosDbMongo, DatabaseMigrationPropertiesSqlDb, @@ -97,8 +89,6 @@ DatabaseMigrationSqlDb, DatabaseMigrationSqlMi, DatabaseMigrationSqlVm, - DatabaseObjectName, - DatabaseSummaryResult, DatabaseTable, DeleteNode, ErrorAdditionalInfo, @@ -106,10 +96,8 @@ ErrorInfo, ErrorResponse, ExecutionStatistics, - FileList, FileShare, FileStorageInfo, - GetProjectDetailsNonSqlTaskInput, GetTdeCertificatesSqlTaskInput, GetTdeCertificatesSqlTaskOutput, GetTdeCertificatesSqlTaskProperties, @@ -182,7 +170,6 @@ MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, MigrateSchemaSqlServerSqlDbTaskProperties, MigrateSchemaSqlTaskOutputError, - MigrateSqlServerDatabaseInput, MigrateSqlServerSqlDbDatabaseInput, MigrateSqlServerSqlDbSyncDatabaseInput, MigrateSqlServerSqlDbSyncTaskInput, @@ -229,11 +216,9 @@ MigrationOperationInput, MigrationReportResult, MigrationService, - MigrationServiceListResult, + MigrationServiceProperties, MigrationServiceUpdate, MigrationStatusDetails, - MigrationTableMetadata, - MigrationValidationDatabaseLevelResult, MigrationValidationDatabaseSummaryResult, MigrationValidationOptions, MigrationValidationResult, @@ -266,13 +251,8 @@ NameAvailabilityRequest, NameAvailabilityResponse, NodeMonitoringData, - NonSqlDataMigrationTable, - NonSqlDataMigrationTableResult, - NonSqlMigrationTaskInput, - NonSqlMigrationTaskOutput, ODataError, OfflineConfiguration, - OperationListResult, OperationsDefinition, OperationsDisplayDefinition, OracleConnectionInfo, @@ -282,36 +262,28 @@ Project, ProjectFile, ProjectFileProperties, - ProjectList, + ProjectProperties, ProjectTask, ProjectTaskProperties, ProxyResource, - ProxyResourceAutoGenerated, QueryAnalysisValidationResult, QueryExecutionResult, Quota, - QuotaList, QuotaName, RegenAuthKeys, ReportableException, Resource, - ResourceAutoGenerated, ResourceSku, ResourceSkuCapabilities, ResourceSkuCapacity, ResourceSkuCosts, ResourceSkuRestrictions, - ResourceSkusResult, SchemaComparisonValidationResult, SchemaComparisonValidationResultType, SchemaMigrationSetting, SelectedCertificateInput, ServerProperties, - ServiceOperation, - ServiceOperationDisplay, - ServiceOperationList, ServiceSku, - ServiceSkuList, SourceLocation, SqlBackupFileInfo, SqlBackupSetInfo, @@ -320,20 +292,16 @@ SqlDbMigrationStatusDetails, SqlDbOfflineConfiguration, SqlFileShare, - SqlMigrationListResult, SqlMigrationService, + SqlMigrationServiceProperties, SqlMigrationServiceUpdate, SqlMigrationTaskInput, SqlServerSqlMISyncTaskInput, SsisMigrationInfo, - StartMigrationScenarioServerRoleResult, SyncMigrationDatabaseErrorEvent, SystemData, - SystemDataAutoGenerated, TargetLocation, - TaskList, TrackedResource, - TrackedResourceAutoGenerated, UploadOCIDriverTaskInput, UploadOCIDriverTaskOutput, UploadOCIDriverTaskProperties, @@ -354,7 +322,7 @@ WaitStatistics, ) -from ._data_migration_management_client_enums import ( # type: ignore +from ._enums import ( # type: ignore AuthType, AuthenticationType, BackupFileStatus, @@ -363,13 +331,11 @@ CommandState, CommandType, CreatedByType, - DataMigrationResultCode, DatabaseCompatLevel, DatabaseFileType, DatabaseMigrationStage, DatabaseMigrationState, DatabaseState, - ErrorType, LoginMigrationStage, LoginType, ManagedServiceIdentityType, @@ -476,24 +442,16 @@ "ConnectionInfo", "CopyProgressDetails", "DataIntegrityValidationResult", - "DataItemMigrationSummaryResult", - "DataMigrationError", - "DataMigrationProjectMetadata", "DataMigrationService", - "DataMigrationServiceList", + "DataMigrationServiceProperties", "DataMigrationServiceStatusResponse", - "Database", "DatabaseBackupInfo", "DatabaseFileInfo", - "DatabaseFileInput", "DatabaseInfo", "DatabaseMigration", "DatabaseMigrationBase", - "DatabaseMigrationBaseListResult", "DatabaseMigrationBaseProperties", "DatabaseMigrationCosmosDbMongo", - "DatabaseMigrationCosmosDbMongoListResult", - "DatabaseMigrationListResult", "DatabaseMigrationProperties", "DatabaseMigrationPropertiesCosmosDbMongo", "DatabaseMigrationPropertiesSqlDb", @@ -502,8 +460,6 @@ "DatabaseMigrationSqlDb", "DatabaseMigrationSqlMi", "DatabaseMigrationSqlVm", - "DatabaseObjectName", - "DatabaseSummaryResult", "DatabaseTable", "DeleteNode", "ErrorAdditionalInfo", @@ -511,10 +467,8 @@ "ErrorInfo", "ErrorResponse", "ExecutionStatistics", - "FileList", "FileShare", "FileStorageInfo", - "GetProjectDetailsNonSqlTaskInput", "GetTdeCertificatesSqlTaskInput", "GetTdeCertificatesSqlTaskOutput", "GetTdeCertificatesSqlTaskProperties", @@ -587,7 +541,6 @@ "MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel", "MigrateSchemaSqlServerSqlDbTaskProperties", "MigrateSchemaSqlTaskOutputError", - "MigrateSqlServerDatabaseInput", "MigrateSqlServerSqlDbDatabaseInput", "MigrateSqlServerSqlDbSyncDatabaseInput", "MigrateSqlServerSqlDbSyncTaskInput", @@ -634,11 +587,9 @@ "MigrationOperationInput", "MigrationReportResult", "MigrationService", - "MigrationServiceListResult", + "MigrationServiceProperties", "MigrationServiceUpdate", "MigrationStatusDetails", - "MigrationTableMetadata", - "MigrationValidationDatabaseLevelResult", "MigrationValidationDatabaseSummaryResult", "MigrationValidationOptions", "MigrationValidationResult", @@ -671,13 +622,8 @@ "NameAvailabilityRequest", "NameAvailabilityResponse", "NodeMonitoringData", - "NonSqlDataMigrationTable", - "NonSqlDataMigrationTableResult", - "NonSqlMigrationTaskInput", - "NonSqlMigrationTaskOutput", "ODataError", "OfflineConfiguration", - "OperationListResult", "OperationsDefinition", "OperationsDisplayDefinition", "OracleConnectionInfo", @@ -687,36 +633,28 @@ "Project", "ProjectFile", "ProjectFileProperties", - "ProjectList", + "ProjectProperties", "ProjectTask", "ProjectTaskProperties", "ProxyResource", - "ProxyResourceAutoGenerated", "QueryAnalysisValidationResult", "QueryExecutionResult", "Quota", - "QuotaList", "QuotaName", "RegenAuthKeys", "ReportableException", "Resource", - "ResourceAutoGenerated", "ResourceSku", "ResourceSkuCapabilities", "ResourceSkuCapacity", "ResourceSkuCosts", "ResourceSkuRestrictions", - "ResourceSkusResult", "SchemaComparisonValidationResult", "SchemaComparisonValidationResultType", "SchemaMigrationSetting", "SelectedCertificateInput", "ServerProperties", - "ServiceOperation", - "ServiceOperationDisplay", - "ServiceOperationList", "ServiceSku", - "ServiceSkuList", "SourceLocation", "SqlBackupFileInfo", "SqlBackupSetInfo", @@ -725,20 +663,16 @@ "SqlDbMigrationStatusDetails", "SqlDbOfflineConfiguration", "SqlFileShare", - "SqlMigrationListResult", "SqlMigrationService", + "SqlMigrationServiceProperties", "SqlMigrationServiceUpdate", "SqlMigrationTaskInput", "SqlServerSqlMISyncTaskInput", "SsisMigrationInfo", - "StartMigrationScenarioServerRoleResult", "SyncMigrationDatabaseErrorEvent", "SystemData", - "SystemDataAutoGenerated", "TargetLocation", - "TaskList", "TrackedResource", - "TrackedResourceAutoGenerated", "UploadOCIDriverTaskInput", "UploadOCIDriverTaskOutput", "UploadOCIDriverTaskProperties", @@ -765,13 +699,11 @@ "CommandState", "CommandType", "CreatedByType", - "DataMigrationResultCode", "DatabaseCompatLevel", "DatabaseFileType", "DatabaseMigrationStage", "DatabaseMigrationState", "DatabaseState", - "ErrorType", "LoginMigrationStage", "LoginType", "ManagedServiceIdentityType", diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_data_migration_management_client_enums.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_enums.py similarity index 70% rename from sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_data_migration_management_client_enums.py rename to sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_enums.py index 6c0a8ba1181b..69996e606f0c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_data_migration_management_client_enums.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_enums.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -14,10 +14,15 @@ class AuthenticationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of possible authentication types when connecting.""" NONE = "None" + """None.""" WINDOWS_AUTHENTICATION = "WindowsAuthentication" + """WindowsAuthentication.""" SQL_AUTHENTICATION = "SqlAuthentication" + """SqlAuthentication.""" ACTIVE_DIRECTORY_INTEGRATED = "ActiveDirectoryIntegrated" + """ActiveDirectoryIntegrated.""" ACTIVE_DIRECTORY_PASSWORD = "ActiveDirectoryPassword" + """ActiveDirectoryPassword.""" class AuthType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -33,167 +38,231 @@ class BackupFileStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of Status of the log backup file.""" ARRIVED = "Arrived" + """Arrived.""" QUEUED = "Queued" + """Queued.""" UPLOADING = "Uploading" + """Uploading.""" UPLOADED = "Uploaded" + """Uploaded.""" RESTORING = "Restoring" + """Restoring.""" RESTORED = "Restored" + """Restored.""" CANCELLED = "Cancelled" + """Cancelled.""" class BackupMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of backup modes.""" CREATE_BACKUP = "CreateBackup" + """CreateBackup.""" EXISTING_BACKUP = "ExistingBackup" + """ExistingBackup.""" class BackupType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enum of the different backup types.""" DATABASE = "Database" + """Database.""" TRANSACTION_LOG = "TransactionLog" + """TransactionLog.""" FILE = "File" + """File.""" DIFFERENTIAL_DATABASE = "DifferentialDatabase" + """DifferentialDatabase.""" DIFFERENTIAL_FILE = "DifferentialFile" + """DifferentialFile.""" PARTIAL = "Partial" + """Partial.""" DIFFERENTIAL_PARTIAL = "DifferentialPartial" + """DifferentialPartial.""" class CommandState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of the command. This is ignored if submitted.""" UNKNOWN = "Unknown" + """Unknown.""" ACCEPTED = "Accepted" + """Accepted.""" RUNNING = "Running" + """Running.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" class CommandType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Command type.""" MIGRATE_SYNC_COMPLETE_DATABASE = "Migrate.Sync.Complete.Database" + """Migrate.Sync.Complete.Database.""" MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE = "Migrate.SqlServer.AzureDbSqlMi.Complete" + """Migrate.SqlServer.AzureDbSqlMi.Complete.""" CANCEL = "cancel" + """cancel.""" FINISH = "finish" + """finish.""" RESTART = "restart" + """restart.""" class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" + """The kind of entity that created the resource.""" USER = "User" + """The entity was created by a user.""" APPLICATION = "Application" + """The entity was created by an application.""" MANAGED_IDENTITY = "ManagedIdentity" + """The entity was created by a managed identity.""" KEY = "Key" + """The entity was created by a key.""" class DatabaseCompatLevel(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of SQL Server database compatibility levels.""" COMPAT_LEVEL80 = "CompatLevel80" + """CompatLevel80.""" COMPAT_LEVEL90 = "CompatLevel90" + """CompatLevel90.""" COMPAT_LEVEL100 = "CompatLevel100" + """CompatLevel100.""" COMPAT_LEVEL110 = "CompatLevel110" + """CompatLevel110.""" COMPAT_LEVEL120 = "CompatLevel120" + """CompatLevel120.""" COMPAT_LEVEL130 = "CompatLevel130" + """CompatLevel130.""" COMPAT_LEVEL140 = "CompatLevel140" + """CompatLevel140.""" class DatabaseFileType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of SQL Server database file types.""" ROWS = "Rows" + """Rows.""" LOG = "Log" + """Log.""" FILESTREAM = "Filestream" + """Filestream.""" NOT_SUPPORTED = "NotSupported" + """NotSupported.""" FULLTEXT = "Fulltext" + """Fulltext.""" class DatabaseMigrationStage(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current stage of migration.""" NONE = "None" + """None.""" INITIALIZE = "Initialize" + """Initialize.""" BACKUP = "Backup" + """Backup.""" FILE_COPY = "FileCopy" + """FileCopy.""" RESTORE = "Restore" + """Restore.""" COMPLETED = "Completed" + """Completed.""" class DatabaseMigrationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Database level migration state.""" UNDEFINED = "UNDEFINED" + """UNDEFINED.""" INITIAL = "INITIAL" + """INITIAL.""" FULL_BACKUP_UPLOAD_START = "FULL_BACKUP_UPLOAD_START" + """FULL_BACKUP_UPLOAD_START.""" LOG_SHIPPING_START = "LOG_SHIPPING_START" + """LOG_SHIPPING_START.""" UPLOAD_LOG_FILES_START = "UPLOAD_LOG_FILES_START" + """UPLOAD_LOG_FILES_START.""" CUTOVER_START = "CUTOVER_START" + """CUTOVER_START.""" POST_CUTOVER_COMPLETE = "POST_CUTOVER_COMPLETE" + """POST_CUTOVER_COMPLETE.""" COMPLETED = "COMPLETED" + """COMPLETED.""" CANCELLED = "CANCELLED" + """CANCELLED.""" FAILED = "FAILED" + """FAILED.""" class DatabaseState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of SQL Server Database states.""" ONLINE = "Online" + """Online.""" RESTORING = "Restoring" + """Restoring.""" RECOVERING = "Recovering" + """Recovering.""" RECOVERY_PENDING = "RecoveryPending" + """RecoveryPending.""" SUSPECT = "Suspect" + """Suspect.""" EMERGENCY = "Emergency" + """Emergency.""" OFFLINE = "Offline" + """Offline.""" COPYING = "Copying" + """Copying.""" OFFLINE_SECONDARY = "OfflineSecondary" - - -class DataMigrationResultCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Result code of the data migration.""" - - INITIAL = "Initial" - COMPLETED = "Completed" - OBJECT_NOT_EXISTS_IN_SOURCE = "ObjectNotExistsInSource" - OBJECT_NOT_EXISTS_IN_TARGET = "ObjectNotExistsInTarget" - TARGET_OBJECT_IS_INACCESSIBLE = "TargetObjectIsInaccessible" - FATAL_ERROR = "FatalError" - - -class ErrorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Error type.""" - - DEFAULT = "Default" - WARNING = "Warning" - ERROR = "Error" + """OfflineSecondary.""" class LoginMigrationStage(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enum of the different stage of login migration.""" NONE = "None" + """None.""" INITIALIZE = "Initialize" + """Initialize.""" LOGIN_MIGRATION = "LoginMigration" + """LoginMigration.""" ESTABLISH_USER_MAPPING = "EstablishUserMapping" + """EstablishUserMapping.""" ASSIGN_ROLE_MEMBERSHIP = "AssignRoleMembership" + """AssignRoleMembership.""" ASSIGN_ROLE_OWNERSHIP = "AssignRoleOwnership" + """AssignRoleOwnership.""" ESTABLISH_SERVER_PERMISSIONS = "EstablishServerPermissions" + """EstablishServerPermissions.""" ESTABLISH_OBJECT_PERMISSIONS = "EstablishObjectPermissions" + """EstablishObjectPermissions.""" COMPLETED = "Completed" + """Completed.""" class LoginType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enum mapping of SMO LoginType.""" WINDOWS_USER = "WindowsUser" + """WindowsUser.""" WINDOWS_GROUP = "WindowsGroup" + """WindowsGroup.""" SQL_LOGIN = "SqlLogin" + """SqlLogin.""" CERTIFICATE = "Certificate" + """Certificate.""" ASYMMETRIC_KEY = "AsymmetricKey" + """AsymmetricKey.""" EXTERNAL_USER = "ExternalUser" + """ExternalUser.""" EXTERNAL_GROUP = "ExternalGroup" + """ExternalGroup.""" class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -202,161 +271,237 @@ class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ NONE = "None" + """No managed identity.""" SYSTEM_ASSIGNED = "SystemAssigned" + """System assigned managed identity.""" USER_ASSIGNED = "UserAssigned" + """User assigned managed identity.""" SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" + """System and user assigned managed identity.""" class MigrationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current state of migration.""" NONE = "None" + """None.""" IN_PROGRESS = "InProgress" + """InProgress.""" FAILED = "Failed" + """Failed.""" WARNING = "Warning" + """Warning.""" COMPLETED = "Completed" + """Completed.""" SKIPPED = "Skipped" + """Skipped.""" STOPPED = "Stopped" + """Stopped.""" class MigrationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current status of migration.""" DEFAULT = "Default" + """Default.""" CONNECTING = "Connecting" + """Connecting.""" SOURCE_AND_TARGET_SELECTED = "SourceAndTargetSelected" + """SourceAndTargetSelected.""" SELECT_LOGINS = "SelectLogins" + """SelectLogins.""" CONFIGURED = "Configured" + """Configured.""" RUNNING = "Running" + """Running.""" ERROR = "Error" + """Error.""" STOPPED = "Stopped" + """Stopped.""" COMPLETED = "Completed" + """Completed.""" COMPLETED_WITH_WARNINGS = "CompletedWithWarnings" + """CompletedWithWarnings.""" class MongoDbClusterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of data source.""" BLOB_CONTAINER = "BlobContainer" + """BlobContainer.""" COSMOS_DB = "CosmosDb" + """CosmosDb.""" MONGO_DB = "MongoDb" + """MongoDb.""" class MongoDbErrorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of error or warning.""" ERROR = "Error" + """Error.""" VALIDATION_ERROR = "ValidationError" + """ValidationError.""" WARNING = "Warning" + """Warning.""" class MongoDbMigrationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """MongoDbMigrationState.""" + """Type of MongoDbMigrationState.""" NOT_STARTED = "NotStarted" + """NotStarted.""" VALIDATING_INPUT = "ValidatingInput" + """ValidatingInput.""" INITIALIZING = "Initializing" + """Initializing.""" RESTARTING = "Restarting" + """Restarting.""" COPYING = "Copying" + """Copying.""" INITIAL_REPLAY = "InitialReplay" + """InitialReplay.""" REPLAYING = "Replaying" + """Replaying.""" FINALIZING = "Finalizing" + """Finalizing.""" COMPLETE = "Complete" + """Complete.""" CANCELED = "Canceled" + """Canceled.""" FAILED = "Failed" + """Failed.""" class MongoDbProgressResultType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of progress object.""" MIGRATION = "Migration" + """Migration.""" DATABASE = "Database" + """Database.""" COLLECTION = "Collection" + """Collection.""" class MongoDbReplication(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Describes how changes will be replicated from the source to the target. The default is OneTime.""" DISABLED = "Disabled" + """Disabled.""" ONE_TIME = "OneTime" + """OneTime.""" CONTINUOUS = "Continuous" + """Continuous.""" class MongoDbShardKeyOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The field ordering.""" FORWARD = "Forward" + """Forward.""" REVERSE = "Reverse" + """Reverse.""" HASHED = "Hashed" + """Hashed.""" class MongoMigrationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Migration Status.""" NOT_STARTED = "NotStarted" + """NotStarted.""" IN_PROGRESS = "InProgress" + """InProgress.""" COMPLETED = "Completed" + """Completed.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" class MySqlTargetPlatformType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of possible target types when migrating from MySQL.""" SQL_SERVER = "SqlServer" + """SqlServer.""" AZURE_DB_FOR_MY_SQL = "AzureDbForMySQL" + """AzureDbForMySQL.""" class NameCheckFailureReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The reason why the name is not available, if nameAvailable is false.""" ALREADY_EXISTS = "AlreadyExists" + """AlreadyExists.""" INVALID = "Invalid" + """Invalid.""" class ObjectType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of type of objects.""" STORED_PROCEDURES = "StoredProcedures" + """StoredProcedures.""" TABLE = "Table" + """Table.""" USER = "User" + """User.""" VIEW = "View" + """View.""" FUNCTION = "Function" + """Function.""" class OperationOrigin(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """OperationOrigin.""" + """Type of OperationOrigin.""" USER = "user" + """user.""" SYSTEM = "system" + """system.""" class ProjectProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The project's provisioning state.""" DELETING = "Deleting" + """Deleting.""" SUCCEEDED = "Succeeded" + """Succeeded.""" class ProjectSourcePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Source platform of the project.""" SQL = "SQL" + """SQL.""" MY_SQL = "MySQL" + """MySQL.""" POSTGRE_SQL = "PostgreSql" + """PostgreSql.""" MONGO_DB = "MongoDb" + """MongoDb.""" UNKNOWN = "Unknown" + """Unknown.""" class ProjectTargetPlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Target platform of the project.""" SQLDB = "SQLDB" + """SQLDB.""" SQLMI = "SQLMI" + """SQLMI.""" AZURE_DB_FOR_MY_SQL = "AzureDbForMySql" + """AzureDbForMySql.""" AZURE_DB_FOR_POSTGRE_SQL = "AzureDbForPostgreSql" + """AzureDbForPostgreSql.""" MONGO_DB = "MongoDb" + """MongoDb.""" UNKNOWN = "Unknown" + """Unknown.""" class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -365,102 +510,154 @@ class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ PROVISIONING = "Provisioning" + """Provisioning.""" UPDATING = "Updating" + """Updating.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" CANCELED = "Canceled" + """Canceled.""" class ReplicateMigrationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Wrapper for replicate reported migration states.""" UNDEFINED = "UNDEFINED" + """UNDEFINED.""" VALIDATING = "VALIDATING" + """VALIDATING.""" PENDING = "PENDING" + """PENDING.""" COMPLETE = "COMPLETE" + """COMPLETE.""" ACTION_REQUIRED = "ACTION_REQUIRED" + """ACTION_REQUIRED.""" FAILED = "FAILED" + """FAILED.""" class ResourceSkuCapacityScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The scale type applicable to the SKU.""" AUTOMATIC = "Automatic" + """Automatic.""" MANUAL = "Manual" + """Manual.""" NONE = "None" + """None.""" class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The reason code for restriction.""" QUOTA_ID = "QuotaId" + """QuotaId.""" NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" + """NotAvailableForSubscription.""" class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of restrictions.""" LOCATION = "location" + """location.""" class ResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """ResourceType.""" + """Type of ResourceType.""" SQL_MI = "SqlMi" + """SqlMi.""" SQL_VM = "SqlVm" + """SqlVm.""" SQL_DB = "SqlDb" + """SqlDb.""" MONGO_TO_COSMOS_DB_MONGO = "MongoToCosmosDbMongo" + """MongoToCosmosDbMongo.""" class ScenarioSource(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of source type.""" ACCESS = "Access" + """Access.""" DB2 = "DB2" + """DB2.""" MY_SQL = "MySQL" + """MySQL.""" ORACLE = "Oracle" + """Oracle.""" SQL = "SQL" + """SQL.""" SYBASE = "Sybase" + """Sybase.""" POSTGRE_SQL = "PostgreSQL" + """PostgreSQL.""" MONGO_DB = "MongoDB" + """MongoDB.""" SQLRDS = "SQLRDS" + """SQLRDS.""" MY_SQLRDS = "MySQLRDS" + """MySQLRDS.""" POSTGRE_SQLRDS = "PostgreSQLRDS" + """PostgreSQLRDS.""" class ScenarioTarget(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of target type.""" SQL_SERVER = "SQLServer" + """SQLServer.""" SQLDB = "SQLDB" + """SQLDB.""" SQLDW = "SQLDW" + """SQLDW.""" SQLMI = "SQLMI" + """SQLMI.""" AZURE_DB_FOR_MY_SQL = "AzureDBForMySql" + """AzureDBForMySql.""" AZURE_DB_FOR_POSTGRES_SQL = "AzureDBForPostgresSQL" + """AzureDBForPostgresSQL.""" MONGO_DB = "MongoDB" + """MongoDB.""" class SchemaMigrationOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Option for how schema is extracted and applied to target.""" NONE = "None" + """None.""" EXTRACT_FROM_SOURCE = "ExtractFromSource" + """ExtractFromSource.""" USE_STORAGE_FILE = "UseStorageFile" + """UseStorageFile.""" class SchemaMigrationStage(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current stage of schema migration.""" NOT_STARTED = "NotStarted" + """NotStarted.""" VALIDATING_INPUTS = "ValidatingInputs" + """ValidatingInputs.""" COLLECTING_OBJECTS = "CollectingObjects" + """CollectingObjects.""" DOWNLOADING_SCRIPT = "DownloadingScript" + """DownloadingScript.""" GENERATING_SCRIPT = "GeneratingScript" + """GeneratingScript.""" UPLOADING_SCRIPT = "UploadingScript" + """UploadingScript.""" DEPLOYING_SCHEMA = "DeployingSchema" + """DeployingSchema.""" COMPLETED = "Completed" + """Completed.""" COMPLETED_WITH_WARNINGS = "CompletedWithWarnings" + """CompletedWithWarnings.""" FAILED = "Failed" + """Failed.""" class ServerLevelPermissionsGroup(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -469,47 +666,69 @@ class ServerLevelPermissionsGroup(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ DEFAULT = "Default" + """Default.""" MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB = "MigrationFromSqlServerToAzureDB" + """MigrationFromSqlServerToAzureDB.""" MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI = "MigrationFromSqlServerToAzureMI" + """MigrationFromSqlServerToAzureMI.""" MIGRATION_FROM_MY_SQL_TO_AZURE_DB_FOR_MY_SQL = "MigrationFromMySQLToAzureDBForMySQL" + """MigrationFromMySQLToAzureDBForMySQL.""" MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM = "MigrationFromSqlServerToAzureVM" + """MigrationFromSqlServerToAzureVM.""" class ServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The resource's provisioning state.""" ACCEPTED = "Accepted" + """Accepted.""" DELETING = "Deleting" + """Deleting.""" DEPLOYING = "Deploying" + """Deploying.""" STOPPED = "Stopped" + """Stopped.""" STOPPING = "Stopping" + """Stopping.""" STARTING = "Starting" + """Starting.""" FAILED_TO_START = "FailedToStart" + """FailedToStart.""" FAILED_TO_STOP = "FailedToStop" + """FailedToStop.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" class ServiceScalability(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The scalability approach.""" NONE = "none" + """none.""" MANUAL = "manual" + """manual.""" AUTOMATIC = "automatic" + """automatic.""" class Severity(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Severity of the validation error.""" MESSAGE = "Message" + """Message.""" WARNING = "Warning" + """Warning.""" ERROR = "Error" + """Error.""" class SqlSourcePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of source platform types.""" SQL_ON_PREM = "SqlOnPrem" + """SqlOnPrem.""" class SsisMigrationOverwriteOption(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -518,132 +737,220 @@ class SsisMigrationOverwriteOption(str, Enum, metaclass=CaseInsensitiveEnumMeta) """ IGNORE = "Ignore" + """Ignore.""" OVERWRITE = "Overwrite" + """Overwrite.""" class SsisMigrationStage(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current stage of SSIS migration.""" NONE = "None" + """None.""" INITIALIZE = "Initialize" + """Initialize.""" IN_PROGRESS = "InProgress" + """InProgress.""" COMPLETED = "Completed" + """Completed.""" class SsisStoreType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """An enumeration of supported source SSIS store type in DMS (classic).""" SSIS_CATALOG = "SsisCatalog" + """SsisCatalog.""" class SyncDatabaseMigrationReportingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enum of the different state of database level online migration.""" UNDEFINED = "UNDEFINED" + """UNDEFINED.""" CONFIGURING = "CONFIGURING" + """CONFIGURING.""" INITIALIAZING = "INITIALIAZING" + """INITIALIAZING.""" STARTING = "STARTING" + """STARTING.""" RUNNING = "RUNNING" + """RUNNING.""" READY_TO_COMPLETE = "READY_TO_COMPLETE" + """READY_TO_COMPLETE.""" COMPLETING = "COMPLETING" + """COMPLETING.""" COMPLETE = "COMPLETE" + """COMPLETE.""" CANCELLING = "CANCELLING" + """CANCELLING.""" CANCELLED = "CANCELLED" + """CANCELLED.""" FAILED = "FAILED" + """FAILED.""" VALIDATING = "VALIDATING" + """VALIDATING.""" VALIDATION_COMPLETE = "VALIDATION_COMPLETE" + """VALIDATION_COMPLETE.""" VALIDATION_FAILED = "VALIDATION_FAILED" + """VALIDATION_FAILED.""" RESTORE_IN_PROGRESS = "RESTORE_IN_PROGRESS" + """RESTORE_IN_PROGRESS.""" RESTORE_COMPLETED = "RESTORE_COMPLETED" + """RESTORE_COMPLETED.""" BACKUP_IN_PROGRESS = "BACKUP_IN_PROGRESS" + """BACKUP_IN_PROGRESS.""" BACKUP_COMPLETED = "BACKUP_COMPLETED" + """BACKUP_COMPLETED.""" class SyncTableMigrationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Enum of the different state of table level online migration.""" BEFORE_LOAD = "BEFORE_LOAD" + """BEFORE_LOAD.""" FULL_LOAD = "FULL_LOAD" + """FULL_LOAD.""" COMPLETED = "COMPLETED" + """COMPLETED.""" CANCELED = "CANCELED" + """CANCELED.""" ERROR = "ERROR" + """ERROR.""" FAILED = "FAILED" + """FAILED.""" class TaskState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The state of the task. This is ignored if submitted.""" UNKNOWN = "Unknown" + """Unknown.""" QUEUED = "Queued" + """Queued.""" RUNNING = "Running" + """Running.""" CANCELED = "Canceled" + """Canceled.""" SUCCEEDED = "Succeeded" + """Succeeded.""" FAILED = "Failed" + """Failed.""" FAILED_INPUT_VALIDATION = "FailedInputValidation" + """FailedInputValidation.""" FAULTED = "Faulted" + """Faulted.""" class TaskType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Task type.""" CONNECT_MONGO_DB = "Connect.MongoDb" + """Connect.MongoDb.""" CONNECT_TO_SOURCE_SQL_SERVER = "ConnectToSource.SqlServer" + """ConnectToSource.SqlServer.""" CONNECT_TO_SOURCE_SQL_SERVER_SYNC = "ConnectToSource.SqlServer.Sync" + """ConnectToSource.SqlServer.Sync.""" CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC = "ConnectToSource.PostgreSql.Sync" + """ConnectToSource.PostgreSql.Sync.""" CONNECT_TO_SOURCE_MY_SQL = "ConnectToSource.MySql" + """ConnectToSource.MySql.""" CONNECT_TO_SOURCE_ORACLE_SYNC = "ConnectToSource.Oracle.Sync" + """ConnectToSource.Oracle.Sync.""" CONNECT_TO_TARGET_SQL_DB = "ConnectToTarget.SqlDb" + """ConnectToTarget.SqlDb.""" CONNECT_TO_TARGET_SQL_DB_SYNC = "ConnectToTarget.SqlDb.Sync" + """ConnectToTarget.SqlDb.Sync.""" CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC = "ConnectToTarget.AzureDbForPostgreSql.Sync" + """ConnectToTarget.AzureDbForPostgreSql.Sync.""" CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC = "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync" + """ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync.""" CONNECT_TO_TARGET_AZURE_SQL_DB_MI = "ConnectToTarget.AzureSqlDbMI" + """ConnectToTarget.AzureSqlDbMI.""" CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS = "ConnectToTarget.AzureSqlDbMI.Sync.LRS" + """ConnectToTarget.AzureSqlDbMI.Sync.LRS.""" CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL = "ConnectToTarget.AzureDbForMySql" + """ConnectToTarget.AzureDbForMySql.""" GET_USER_TABLES_SQL = "GetUserTables.Sql" + """GetUserTables.Sql.""" GET_USER_TABLES_AZURE_SQL_DB_SYNC = "GetUserTables.AzureSqlDb.Sync" + """GetUserTables.AzureSqlDb.Sync.""" GET_USER_TABLES_ORACLE = "GetUserTablesOracle" + """GetUserTablesOracle.""" GET_USER_TABLES_POSTGRE_SQL = "GetUserTablesPostgreSql" + """GetUserTablesPostgreSql.""" GET_USER_TABLES_MY_SQL = "GetUserTablesMySql" + """GetUserTablesMySql.""" MIGRATE_MONGO_DB = "Migrate.MongoDb" + """Migrate.MongoDb.""" MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI = "Migrate.SqlServer.AzureSqlDbMI" + """Migrate.SqlServer.AzureSqlDbMI.""" MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS = "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS" + """Migrate.SqlServer.AzureSqlDbMI.Sync.LRS.""" MIGRATE_SQL_SERVER_SQL_DB = "Migrate.SqlServer.SqlDb" + """Migrate.SqlServer.SqlDb.""" MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC = "Migrate.SqlServer.AzureSqlDb.Sync" + """Migrate.SqlServer.AzureSqlDb.Sync.""" MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC = "Migrate.MySql.AzureDbForMySql.Sync" + """Migrate.MySql.AzureDbForMySql.Sync.""" MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL = "Migrate.MySql.AzureDbForMySql" + """Migrate.MySql.AzureDbForMySql.""" MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2 = "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2" + """Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2.""" MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC = "Migrate.Oracle.AzureDbForPostgreSql.Sync" + """Migrate.Oracle.AzureDbForPostgreSql.Sync.""" VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC = "ValidateMigrationInput.SqlServer.SqlDb.Sync" + """ValidateMigrationInput.SqlServer.SqlDb.Sync.""" VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI = "ValidateMigrationInput.SqlServer.AzureSqlDbMI" + """ValidateMigrationInput.SqlServer.AzureSqlDbMI.""" VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS = ( "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS" ) + """ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS.""" VALIDATE_MONGO_DB = "Validate.MongoDb" + """Validate.MongoDb.""" VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC = "Validate.Oracle.AzureDbPostgreSql.Sync" + """Validate.Oracle.AzureDbPostgreSql.Sync.""" GET_TDE_CERTIFICATES_SQL = "GetTDECertificates.Sql" + """GetTDECertificates.Sql.""" MIGRATE_SSIS = "Migrate.Ssis" + """Migrate.Ssis.""" SERVICE_CHECK_OCI = "Service.Check.OCI" + """Service.Check.OCI.""" SERVICE_UPLOAD_OCI = "Service.Upload.OCI" + """Service.Upload.OCI.""" SERVICE_INSTALL_OCI = "Service.Install.OCI" + """Service.Install.OCI.""" MIGRATE_SCHEMA_SQL_SERVER_SQL_DB = "MigrateSchemaSqlServerSqlDb" + """MigrateSchemaSqlServerSqlDb.""" class UpdateActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Type of the actual difference for the compared object, while performing schema comparison.""" DELETED_ON_TARGET = "DeletedOnTarget" + """DeletedOnTarget.""" CHANGED_ON_TARGET = "ChangedOnTarget" + """ChangedOnTarget.""" ADDED_ON_TARGET = "AddedOnTarget" + """AddedOnTarget.""" class ValidationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Current status of the validation.""" DEFAULT = "Default" + """Default.""" NOT_STARTED = "NotStarted" + """NotStarted.""" INITIALIZED = "Initialized" + """Initialized.""" IN_PROGRESS = "InProgress" + """InProgress.""" COMPLETED = "Completed" + """Completed.""" COMPLETED_WITH_ISSUES = "CompletedWithIssues" + """CompletedWithIssues.""" STOPPED = "Stopped" + """Stopped.""" FAILED = "Failed" + """Failed.""" diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py new file mode 100644 index 000000000000..df000a551073 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models.py @@ -0,0 +1,15425 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +# pylint: disable=useless-super-delegation + +import datetime +from typing import Any, Literal, Mapping, Optional, TYPE_CHECKING, Union, overload + +from .._utils.model_base import Model as _Model, rest_discriminator, rest_field +from ._enums import CommandType, MongoDbProgressResultType, ResourceType, TaskType + +if TYPE_CHECKING: + from .. import models as _models + + +class ApiError(_Model): + """Error information. + + :ivar error: Error information in OData format. + :vartype error: ~azure.mgmt.datamigration.models.ODataError + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + """ + + error: Optional["_models.ODataError"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error information in OData format.""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Metadata pertaining to creation and last modification of the resource.""" + + @overload + def __init__( + self, + *, + error: Optional["_models.ODataError"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AuthenticationKeys(_Model): + """An authentication key. + + :ivar auth_key1: The first authentication key. + :vartype auth_key1: str + :ivar auth_key2: The second authentication key. + :vartype auth_key2: str + """ + + auth_key1: Optional[str] = rest_field(name="authKey1", visibility=["read", "create"]) + """The first authentication key.""" + auth_key2: Optional[str] = rest_field(name="authKey2", visibility=["read", "create"]) + """The second authentication key.""" + + @overload + def __init__( + self, + *, + auth_key1: Optional[str] = None, + auth_key2: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvailableServiceSku(_Model): + """Describes the available service SKU. + + :ivar resource_type: The resource type, including the provider namespace. + :vartype resource_type: str + :ivar sku: SKU name, tier, etc. + :vartype sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku + :ivar capacity: A description of the scaling capacities of the SKU. + :vartype capacity: ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity + """ + + resource_type: Optional[str] = rest_field( + name="resourceType", visibility=["read", "create", "update", "delete", "query"] + ) + """The resource type, including the provider namespace.""" + sku: Optional["_models.AvailableServiceSkuSku"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """SKU name, tier, etc.""" + capacity: Optional["_models.AvailableServiceSkuCapacity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """A description of the scaling capacities of the SKU.""" + + @overload + def __init__( + self, + *, + resource_type: Optional[str] = None, + sku: Optional["_models.AvailableServiceSkuSku"] = None, + capacity: Optional["_models.AvailableServiceSkuCapacity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvailableServiceSkuCapacity(_Model): + """A description of the scaling capacities of the SKU. + + :ivar minimum: The minimum capacity, usually 0 or 1. + :vartype minimum: int + :ivar maximum: The maximum capacity. + :vartype maximum: int + :ivar default: The default capacity. + :vartype default: int + :ivar scale_type: The scalability approach. Known values are: "none", "manual", and + "automatic". + :vartype scale_type: str or ~azure.mgmt.datamigration.models.ServiceScalability + """ + + minimum: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The minimum capacity, usually 0 or 1.""" + maximum: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The maximum capacity.""" + default: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The default capacity.""" + scale_type: Optional[Union[str, "_models.ServiceScalability"]] = rest_field( + name="scaleType", visibility=["read", "create", "update", "delete", "query"] + ) + """The scalability approach. Known values are: \"none\", \"manual\", and \"automatic\".""" + + @overload + def __init__( + self, + *, + minimum: Optional[int] = None, + maximum: Optional[int] = None, + default: Optional[int] = None, + scale_type: Optional[Union[str, "_models.ServiceScalability"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AvailableServiceSkuSku(_Model): + """SKU name, tier, etc. + + :ivar name: The name of the SKU. + :vartype name: str + :ivar family: SKU family. + :vartype family: str + :ivar size: SKU size. + :vartype size: str + :ivar tier: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical". + :vartype tier: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the SKU.""" + family: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SKU family.""" + size: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """SKU size.""" + tier: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The tier of the SKU, such as \"Basic\", \"General Purpose\", or \"Business Critical\".""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + family: Optional[str] = None, + size: Optional[str] = None, + tier: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureActiveDirectoryApp(_Model): + """Azure Active Directory Application. + + :ivar application_id: Application ID of the Azure Active Directory Application. + :vartype application_id: str + :ivar app_key: Key used to authenticate to the Azure Active Directory Application. + :vartype app_key: str + :ivar tenant_id: Tenant id of the customer. + :vartype tenant_id: str + :ivar ignore_azure_permissions: Ignore checking azure permissions on the AAD app. + :vartype ignore_azure_permissions: bool + """ + + application_id: Optional[str] = rest_field( + name="applicationId", visibility=["read", "create", "update", "delete", "query"] + ) + """Application ID of the Azure Active Directory Application.""" + app_key: Optional[str] = rest_field(name="appKey", visibility=["read", "create", "update", "delete", "query"]) + """Key used to authenticate to the Azure Active Directory Application.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read", "create", "update", "delete", "query"]) + """Tenant id of the customer.""" + ignore_azure_permissions: Optional[bool] = rest_field( + name="ignoreAzurePermissions", visibility=["read", "create", "update", "delete", "query"] + ) + """Ignore checking azure permissions on the AAD app.""" + + @overload + def __init__( + self, + *, + application_id: Optional[str] = None, + app_key: Optional[str] = None, + tenant_id: Optional[str] = None, + ignore_azure_permissions: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class AzureBlob(_Model): + """Azure Blob Details. + + :ivar auth_type: Authentication type used for accessing Azure Blob Storage. Known values are: + "AccountKey" and "ManagedIdentity". + :vartype auth_type: str or ~azure.mgmt.datamigration.models.AuthType + :ivar identity: Identity details for authentication using a Managed Identity. + :vartype identity: ~azure.mgmt.datamigration.models.ManagedServiceIdentity + :ivar storage_account_resource_id: Resource Id of the storage account where backups are stored. + :vartype storage_account_resource_id: str + :ivar account_key: Storage Account Key. + :vartype account_key: str + :ivar blob_container_name: Blob container name where backups are stored. + :vartype blob_container_name: str + """ + + auth_type: Optional[Union[str, "_models.AuthType"]] = rest_field( + name="authType", visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type used for accessing Azure Blob Storage. Known values are: \"AccountKey\" and + \"ManagedIdentity\".""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Identity details for authentication using a Managed Identity.""" + storage_account_resource_id: Optional[str] = rest_field( + name="storageAccountResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource Id of the storage account where backups are stored.""" + account_key: Optional[str] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage Account Key.""" + blob_container_name: Optional[str] = rest_field( + name="blobContainerName", visibility=["read", "create", "update", "delete", "query"] + ) + """Blob container name where backups are stored.""" + + @overload + def __init__( + self, + *, + auth_type: Optional[Union[str, "_models.AuthType"]] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + storage_account_resource_id: Optional[str] = None, + account_key: Optional[str] = None, + blob_container_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BackupConfiguration(_Model): + """Backup Configuration. + + :ivar source_location: Source location of backups. + :vartype source_location: ~azure.mgmt.datamigration.models.SourceLocation + :ivar target_location: Target location for copying backups. + :vartype target_location: ~azure.mgmt.datamigration.models.TargetLocation + """ + + source_location: Optional["_models.SourceLocation"] = rest_field( + name="sourceLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """Source location of backups.""" + target_location: Optional["_models.TargetLocation"] = rest_field( + name="targetLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """Target location for copying backups.""" + + @overload + def __init__( + self, + *, + source_location: Optional["_models.SourceLocation"] = None, + target_location: Optional["_models.TargetLocation"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BackupFileInfo(_Model): + """Information of the backup file. + + :ivar file_location: Location of the backup file in shared folder. + :vartype file_location: str + :ivar family_sequence_number: Sequence number of the backup file in the backup set. + :vartype family_sequence_number: int + :ivar status: Status of the backup file during migration. Known values are: "Arrived", + "Queued", "Uploading", "Uploaded", "Restoring", "Restored", and "Cancelled". + :vartype status: str or ~azure.mgmt.datamigration.models.BackupFileStatus + """ + + file_location: Optional[str] = rest_field( + name="fileLocation", visibility=["read", "create", "update", "delete", "query"] + ) + """Location of the backup file in shared folder.""" + family_sequence_number: Optional[int] = rest_field( + name="familySequenceNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """Sequence number of the backup file in the backup set.""" + status: Optional[Union[str, "_models.BackupFileStatus"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Status of the backup file during migration. Known values are: \"Arrived\", \"Queued\", + \"Uploading\", \"Uploaded\", \"Restoring\", \"Restored\", and \"Cancelled\".""" + + @overload + def __init__( + self, + *, + file_location: Optional[str] = None, + family_sequence_number: Optional[int] = None, + status: Optional[Union[str, "_models.BackupFileStatus"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BackupSetInfo(_Model): + """Information of backup set. + + :ivar backup_set_id: Id for the set of backup files. + :vartype backup_set_id: str + :ivar first_lsn: First log sequence number of the backup file. + :vartype first_lsn: str + :ivar last_lsn: Last log sequence number of the backup file. + :vartype last_lsn: str + :ivar last_modified_time: Last modified time of the backup file in share location. + :vartype last_modified_time: ~datetime.datetime + :ivar backup_type: Enum of the different backup types. Known values are: "Database", + "TransactionLog", "File", "DifferentialDatabase", "DifferentialFile", "Partial", and + "DifferentialPartial". + :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType + :ivar list_of_backup_files: List of files in the backup set. + :vartype list_of_backup_files: list[~azure.mgmt.datamigration.models.BackupFileInfo] + :ivar database_name: Name of the database to which the backup set belongs. + :vartype database_name: str + :ivar backup_start_date: Date and time that the backup operation began. + :vartype backup_start_date: ~datetime.datetime + :ivar backup_finished_date: Date and time that the backup operation finished. + :vartype backup_finished_date: ~datetime.datetime + :ivar is_backup_restored: Whether the backup set is restored or not. + :vartype is_backup_restored: bool + """ + + backup_set_id: Optional[str] = rest_field( + name="backupSetId", visibility=["read", "create", "update", "delete", "query"] + ) + """Id for the set of backup files.""" + first_lsn: Optional[str] = rest_field(name="firstLsn", visibility=["read", "create", "update", "delete", "query"]) + """First log sequence number of the backup file.""" + last_lsn: Optional[str] = rest_field(name="lastLsn", visibility=["read", "create", "update", "delete", "query"]) + """Last log sequence number of the backup file.""" + last_modified_time: Optional[datetime.datetime] = rest_field( + name="lastModifiedTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Last modified time of the backup file in share location.""" + backup_type: Optional[Union[str, "_models.BackupType"]] = rest_field( + name="backupType", visibility=["read", "create", "update", "delete", "query"] + ) + """Enum of the different backup types. Known values are: \"Database\", \"TransactionLog\", + \"File\", \"DifferentialDatabase\", \"DifferentialFile\", \"Partial\", and + \"DifferentialPartial\".""" + list_of_backup_files: Optional[list["_models.BackupFileInfo"]] = rest_field( + name="listOfBackupFiles", visibility=["read", "create", "update", "delete", "query"] + ) + """List of files in the backup set.""" + database_name: Optional[str] = rest_field( + name="databaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the database to which the backup set belongs.""" + backup_start_date: Optional[datetime.datetime] = rest_field( + name="backupStartDate", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Date and time that the backup operation began.""" + backup_finished_date: Optional[datetime.datetime] = rest_field( + name="backupFinishedDate", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Date and time that the backup operation finished.""" + is_backup_restored: Optional[bool] = rest_field( + name="isBackupRestored", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the backup set is restored or not.""" + + @overload + def __init__( + self, + *, + backup_set_id: Optional[str] = None, + first_lsn: Optional[str] = None, + last_lsn: Optional[str] = None, + last_modified_time: Optional[datetime.datetime] = None, + backup_type: Optional[Union[str, "_models.BackupType"]] = None, + list_of_backup_files: Optional[list["_models.BackupFileInfo"]] = None, + database_name: Optional[str] = None, + backup_start_date: Optional[datetime.datetime] = None, + backup_finished_date: Optional[datetime.datetime] = None, + is_backup_restored: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BlobShare(_Model): + """Blob container storage information. + + :ivar sas_uri: SAS URI of Azure Storage Account Container. + :vartype sas_uri: str + """ + + sas_uri: Optional[str] = rest_field(name="sasUri", visibility=["read", "create", "update", "delete", "query"]) + """SAS URI of Azure Storage Account Container.""" + + @overload + def __init__( + self, + *, + sas_uri: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CheckOCIDriverTaskInput(_Model): + """Input for the service task to check for OCI drivers. + + :ivar server_version: Version of the source server to check against. Optional. + :vartype server_version: str + """ + + server_version: Optional[str] = rest_field( + name="serverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """Version of the source server to check against. Optional.""" + + @overload + def __init__( + self, + *, + server_version: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CheckOCIDriverTaskOutput(_Model): + """Output for the service task to check for OCI drivers. + + :ivar installed_driver: Information about the installed driver if found and valid. + :vartype installed_driver: ~azure.mgmt.datamigration.models.OracleOCIDriverInfo + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + installed_driver: Optional["_models.OracleOCIDriverInfo"] = rest_field( + name="installedDriver", visibility=["read", "create", "update", "delete", "query"] + ) + """Information about the installed driver if found and valid.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + @overload + def __init__( + self, + *, + installed_driver: Optional["_models.OracleOCIDriverInfo"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ProjectTaskProperties(_Model): + """Base class for all types of DMS (classic) 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, + ConnectToSourceOracleSyncTaskProperties, ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourceSqlServerTaskProperties, ConnectToSourceSqlServerSyncTaskProperties, + ConnectToTargetAzureDbForMySqlTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, ConnectToTargetSqlMITaskProperties, + ConnectToTargetSqlMISyncTaskProperties, + ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetSqlDbTaskProperties, ConnectToTargetSqlDbSyncTaskProperties, + GetTdeCertificatesSqlTaskProperties, GetUserTablesSqlSyncTaskProperties, + GetUserTablesSqlTaskProperties, GetUserTablesMySqlTaskProperties, + GetUserTablesOracleTaskProperties, GetUserTablesPostgreSqlTaskProperties, + MigrateMongoDbTaskProperties, MigrateMySqlAzureDbForMySqlOfflineTaskProperties, + MigrateMySqlAzureDbForMySqlSyncTaskProperties, + MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, + MigrateSqlServerSqlDbSyncTaskProperties, MigrateSqlServerSqlMITaskProperties, + MigrateSqlServerSqlMISyncTaskProperties, MigrateSqlServerSqlDbTaskProperties, + MigrateSsisTaskProperties, MigrateSchemaSqlServerSqlDbTaskProperties, + CheckOCIDriverTaskProperties, InstallOCIDriverTaskProperties, UploadOCIDriverTaskProperties, + ValidateMongoDbTaskProperties, ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, + ValidateMigrationInputSqlServerSqlMITaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlDbSyncTaskProperties + + :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", + "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", + "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", + "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", + "ConnectToTarget.AzureDbForPostgreSql.Sync", + "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", + "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", + "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", + "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", + "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", + "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", + "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", + "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", + "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", + "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", + "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", + "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and + "MigrateSchemaSqlServerSqlDb". + :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + """ + + __mapping__: dict[str, _Model] = {} + task_type: str = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) + """Task type. Required. Known values are: \"Connect.MongoDb\", \"ConnectToSource.SqlServer\", + \"ConnectToSource.SqlServer.Sync\", \"ConnectToSource.PostgreSql.Sync\", + \"ConnectToSource.MySql\", \"ConnectToSource.Oracle.Sync\", \"ConnectToTarget.SqlDb\", + \"ConnectToTarget.SqlDb.Sync\", \"ConnectToTarget.AzureDbForPostgreSql.Sync\", + \"ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync\", \"ConnectToTarget.AzureSqlDbMI\", + \"ConnectToTarget.AzureSqlDbMI.Sync.LRS\", \"ConnectToTarget.AzureDbForMySql\", + \"GetUserTables.Sql\", \"GetUserTables.AzureSqlDb.Sync\", \"GetUserTablesOracle\", + \"GetUserTablesPostgreSql\", \"GetUserTablesMySql\", \"Migrate.MongoDb\", + \"Migrate.SqlServer.AzureSqlDbMI\", \"Migrate.SqlServer.AzureSqlDbMI.Sync.LRS\", + \"Migrate.SqlServer.SqlDb\", \"Migrate.SqlServer.AzureSqlDb.Sync\", + \"Migrate.MySql.AzureDbForMySql.Sync\", \"Migrate.MySql.AzureDbForMySql\", + \"Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2\", + \"Migrate.Oracle.AzureDbForPostgreSql.Sync\", \"ValidateMigrationInput.SqlServer.SqlDb.Sync\", + \"ValidateMigrationInput.SqlServer.AzureSqlDbMI\", + \"ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS\", \"Validate.MongoDb\", + \"Validate.Oracle.AzureDbPostgreSql.Sync\", \"GetTDECertificates.Sql\", \"Migrate.Ssis\", + \"Service.Check.OCI\", \"Service.Upload.OCI\", \"Service.Install.OCI\", and + \"MigrateSchemaSqlServerSqlDb\".""" + errors: Optional[list["_models.ODataError"]] = rest_field(visibility=["read"]) + """Array of errors. This is ignored if submitted.""" + state: Optional[Union[str, "_models.TaskState"]] = rest_field(visibility=["read"]) + """The state of the task. This is ignored if submitted. Known values are: \"Unknown\", \"Queued\", + \"Running\", \"Canceled\", \"Succeeded\", \"Failed\", \"FailedInputValidation\", and + \"Faulted\".""" + commands: Optional[list["_models.CommandProperties"]] = rest_field(visibility=["read"]) + """Array of command properties.""" + client_data: Optional[dict[str, str]] = rest_field( + name="clientData", visibility=["read", "create", "update", "delete", "query"] + ) + """Key value pairs of client data to attach meta data information to task.""" + + @overload + def __init__( + self, + *, + task_type: str, + client_data: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class CheckOCIDriverTaskProperties(ProjectTaskProperties, discriminator="Service.Check.OCI"): + """Properties for the task that checks for OCI drivers. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Input for the service task to check for OCI drivers. + :vartype input: ~azure.mgmt.datamigration.models.CheckOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.CheckOCIDriverTaskOutput] + :ivar task_type: Task type. Required. Service.Check.OCI. + :vartype task_type: str or ~azure.mgmt.datamigration.models.SERVICE_CHECK_OCI + """ + + input: Optional["_models.CheckOCIDriverTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Input for the service task to check for OCI drivers.""" + output: Optional[list["_models.CheckOCIDriverTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.SERVICE_CHECK_OCI] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Service.Check.OCI.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.CheckOCIDriverTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.SERVICE_CHECK_OCI # type: ignore + + +class CommandProperties(_Model): + """Base class for all types of DMS (classic) 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, + MongoDbCancelCommand, MongoDbFinishCommand, MongoDbRestartCommand + + :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", + "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". + :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. Known values are: + "Unknown", "Accepted", "Running", "Succeeded", and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + """ + + __mapping__: dict[str, _Model] = {} + command_type: str = rest_discriminator( + name="commandType", visibility=["read", "create", "update", "delete", "query"] + ) + """Command type. Required. Known values are: \"Migrate.Sync.Complete.Database\", + \"Migrate.SqlServer.AzureDbSqlMi.Complete\", \"cancel\", \"finish\", and \"restart\".""" + errors: Optional[list["_models.ODataError"]] = rest_field(visibility=["read"]) + """Array of errors. This is ignored if submitted.""" + state: Optional[Union[str, "_models.CommandState"]] = rest_field(visibility=["read"]) + """The state of the command. This is ignored if submitted. Known values are: \"Unknown\", + \"Accepted\", \"Running\", \"Succeeded\", and \"Failed\".""" + + @overload + def __init__( + self, + *, + command_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectionInfo(_Model): + """Defines the connection properties of a server. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + MiSqlConnectionInfo, MongoDbConnectionInfo, MySqlConnectionInfo, OracleConnectionInfo, + PostgreSqlConnectionInfo, SqlConnectionInfo + + :ivar type: Type of connection info. Required. Default value is None. + :vartype type: str + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + """ + + __mapping__: dict[str, _Model] = {} + type: str = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) + """Type of connection info. Required. Default value is None.""" + user_name: Optional[str] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password credential.""" + + @overload + def __init__( + self, + *, + type: str, + user_name: Optional[str] = None, + password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToMongoDbTaskProperties(ProjectTaskProperties, discriminator="Connect.MongoDb"): + """Properties for the task that validates the connection to and provides information about a + MongoDB server. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Describes a connection to a MongoDB data source. + :vartype input: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :ivar output: An array containing a single MongoDbClusterInfo object. + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbClusterInfo] + :ivar task_type: Task type. Required. Connect.MongoDb. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_MONGO_DB + """ + + input: Optional["_models.MongoDbConnectionInfo"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes a connection to a MongoDB data source.""" + output: Optional[list["_models.MongoDbClusterInfo"]] = rest_field(visibility=["read"]) + """An array containing a single MongoDbClusterInfo object.""" + task_type: Literal[TaskType.CONNECT_MONGO_DB] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Connect.MongoDb.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MongoDbConnectionInfo"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_MONGO_DB # type: ignore + + +class ConnectToSourceMySqlTaskInput(_Model): + """Input for the task that validates MySQL database connection. + + :ivar source_connection_info: Information for connecting to MySQL source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar target_platform: Target Platform for the migration. Known values are: "SqlServer" and + "AzureDbForMySQL". + :vartype target_platform: str or ~azure.mgmt.datamigration.models.MySqlTargetPlatformType + :ivar check_permissions_group: Permission group for validations. Known values are: "Default", + "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", + "MigrationFromMySQLToAzureDBForMySQL", and "MigrationFromSqlServerToAzureVM". + :vartype check_permissions_group: str or + ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + :ivar is_offline_migration: Flag for whether or not the migration is offline. + :vartype is_offline_migration: bool + """ + + source_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to MySQL source. Required.""" + target_platform: Optional[Union[str, "_models.MySqlTargetPlatformType"]] = rest_field( + name="targetPlatform", visibility=["read", "create", "update", "delete", "query"] + ) + """Target Platform for the migration. Known values are: \"SqlServer\" and \"AzureDbForMySQL\".""" + check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = rest_field( + name="checkPermissionsGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """Permission group for validations. Known values are: \"Default\", + \"MigrationFromSqlServerToAzureDB\", \"MigrationFromSqlServerToAzureMI\", + \"MigrationFromMySQLToAzureDBForMySQL\", and \"MigrationFromSqlServerToAzureVM\".""" + is_offline_migration: Optional[bool] = rest_field( + name="isOfflineMigration", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether or not the migration is offline.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.MySqlConnectionInfo", + target_platform: Optional[Union[str, "_models.MySqlTargetPlatformType"]] = None, + check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = None, + is_offline_migration: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties, discriminator="ConnectToSource.MySql"): + """Properties for the task that validates MySQL database connection. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] + :ivar task_type: Task type. Required. ConnectToSource.MySql. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_SOURCE_MY_SQL + """ + + input: Optional["_models.ConnectToSourceMySqlTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToSourceNonSqlTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_SOURCE_MY_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToSource.MySql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToSourceMySqlTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_SOURCE_MY_SQL # type: ignore + + +class ConnectToSourceNonSqlTaskOutput(_Model): + """Output for connect to MySQL type source. + + :ivar id: Result identifier. + :vartype id: str + :ivar source_server_brand_version: Server brand version. + :vartype source_server_brand_version: str + :ivar server_properties: Server properties. + :vartype server_properties: ~azure.mgmt.datamigration.models.ServerProperties + :ivar databases: List of databases on the server. + :vartype databases: list[str] + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Server brand version.""" + server_properties: Optional["_models.ServerProperties"] = rest_field(name="serverProperties", visibility=["read"]) + """Server properties.""" + databases: Optional[list[str]] = rest_field(visibility=["read"]) + """List of databases on the server.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class ConnectToSourceOracleSyncTaskInput(_Model): + """Input for the task that validates Oracle database connection. + + :ivar source_connection_info: Information for connecting to Oracle source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo + """ + + source_connection_info: "_models.OracleConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to Oracle source. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.OracleConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToSourceOracleSyncTaskOutput(_Model): + """Output for the task that validates Oracle database connection. + + :ivar source_server_version: Version of the source server. + :vartype source_server_version: str + :ivar databases: List of schemas on source server. + :vartype databases: list[str] + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Version of the source server.""" + databases: Optional[list[str]] = rest_field(visibility=["read"]) + """List of schemas on source server.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class ConnectToSourceOracleSyncTaskProperties(ProjectTaskProperties, discriminator="ConnectToSource.Oracle.Sync"): + """Properties for the task that validates Oracle database connection. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskOutput] + :ivar task_type: Task type. Required. ConnectToSource.Oracle.Sync. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_SOURCE_ORACLE_SYNC + """ + + input: Optional["_models.ConnectToSourceOracleSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToSourceOracleSyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_SOURCE_ORACLE_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToSource.Oracle.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToSourceOracleSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_SOURCE_ORACLE_SYNC # type: ignore + + +class ConnectToSourcePostgreSqlSyncTaskInput(_Model): + """Input for the task that validates connection to PostgreSQL and source server requirements. + + :ivar source_connection_info: Connection information for source PostgreSQL server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + source_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source PostgreSQL server. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.PostgreSqlConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToSourcePostgreSqlSyncTaskOutput(_Model): + """Output for the task that validates connection to PostgreSQL and source server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar source_server_version: Version of the source server. + :vartype source_server_version: str + :ivar databases: List of databases on source server. + :vartype databases: list[str] + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Version of the source server.""" + databases: Optional[list[str]] = rest_field(visibility=["read"]) + """List of databases on source server.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class ConnectToSourcePostgreSqlSyncTaskProperties( + ProjectTaskProperties, discriminator="ConnectToSource.PostgreSql.Sync" +): # pylint: disable=name-too-long + """Properties for the task that validates connection to PostgreSQL server and source server + requirements for online migration. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput] + :ivar task_type: Task type. Required. ConnectToSource.PostgreSql.Sync. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC + """ + + input: Optional["_models.ConnectToSourcePostgreSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToSourcePostgreSqlSyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToSource.PostgreSql.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToSourcePostgreSqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC # type: ignore + + +class ConnectToSourceSqlServerSyncTaskProperties( + ProjectTaskProperties, discriminator="ConnectToSource.SqlServer.Sync" +): # pylint: disable=name-too-long + """Properties for the task that validates connection to SQL Server and source server requirements + for online migration. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] + :ivar task_type: Task type. Required. ConnectToSource.SqlServer.Sync. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_SOURCE_SQL_SERVER_SYNC + """ + + input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToSourceSqlServerTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_SOURCE_SQL_SERVER_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToSource.SqlServer.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_SOURCE_SQL_SERVER_SYNC # type: ignore + + +class ConnectToSourceSqlServerTaskInput(_Model): + """Input for the task that validates connection to SQL Server and also validates source server + requirements. + + :ivar source_connection_info: Connection information for Source SQL Server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar check_permissions_group: Permission group for validations. Known values are: "Default", + "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", + "MigrationFromMySQLToAzureDBForMySQL", and "MigrationFromSqlServerToAzureVM". + :vartype check_permissions_group: str or + ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup + :ivar collect_databases: Flag for whether to collect databases from source server. + :vartype collect_databases: bool + :ivar collect_logins: Flag for whether to collect logins from source server. + :vartype collect_logins: bool + :ivar collect_agent_jobs: Flag for whether to collect agent jobs from source server. + :vartype collect_agent_jobs: bool + :ivar collect_tde_certificate_info: Flag for whether to collect TDE Certificate names from + source server. + :vartype collect_tde_certificate_info: bool + :ivar validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on the + source server. + :vartype validate_ssis_catalog_only: bool + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + """ + + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for Source SQL Server. Required.""" + check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = rest_field( + name="checkPermissionsGroup", visibility=["read", "create", "update", "delete", "query"] + ) + """Permission group for validations. Known values are: \"Default\", + \"MigrationFromSqlServerToAzureDB\", \"MigrationFromSqlServerToAzureMI\", + \"MigrationFromMySQLToAzureDBForMySQL\", and \"MigrationFromSqlServerToAzureVM\".""" + collect_databases: Optional[bool] = rest_field( + name="collectDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to collect databases from source server.""" + collect_logins: Optional[bool] = rest_field( + name="collectLogins", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to collect logins from source server.""" + collect_agent_jobs: Optional[bool] = rest_field( + name="collectAgentJobs", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to collect agent jobs from source server.""" + collect_tde_certificate_info: Optional[bool] = rest_field( + name="collectTdeCertificateInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to collect TDE Certificate names from source server.""" + validate_ssis_catalog_only: Optional[bool] = rest_field( + name="validateSsisCatalogOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to validate SSIS catalog is reachable on the source server.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = None, + collect_databases: Optional[bool] = None, + collect_logins: Optional[bool] = None, + collect_agent_jobs: Optional[bool] = None, + collect_tde_certificate_info: Optional[bool] = None, + validate_ssis_catalog_only: Optional[bool] = None, + encrypted_key_for_secure_fields: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToSourceSqlServerTaskOutput(_Model): + """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, + ConnectToSourceSqlServerTaskOutputDatabaseLevel, ConnectToSourceSqlServerTaskOutputLoginLevel, + ConnectToSourceSqlServerTaskOutputTaskLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Type of result - database level or task level. Required. Default value is + None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Type of result - database level or task level. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToSourceSqlServerTaskOutputAgentJobLevel( + ConnectToSourceSqlServerTaskOutput, discriminator="AgentJobLevelOutput" +): # pylint: disable=name-too-long + """Agent Job level output for the task that validates connection to SQL Server and also validates + source server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar name: Agent Job name. + :vartype name: str + :ivar job_category: The type of Agent Job. + :vartype job_category: str + :ivar is_enabled: The state of the original Agent Job. + :vartype is_enabled: bool + :ivar job_owner: The owner of the Agent Job. + :vartype job_owner: str + :ivar last_executed_on: UTC Date and time when the Agent Job was last executed. + :vartype last_executed_on: ~datetime.datetime + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar migration_eligibility: Information about eligibility of agent job for migration. + :vartype migration_eligibility: ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + :ivar result_type: Type of result - database level or task level. Required. Default value is + "AgentJobLevelOutput". + :vartype result_type: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Agent Job name.""" + job_category: Optional[str] = rest_field(name="jobCategory", visibility=["read"]) + """The type of Agent Job.""" + is_enabled: Optional[bool] = rest_field(name="isEnabled", visibility=["read"]) + """The state of the original Agent Job.""" + job_owner: Optional[str] = rest_field(name="jobOwner", visibility=["read"]) + """The owner of the Agent Job.""" + last_executed_on: Optional[datetime.datetime] = rest_field( + name="lastExecutedOn", visibility=["read"], format="rfc3339" + ) + """UTC Date and time when the Agent Job was last executed.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + migration_eligibility: Optional["_models.MigrationEligibilityInfo"] = rest_field( + name="migrationEligibility", visibility=["read"] + ) + """Information about eligibility of agent job for migration.""" + result_type: Literal["AgentJobLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of result - database level or task level. Required. Default value is + \"AgentJobLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "AgentJobLevelOutput" # type: ignore + + +class ConnectToSourceSqlServerTaskOutputDatabaseLevel( + ConnectToSourceSqlServerTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """Database level output for the task that validates connection to SQL Server and also validates + source server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar name: Database name. + :vartype name: str + :ivar size_mb: Size of the file in megabytes. + :vartype size_mb: float + :ivar database_files: The list of database files. + :vartype database_files: list[~azure.mgmt.datamigration.models.DatabaseFileInfo] + :ivar compatibility_level: SQL Server compatibility level of database. Known values are: + "CompatLevel80", "CompatLevel90", "CompatLevel100", "CompatLevel110", "CompatLevel120", + "CompatLevel130", and "CompatLevel140". + :vartype compatibility_level: str or ~azure.mgmt.datamigration.models.DatabaseCompatLevel + :ivar database_state: State of the database. Known values are: "Online", "Restoring", + "Recovering", "RecoveryPending", "Suspect", "Emergency", "Offline", "Copying", and + "OfflineSecondary". + :vartype database_state: str or ~azure.mgmt.datamigration.models.DatabaseState + :ivar result_type: Type of result - database level or task level. Required. Default value is + "DatabaseLevelOutput". + :vartype result_type: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Database name.""" + size_mb: Optional[float] = rest_field(name="sizeMB", visibility=["read"]) + """Size of the file in megabytes.""" + database_files: Optional[list["_models.DatabaseFileInfo"]] = rest_field(name="databaseFiles", visibility=["read"]) + """The list of database files.""" + compatibility_level: Optional[Union[str, "_models.DatabaseCompatLevel"]] = rest_field( + name="compatibilityLevel", visibility=["read"] + ) + """SQL Server compatibility level of database. Known values are: \"CompatLevel80\", + \"CompatLevel90\", \"CompatLevel100\", \"CompatLevel110\", \"CompatLevel120\", + \"CompatLevel130\", and \"CompatLevel140\".""" + database_state: Optional[Union[str, "_models.DatabaseState"]] = rest_field( + name="databaseState", visibility=["read"] + ) + """State of the database. Known values are: \"Online\", \"Restoring\", \"Recovering\", + \"RecoveryPending\", \"Suspect\", \"Emergency\", \"Offline\", \"Copying\", and + \"OfflineSecondary\".""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of result - database level or task level. Required. Default value is + \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class ConnectToSourceSqlServerTaskOutputLoginLevel( + ConnectToSourceSqlServerTaskOutput, discriminator="LoginLevelOutput" +): # pylint: disable=name-too-long + """Login level output for the task that validates connection to SQL Server and also validates + source server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar name: Login name. + :vartype name: str + :ivar login_type: The type of login. Known values are: "WindowsUser", "WindowsGroup", + "SqlLogin", "Certificate", "AsymmetricKey", "ExternalUser", and "ExternalGroup". + :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType + :ivar default_database: The default database for the login. + :vartype default_database: str + :ivar is_enabled: The state of the login. + :vartype is_enabled: bool + :ivar migration_eligibility: Information about eligibility of login for migration. + :vartype migration_eligibility: ~azure.mgmt.datamigration.models.MigrationEligibilityInfo + :ivar result_type: Type of result - database level or task level. Required. Default value is + "LoginLevelOutput". + :vartype result_type: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Login name.""" + login_type: Optional[Union[str, "_models.LoginType"]] = rest_field(name="loginType", visibility=["read"]) + """The type of login. Known values are: \"WindowsUser\", \"WindowsGroup\", \"SqlLogin\", + \"Certificate\", \"AsymmetricKey\", \"ExternalUser\", and \"ExternalGroup\".""" + default_database: Optional[str] = rest_field(name="defaultDatabase", visibility=["read"]) + """The default database for the login.""" + is_enabled: Optional[bool] = rest_field(name="isEnabled", visibility=["read"]) + """The state of the login.""" + migration_eligibility: Optional["_models.MigrationEligibilityInfo"] = rest_field( + name="migrationEligibility", visibility=["read"] + ) + """Information about eligibility of login for migration.""" + result_type: Literal["LoginLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of result - database level or task level. Required. Default value is \"LoginLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "LoginLevelOutput" # type: ignore + + +class ConnectToSourceSqlServerTaskOutputTaskLevel( + ConnectToSourceSqlServerTaskOutput, discriminator="TaskLevelOutput" +): # pylint: disable=name-too-long + """Task level output for the task that validates connection to SQL Server and also validates + source server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar databases: Source databases as a map from database name to database id. + :vartype databases: str + :ivar logins: Source logins as a map from login name to login id. + :vartype logins: str + :ivar agent_jobs: Source agent jobs as a map from agent job name to id. + :vartype agent_jobs: str + :ivar database_tde_certificate_mapping: Mapping from database name to TDE certificate name, if + applicable. + :vartype database_tde_certificate_mapping: str + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Type of result - database level or task level. Required. Default value is + "TaskLevelOutput". + :vartype result_type: str + """ + + databases: Optional[str] = rest_field(visibility=["read"]) + """Source databases as a map from database name to database id.""" + logins: Optional[str] = rest_field(visibility=["read"]) + """Source logins as a map from login name to login id.""" + agent_jobs: Optional[str] = rest_field(name="agentJobs", visibility=["read"]) + """Source agent jobs as a map from agent job name to id.""" + database_tde_certificate_mapping: Optional[str] = rest_field( + name="databaseTdeCertificateMapping", visibility=["read"] + ) + """Mapping from database name to TDE certificate name, if applicable.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + result_type: Literal["TaskLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of result - database level or task level. Required. Default value is \"TaskLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TaskLevelOutput" # type: ignore + + +class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties, discriminator="ConnectToSource.SqlServer"): + """Properties for the task that validates connection to SQL Server and also validates source + server requirements. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] + :ivar task_id: Task id. + :vartype task_id: str + :ivar task_type: Task type. Required. ConnectToSource.SqlServer. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_SOURCE_SQL_SERVER + """ + + input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToSourceSqlServerTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """Task id.""" + task_type: Literal[TaskType.CONNECT_TO_SOURCE_SQL_SERVER] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToSource.SqlServer.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, + task_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_SOURCE_SQL_SERVER # type: ignore + + +class ConnectToTargetAzureDbForMySqlTaskInput(_Model): + """Input for the task that validates connection to Azure Database for MySQL and target server + requirements. + + :ivar source_connection_info: Connection information for source MySQL server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar target_connection_info: Connection information for target Azure Database for MySQL + server. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar is_offline_migration: Flag for whether or not the migration is offline. + :vartype is_offline_migration: bool + """ + + source_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source MySQL server. Required.""" + target_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for MySQL server. Required.""" + is_offline_migration: Optional[bool] = rest_field( + name="isOfflineMigration", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether or not the migration is offline.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.MySqlConnectionInfo", + target_connection_info: "_models.MySqlConnectionInfo", + is_offline_migration: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetAzureDbForMySqlTaskOutput(_Model): + """Output for the task that validates connection to Azure Database for MySQL and target server + requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar server_version: Version of the target server. + :vartype server_version: str + :ivar databases: List of databases on target server. + :vartype databases: list[str] + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + server_version: Optional[str] = rest_field(name="serverVersion", visibility=["read"]) + """Version of the target server.""" + databases: Optional[list[str]] = rest_field(visibility=["read"]) + """List of databases on target server.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class ConnectToTargetAzureDbForMySqlTaskProperties( + ProjectTaskProperties, discriminator="ConnectToTarget.AzureDbForMySql" +): # pylint: disable=name-too-long + """Properties for the task that validates connection to Azure Database for MySQL and target server + requirements. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput] + :ivar task_type: Task type. Required. ConnectToTarget.AzureDbForMySql. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL + """ + + input: Optional["_models.ConnectToTargetAzureDbForMySqlTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetAzureDbForMySqlTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.AzureDbForMySql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetAzureDbForMySqlTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL # type: ignore + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(_Model): # pylint: disable=name-too-long + """Input for the task that validates connection to Azure Database for PostgreSQL and target server + requirements. + + :ivar source_connection_info: Connection information for source PostgreSQL server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL + server. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + source_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source PostgreSQL server. Required.""" + target_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for PostgreSQL server. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.PostgreSqlConnectionInfo", + target_connection_info: "_models.PostgreSqlConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(_Model): # pylint: disable=name-too-long + """Output for the task that validates connection to Azure Database for PostgreSQL and target + server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar target_server_version: Version of the target server. + :vartype target_server_version: str + :ivar databases: List of databases on target server. + :vartype databases: list[str] + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Version of the target server.""" + databases: Optional[list[str]] = rest_field(visibility=["read"]) + """List of databases on target server.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties( + ProjectTaskProperties, discriminator="ConnectToTarget.AzureDbForPostgreSql.Sync" +): # pylint: disable=name-too-long + """Properties for the task that validates connection to Azure Database For PostgreSQL server and + target server requirements for online migration. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: + ~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput] + :ivar task_type: Task type. Required. ConnectToTarget.AzureDbForPostgreSql.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC + """ + + input: Optional["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput"]] = rest_field( + visibility=["read"] + ) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.AzureDbForPostgreSql.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC # type: ignore + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(_Model): # pylint: disable=name-too-long + """Input for the task that validates connection to Azure Database for PostgreSQL and target server + requirements for Oracle source. + + :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL + server. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + """ + + target_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for PostgreSQL server. Required.""" + + @overload + def __init__( + self, + *, + target_connection_info: "_models.PostgreSqlConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput(_Model): # pylint: disable=name-too-long + """Output for the task that validates connection to Azure Database for PostgreSQL and target + server requirements for Oracle source. + + :ivar target_server_version: Version of the target server. + :vartype target_server_version: str + :ivar databases: List of databases on target server. + :vartype databases: list[str] + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar database_schema_map: Mapping of schemas per database. + :vartype database_schema_map: + list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem] + """ + + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Version of the target server.""" + databases: Optional[list[str]] = rest_field(visibility=["read"]) + """List of databases on target server.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + database_schema_map: Optional[ + list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem"] + ] = rest_field(name="databaseSchemaMap", visibility=["read", "create", "update", "delete", "query"]) + """Mapping of schemas per database.""" + + @overload + def __init__( + self, + *, + database_schema_map: Optional[ + list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem"] + ] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem( + _Model +): # pylint: disable=name-too-long + """ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem. + + :ivar database: + :vartype database: str + :ivar schemas: + :vartype schemas: list[str] + """ + + database: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + schemas: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + + @overload + def __init__( + self, + *, + database: Optional[str] = None, + schemas: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties( + ProjectTaskProperties, discriminator="ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync" +): # pylint: disable=name-too-long + """Properties for the task that validates connection to Azure Database For PostgreSQL server and + target server requirements for online migration for Oracle source. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: + ~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput] + :ivar task_type: Task type. Required. ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC + """ + + input: Optional["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput"]] = rest_field( + visibility=["read"] + ) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC # type: ignore + + +class ConnectToTargetSqlDbSyncTaskInput(_Model): + """Input for the task that validates connection to Azure SQL DB and target server requirements. + + :ivar source_connection_info: Connection information for source SQL Server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Connection information for target SQL DB. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source SQL Server. Required.""" + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target SQL DB. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetSqlDbSyncTaskProperties(ProjectTaskProperties, discriminator="ConnectToTarget.SqlDb.Sync"): + """Properties for the task that validates connection to SQL DB and target server requirements for + online migration. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] + :ivar task_type: Task type. Required. ConnectToTarget.SqlDb.Sync. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_SQL_DB_SYNC + """ + + input: Optional["_models.ConnectToTargetSqlDbSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetSqlDbTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_SQL_DB_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.SqlDb.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetSqlDbSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_SQL_DB_SYNC # type: ignore + + +class ConnectToTargetSqlDbTaskInput(_Model): + """Input for the task that validates connection to SQL DB and target server requirements. + + :ivar target_connection_info: Connection information for target SQL DB. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar query_object_counts: Boolean flag indicating whether to query object counts for each + database on the target server. + :vartype query_object_counts: bool + """ + + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target SQL DB. Required.""" + query_object_counts: Optional[bool] = rest_field( + name="queryObjectCounts", visibility=["read", "create", "update", "delete", "query"] + ) + """Boolean flag indicating whether to query object counts for each database on the target server.""" + + @overload + def __init__( + self, + *, + target_connection_info: "_models.SqlConnectionInfo", + query_object_counts: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetSqlDbTaskOutput(_Model): + """Output for the task that validates connection to SQL DB and target server requirements. + + :ivar id: Result identifier. + :vartype id: str + :ivar databases: Source databases as a map from database name to database id. + :vartype databases: str + :ivar target_server_version: Version of the target server. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + databases: Optional[str] = rest_field(visibility=["read"]) + """Source databases as a map from database name to database id.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Version of the target server.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + + +class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties, discriminator="ConnectToTarget.SqlDb"): + """Properties for the task that validates connection to SQL DB and target server requirements. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] + :ivar created_on: DateTime in UTC when the task was created. + :vartype created_on: str + :ivar task_type: Task type. Required. ConnectToTarget.SqlDb. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_SQL_DB + """ + + input: Optional["_models.ConnectToTargetSqlDbTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetSqlDbTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + created_on: Optional[str] = rest_field(name="createdOn", visibility=["read", "create", "update", "delete", "query"]) + """DateTime in UTC when the task was created.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_SQL_DB] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.SqlDb.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetSqlDbTaskInput"] = None, + created_on: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_SQL_DB # type: ignore + + +class ConnectToTargetSqlMISyncTaskInput(_Model): + """Input for the task that validates connection to Azure SQL Database Managed Instance online + scenario. + + :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to + connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage + Account. Required. + :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + target_connection_info: "_models.MiSqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for Azure SQL Database Managed Instance. Required.""" + azure_app: "_models.AzureActiveDirectoryApp" = rest_field( + name="azureApp", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Active Directory Application the DMS (classic) instance will use to connect to the target + instance of Azure SQL Database Managed Instance and the Azure Storage Account. Required.""" + + @overload + def __init__( + self, + *, + target_connection_info: "_models.MiSqlConnectionInfo", + azure_app: "_models.AzureActiveDirectoryApp", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetSqlMISyncTaskOutput(_Model): + """Output for the task that validates connection to Azure SQL Database Managed Instance. + + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class ConnectToTargetSqlMISyncTaskProperties( + ProjectTaskProperties, discriminator="ConnectToTarget.AzureSqlDbMI.Sync.LRS" +): + """Properties for the task that validates connection to Azure SQL Database Managed Instance. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput] + :ivar task_type: Task type. Required. ConnectToTarget.AzureSqlDbMI.Sync.LRS. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS + """ + + input: Optional["_models.ConnectToTargetSqlMISyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetSqlMISyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.AzureSqlDbMI.Sync.LRS.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetSqlMISyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS # type: ignore + + +class ConnectToTargetSqlMITaskInput(_Model): + """Input for the task that validates connection to Azure SQL Database Managed Instance. + + :ivar target_connection_info: Connection information for target SQL Server. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar collect_logins: Flag for whether to collect logins from target SQL MI server. + :vartype collect_logins: bool + :ivar collect_agent_jobs: Flag for whether to collect agent jobs from target SQL MI server. + :vartype collect_agent_jobs: bool + :ivar validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on the + target SQL MI server. + :vartype validate_ssis_catalog_only: bool + """ + + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target SQL Server. Required.""" + collect_logins: Optional[bool] = rest_field( + name="collectLogins", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to collect logins from target SQL MI server.""" + collect_agent_jobs: Optional[bool] = rest_field( + name="collectAgentJobs", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to collect agent jobs from target SQL MI server.""" + validate_ssis_catalog_only: Optional[bool] = rest_field( + name="validateSsisCatalogOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """Flag for whether to validate SSIS catalog is reachable on the target SQL MI server.""" + + @overload + def __init__( + self, + *, + target_connection_info: "_models.SqlConnectionInfo", + collect_logins: Optional[bool] = None, + collect_agent_jobs: Optional[bool] = None, + validate_ssis_catalog_only: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ConnectToTargetSqlMITaskOutput(_Model): + """Output for the task that validates connection to Azure SQL Database Managed Instance. + + :ivar id: Result identifier. + :vartype id: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar logins: List of logins on the target server. + :vartype logins: list[str] + :ivar agent_jobs: List of agent jobs on the target server. + :vartype agent_jobs: list[str] + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + logins: Optional[list[str]] = rest_field(visibility=["read"]) + """List of logins on the target server.""" + agent_jobs: Optional[list[str]] = rest_field(name="agentJobs", visibility=["read"]) + """List of agent jobs on the target server.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class ConnectToTargetSqlMITaskProperties(ProjectTaskProperties, discriminator="ConnectToTarget.AzureSqlDbMI"): + """Properties for the task that validates connection to Azure SQL Database Managed Instance. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput] + :ivar task_type: Task type. Required. ConnectToTarget.AzureSqlDbMI. + :vartype task_type: str or ~azure.mgmt.datamigration.models.CONNECT_TO_TARGET_AZURE_SQL_DB_MI + """ + + input: Optional["_models.ConnectToTargetSqlMITaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ConnectToTargetSqlMITaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.CONNECT_TO_TARGET_AZURE_SQL_DB_MI] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ConnectToTarget.AzureSqlDbMI.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ConnectToTargetSqlMITaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.CONNECT_TO_TARGET_AZURE_SQL_DB_MI # type: ignore + + +class CopyProgressDetails(_Model): + """Details on progress of ADF copy activity. + + :ivar table_name: Table Name. + :vartype table_name: str + :ivar status: Status of the Copy activity (InProgress, Succeeded, Failed, Canceled). + :vartype status: str + :ivar parallel_copy_type: Type of parallel copy (Dynamic range, Physical partition, none). + :vartype parallel_copy_type: str + :ivar used_parallel_copies: The degree of parallelization. + :vartype used_parallel_copies: int + :ivar data_read: Bytes read. + :vartype data_read: int + :ivar data_written: Bytes written. + :vartype data_written: int + :ivar rows_read: Rows read. + :vartype rows_read: int + :ivar rows_copied: Rows Copied. + :vartype rows_copied: int + :ivar copy_start: Copy Start. + :vartype copy_start: ~datetime.datetime + :ivar copy_throughput: Copy throughput in KBps. + :vartype copy_throughput: float + :ivar copy_duration: Copy Duration in seconds. + :vartype copy_duration: int + """ + + table_name: Optional[str] = rest_field(name="tableName", visibility=["read"]) + """Table Name.""" + status: Optional[str] = rest_field(visibility=["read"]) + """Status of the Copy activity (InProgress, Succeeded, Failed, Canceled).""" + parallel_copy_type: Optional[str] = rest_field(name="parallelCopyType", visibility=["read"]) + """Type of parallel copy (Dynamic range, Physical partition, none).""" + used_parallel_copies: Optional[int] = rest_field(name="usedParallelCopies", visibility=["read"]) + """The degree of parallelization.""" + data_read: Optional[int] = rest_field(name="dataRead", visibility=["read"]) + """Bytes read.""" + data_written: Optional[int] = rest_field(name="dataWritten", visibility=["read"]) + """Bytes written.""" + rows_read: Optional[int] = rest_field(name="rowsRead", visibility=["read"]) + """Rows read.""" + rows_copied: Optional[int] = rest_field(name="rowsCopied", visibility=["read"]) + """Rows Copied.""" + copy_start: Optional[datetime.datetime] = rest_field(name="copyStart", visibility=["read"], format="rfc3339") + """Copy Start.""" + copy_throughput: Optional[float] = rest_field(name="copyThroughput", visibility=["read"]) + """Copy throughput in KBps.""" + copy_duration: Optional[int] = rest_field(name="copyDuration", visibility=["read"]) + """Copy Duration in seconds.""" + + +class DatabaseBackupInfo(_Model): + """Information about backup files when existing backup mode is used. + + :ivar database_name: Database name. + :vartype database_name: str + :ivar backup_type: Backup Type. Known values are: "Database", "TransactionLog", "File", + "DifferentialDatabase", "DifferentialFile", "Partial", and "DifferentialPartial". + :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType + :ivar backup_files: The list of backup files for the current database. + :vartype backup_files: list[str] + :ivar position: Position of current database backup in the file. + :vartype position: int + :ivar is_damaged: Database was damaged when backed up, but the backup operation was requested + to continue despite errors. + :vartype is_damaged: bool + :ivar is_compressed: Whether the backup set is compressed. + :vartype is_compressed: bool + :ivar family_count: Number of files in the backup set. + :vartype family_count: int + :ivar backup_finish_date: Date and time when the backup operation finished. + :vartype backup_finish_date: ~datetime.datetime + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Database name.""" + backup_type: Optional[Union[str, "_models.BackupType"]] = rest_field(name="backupType", visibility=["read"]) + """Backup Type. Known values are: \"Database\", \"TransactionLog\", \"File\", + \"DifferentialDatabase\", \"DifferentialFile\", \"Partial\", and \"DifferentialPartial\".""" + backup_files: Optional[list[str]] = rest_field(name="backupFiles", visibility=["read"]) + """The list of backup files for the current database.""" + position: Optional[int] = rest_field(visibility=["read"]) + """Position of current database backup in the file.""" + is_damaged: Optional[bool] = rest_field(name="isDamaged", visibility=["read"]) + """Database was damaged when backed up, but the backup operation was requested to continue despite + errors.""" + is_compressed: Optional[bool] = rest_field(name="isCompressed", visibility=["read"]) + """Whether the backup set is compressed.""" + family_count: Optional[int] = rest_field(name="familyCount", visibility=["read"]) + """Number of files in the backup set.""" + backup_finish_date: Optional[datetime.datetime] = rest_field( + name="backupFinishDate", visibility=["read"], format="rfc3339" + ) + """Date and time when the backup operation finished.""" + + +class DatabaseFileInfo(_Model): + """Database file specific information. + + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar id: Unique identifier for database file. + :vartype id: str + :ivar logical_name: Logical name of the file. + :vartype logical_name: str + :ivar physical_full_name: Operating-system full path of the file. + :vartype physical_full_name: str + :ivar restore_full_name: Suggested full path of the file for restoring. + :vartype restore_full_name: str + :ivar file_type: Database file type. Known values are: "Rows", "Log", "Filestream", + "NotSupported", and "Fulltext". + :vartype file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType + :ivar size_mb: Size of the file in megabytes. + :vartype size_mb: float + """ + + database_name: Optional[str] = rest_field( + name="databaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the database.""" + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Unique identifier for database file.""" + logical_name: Optional[str] = rest_field( + name="logicalName", visibility=["read", "create", "update", "delete", "query"] + ) + """Logical name of the file.""" + physical_full_name: Optional[str] = rest_field( + name="physicalFullName", visibility=["read", "create", "update", "delete", "query"] + ) + """Operating-system full path of the file.""" + restore_full_name: Optional[str] = rest_field( + name="restoreFullName", visibility=["read", "create", "update", "delete", "query"] + ) + """Suggested full path of the file for restoring.""" + file_type: Optional[Union[str, "_models.DatabaseFileType"]] = rest_field( + name="fileType", visibility=["read", "create", "update", "delete", "query"] + ) + """Database file type. Known values are: \"Rows\", \"Log\", \"Filestream\", \"NotSupported\", and + \"Fulltext\".""" + size_mb: Optional[float] = rest_field(name="sizeMB", visibility=["read", "create", "update", "delete", "query"]) + """Size of the file in megabytes.""" + + @overload + def __init__( + self, + *, + database_name: Optional[str] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + logical_name: Optional[str] = None, + physical_full_name: Optional[str] = None, + restore_full_name: Optional[str] = None, + file_type: Optional[Union[str, "_models.DatabaseFileType"]] = None, + size_mb: Optional[float] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseInfo(_Model): + """Project Database Details. + + :ivar source_database_name: Name of the database. Required. + :vartype source_database_name: str + """ + + source_database_name: str = rest_field( + name="sourceDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the database. Required.""" + + @overload + def __init__( + self, + *, + source_database_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Resource(_Model): + """Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The name of the resource.""" + type: Optional[str] = rest_field(visibility=["read"]) + """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or + \"Microsoft.Storage/storageAccounts\".""" + system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"]) + """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" + + +class ProxyResource(Resource): + """Proxy Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + """ + + +class DatabaseMigration(ProxyResource): + """Database Migration Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Database Migration Resource properties. + :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationProperties + """ + + properties: Optional["_models.DatabaseMigrationProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Database Migration Resource properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.DatabaseMigrationProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseMigrationBase(ProxyResource): + """Database Migration Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Database Migration Base Resource properties. + :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationBaseProperties + """ + + properties: Optional["_models.DatabaseMigrationBaseProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Database Migration Base Resource properties.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.DatabaseMigrationBaseProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseMigrationBaseProperties(_Model): + """Database Migration Base Resource properties. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + DatabaseMigrationPropertiesCosmosDbMongo + + :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". + :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType + :ivar scope: Resource Id of the target resource. + :vartype scope: str + :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded + implies that validations have been performed and migration has started. Known values are: + "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar migration_status: Migration status. + :vartype migration_status: str + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_service: Resource Id of the Migration Service. + :vartype migration_service: str + :ivar migration_operation_id: ID for current migration operation. + :vartype migration_operation_id: str + :ivar migration_failure_error: Error details in case of migration failure. + :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo + :ivar provisioning_error: Error message for migration provisioning failure, if any. + :vartype provisioning_error: str + """ + + __mapping__: dict[str, _Model] = {} + kind: str = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) + """Required. Known values are: \"SqlMi\", \"SqlVm\", \"SqlDb\", and \"MongoToCosmosDbMongo\".""" + scope: Optional[str] = rest_field(visibility=["read", "create"]) + """Resource Id of the target resource.""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning State of migration. ProvisioningState as Succeeded implies that validations have + been performed and migration has started. Known values are: \"Provisioning\", \"Updating\", + \"Succeeded\", \"Failed\", and \"Canceled\".""" + migration_status: Optional[str] = rest_field(name="migrationStatus", visibility=["read"]) + """Migration status.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Database migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Database migration end time.""" + migration_service: Optional[str] = rest_field( + name="migrationService", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource Id of the Migration Service.""" + migration_operation_id: Optional[str] = rest_field( + name="migrationOperationId", visibility=["read", "create", "update", "delete", "query"] + ) + """ID for current migration operation.""" + migration_failure_error: Optional["_models.ErrorInfo"] = rest_field( + name="migrationFailureError", visibility=["read"] + ) + """Error details in case of migration failure.""" + provisioning_error: Optional[str] = rest_field( + name="provisioningError", visibility=["read", "create", "update", "delete", "query"] + ) + """Error message for migration provisioning failure, if any.""" + + @overload + def __init__( + self, + *, + kind: str, + scope: Optional[str] = None, + migration_service: Optional[str] = None, + migration_operation_id: Optional[str] = None, + provisioning_error: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseMigrationCosmosDbMongo(ProxyResource): + """Database Migration Resource for Mongo to CosmosDb. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Database Migration Resource properties for CosmosDb for Mongo. + :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesCosmosDbMongo + """ + + properties: Optional["_models.DatabaseMigrationPropertiesCosmosDbMongo"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Database Migration Resource properties for CosmosDb for Mongo.""" + + __flattened_items = [ + "scope", + "provisioning_state", + "migration_status", + "started_on", + "ended_on", + "migration_service", + "migration_operation_id", + "migration_failure_error", + "provisioning_error", + "source_mongo_connection", + "target_mongo_connection", + "collection_list", + "kind", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DatabaseMigrationPropertiesCosmosDbMongo"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DatabaseMigrationProperties(DatabaseMigrationBaseProperties): + """Database Migration Resource properties. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + DatabaseMigrationPropertiesSqlDb, DatabaseMigrationPropertiesSqlMi, + DatabaseMigrationPropertiesSqlVm + + :ivar scope: Resource Id of the target resource. + :vartype scope: str + :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded + implies that validations have been performed and migration has started. Known values are: + "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar migration_status: Migration status. + :vartype migration_status: str + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_service: Resource Id of the Migration Service. + :vartype migration_service: str + :ivar migration_operation_id: ID for current migration operation. + :vartype migration_operation_id: str + :ivar migration_failure_error: Error details in case of migration failure. + :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo + :ivar provisioning_error: Error message for migration provisioning failure, if any. + :vartype provisioning_error: str + :ivar kind: Discriminator property for DatabaseMigrationProperties. Required. Default value is + None. + :vartype kind: str + :ivar source_sql_connection: Source SQL Server connection details. + :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation + :ivar source_database_name: Name of the source database. + :vartype source_database_name: str + :ivar source_server_name: Name of the source sql server. + :vartype source_server_name: str + :ivar target_database_collation: Database collation to be used for the target database. + :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str + """ + + __mapping__: dict[str, _Model] = {} + kind: str = rest_discriminator(name="kind") + """Discriminator property for DatabaseMigrationProperties. Required. Default value is None.""" + source_sql_connection: Optional["_models.SqlConnectionInformation"] = rest_field( + name="sourceSqlConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Source SQL Server connection details.""" + source_database_name: Optional[str] = rest_field( + name="sourceDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the source database.""" + source_server_name: Optional[str] = rest_field(name="sourceServerName", visibility=["read"]) + """Name of the source sql server.""" + target_database_collation: Optional[str] = rest_field( + name="targetDatabaseCollation", visibility=["read", "create", "update", "delete", "query"] + ) + """Database collation to be used for the target database.""" + sql_server_instance_id: Optional[str] = rest_field(name="sqlServerInstanceId", visibility=["read", "create"]) + """Optional property - Resource Id for the source Sql server instance. Validations are performed + on this property to ensure that it follows the correct format.""" + + @overload + def __init__( + self, + *, + kind: str, + scope: Optional[str] = None, + migration_service: Optional[str] = None, + migration_operation_id: Optional[str] = None, + provisioning_error: Optional[str] = None, + source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, + source_database_name: Optional[str] = None, + target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseMigrationPropertiesCosmosDbMongo(DatabaseMigrationBaseProperties, discriminator="MongoToCosmosDbMongo"): + """Database Migration Resource properties for CosmosDb for Mongo. + + :ivar scope: Resource Id of the target resource. + :vartype scope: str + :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded + implies that validations have been performed and migration has started. Known values are: + "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar migration_status: Migration status. + :vartype migration_status: str + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_service: Resource Id of the Migration Service. + :vartype migration_service: str + :ivar migration_operation_id: ID for current migration operation. + :vartype migration_operation_id: str + :ivar migration_failure_error: Error details in case of migration failure. + :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo + :ivar provisioning_error: Error message for migration provisioning failure, if any. + :vartype provisioning_error: str + :ivar source_mongo_connection: Source Mongo connection details. + :vartype source_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation + :ivar target_mongo_connection: Target Cosmos DB Mongo connection details. + :vartype target_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation + :ivar collection_list: List of Mongo Collections to be migrated. + :vartype collection_list: list[~azure.mgmt.datamigration.models.MongoMigrationCollection] + :ivar kind: Required. MongoToCosmosDbMongo. + :vartype kind: str or ~azure.mgmt.datamigration.models.MONGO_TO_COSMOS_DB_MONGO + """ + + source_mongo_connection: Optional["_models.MongoConnectionInformation"] = rest_field( + name="sourceMongoConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Source Mongo connection details.""" + target_mongo_connection: Optional["_models.MongoConnectionInformation"] = rest_field( + name="targetMongoConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Target Cosmos DB Mongo connection details.""" + collection_list: Optional[list["_models.MongoMigrationCollection"]] = rest_field( + name="collectionList", visibility=["read", "create", "update", "delete", "query"] + ) + """List of Mongo Collections to be migrated.""" + kind: Literal[ResourceType.MONGO_TO_COSMOS_DB_MONGO] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. MongoToCosmosDbMongo.""" + + @overload + def __init__( + self, + *, + scope: Optional[str] = None, + migration_service: Optional[str] = None, + migration_operation_id: Optional[str] = None, + provisioning_error: Optional[str] = None, + source_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, + target_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, + collection_list: Optional[list["_models.MongoMigrationCollection"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.kind = ResourceType.MONGO_TO_COSMOS_DB_MONGO # type: ignore + + +class DatabaseMigrationPropertiesSqlDb(DatabaseMigrationProperties, discriminator="SqlDb"): + """Database Migration Resource properties for SQL database. + + :ivar scope: Resource Id of the target resource. + :vartype scope: str + :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded + implies that validations have been performed and migration has started. Known values are: + "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar migration_status: Migration status. + :vartype migration_status: str + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_service: Resource Id of the Migration Service. + :vartype migration_service: str + :ivar migration_operation_id: ID for current migration operation. + :vartype migration_operation_id: str + :ivar migration_failure_error: Error details in case of migration failure. + :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo + :ivar provisioning_error: Error message for migration provisioning failure, if any. + :vartype provisioning_error: str + :ivar source_sql_connection: Source SQL Server connection details. + :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation + :ivar source_database_name: Name of the source database. + :vartype source_database_name: str + :ivar source_server_name: Name of the source sql server. + :vartype source_server_name: str + :ivar target_database_collation: Database collation to be used for the target database. + :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str + :ivar migration_status_details: Detailed migration status. Not included by default. + :vartype migration_status_details: ~azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails + :ivar target_sql_connection: Target SQL DB connection details. + :vartype target_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation + :ivar offline_configuration: Offline configuration. + :vartype offline_configuration: ~azure.mgmt.datamigration.models.SqlDbOfflineConfiguration + :ivar table_list: List of tables to copy. + :vartype table_list: list[str] + :ivar kind: Required. Default value is "SqlDb". + :vartype kind: str + """ + + migration_status_details: Optional["_models.SqlDbMigrationStatusDetails"] = rest_field( + name="migrationStatusDetails", visibility=["read"] + ) + """Detailed migration status. Not included by default.""" + target_sql_connection: Optional["_models.SqlConnectionInformation"] = rest_field( + name="targetSqlConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Target SQL DB connection details.""" + offline_configuration: Optional["_models.SqlDbOfflineConfiguration"] = rest_field( + name="offlineConfiguration", visibility=["read"] + ) + """Offline configuration.""" + table_list: Optional[list[str]] = rest_field( + name="tableList", visibility=["read", "create", "update", "delete", "query"] + ) + """List of tables to copy.""" + kind: Literal["SqlDb"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"SqlDb\".""" + + @overload + def __init__( + self, + *, + scope: Optional[str] = None, + migration_service: Optional[str] = None, + migration_operation_id: Optional[str] = None, + provisioning_error: Optional[str] = None, + source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, + source_database_name: Optional[str] = None, + target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, + target_sql_connection: Optional["_models.SqlConnectionInformation"] = None, + table_list: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.kind = "SqlDb" # type: ignore + + +class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties, discriminator="SqlMi"): + """Database Migration Resource properties for SQL Managed Instance. + + :ivar scope: Resource Id of the target resource. + :vartype scope: str + :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded + implies that validations have been performed and migration has started. Known values are: + "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar migration_status: Migration status. + :vartype migration_status: str + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_service: Resource Id of the Migration Service. + :vartype migration_service: str + :ivar migration_operation_id: ID for current migration operation. + :vartype migration_operation_id: str + :ivar migration_failure_error: Error details in case of migration failure. + :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo + :ivar provisioning_error: Error message for migration provisioning failure, if any. + :vartype provisioning_error: str + :ivar source_sql_connection: Source SQL Server connection details. + :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation + :ivar source_database_name: Name of the source database. + :vartype source_database_name: str + :ivar source_server_name: Name of the source sql server. + :vartype source_server_name: str + :ivar target_database_collation: Database collation to be used for the target database. + :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str + :ivar migration_status_details: Detailed migration status. Not included by default. + :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails + :ivar backup_configuration: Backup configuration info. + :vartype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration + :ivar offline_configuration: Offline configuration. + :vartype offline_configuration: ~azure.mgmt.datamigration.models.OfflineConfiguration + :ivar kind: Required. Default value is "SqlMi". + :vartype kind: str + """ + + migration_status_details: Optional["_models.MigrationStatusDetails"] = rest_field( + name="migrationStatusDetails", visibility=["read"] + ) + """Detailed migration status. Not included by default.""" + backup_configuration: Optional["_models.BackupConfiguration"] = rest_field( + name="backupConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup configuration info.""" + offline_configuration: Optional["_models.OfflineConfiguration"] = rest_field( + name="offlineConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Offline configuration.""" + kind: Literal["SqlMi"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"SqlMi\".""" + + @overload + def __init__( + self, + *, + scope: Optional[str] = None, + migration_service: Optional[str] = None, + migration_operation_id: Optional[str] = None, + provisioning_error: Optional[str] = None, + source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, + source_database_name: Optional[str] = None, + target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, + backup_configuration: Optional["_models.BackupConfiguration"] = None, + offline_configuration: Optional["_models.OfflineConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.kind = "SqlMi" # type: ignore + + +class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties, discriminator="SqlVm"): + """Database Migration Resource properties for SQL Virtual Machine. + + :ivar scope: Resource Id of the target resource. + :vartype scope: str + :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded + implies that validations have been performed and migration has started. Known values are: + "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar migration_status: Migration status. + :vartype migration_status: str + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_service: Resource Id of the Migration Service. + :vartype migration_service: str + :ivar migration_operation_id: ID for current migration operation. + :vartype migration_operation_id: str + :ivar migration_failure_error: Error details in case of migration failure. + :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo + :ivar provisioning_error: Error message for migration provisioning failure, if any. + :vartype provisioning_error: str + :ivar source_sql_connection: Source SQL Server connection details. + :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation + :ivar source_database_name: Name of the source database. + :vartype source_database_name: str + :ivar source_server_name: Name of the source sql server. + :vartype source_server_name: str + :ivar target_database_collation: Database collation to be used for the target database. + :vartype target_database_collation: str + :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server + instance. Validations are performed on this property to ensure that it follows the correct + format. + :vartype sql_server_instance_id: str + :ivar migration_status_details: Detailed migration status. Not included by default. + :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails + :ivar backup_configuration: Backup configuration info. + :vartype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration + :ivar offline_configuration: Offline configuration. + :vartype offline_configuration: ~azure.mgmt.datamigration.models.OfflineConfiguration + :ivar kind: Required. Default value is "SqlVm". + :vartype kind: str + """ + + migration_status_details: Optional["_models.MigrationStatusDetails"] = rest_field( + name="migrationStatusDetails", visibility=["read"] + ) + """Detailed migration status. Not included by default.""" + backup_configuration: Optional["_models.BackupConfiguration"] = rest_field( + name="backupConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup configuration info.""" + offline_configuration: Optional["_models.OfflineConfiguration"] = rest_field( + name="offlineConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Offline configuration.""" + kind: Literal["SqlVm"] = rest_discriminator(name="kind", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Required. Default value is \"SqlVm\".""" + + @overload + def __init__( + self, + *, + scope: Optional[str] = None, + migration_service: Optional[str] = None, + migration_operation_id: Optional[str] = None, + provisioning_error: Optional[str] = None, + source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, + source_database_name: Optional[str] = None, + target_database_collation: Optional[str] = None, + sql_server_instance_id: Optional[str] = None, + backup_configuration: Optional["_models.BackupConfiguration"] = None, + offline_configuration: Optional["_models.OfflineConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.kind = "SqlVm" # type: ignore + + +class DatabaseMigrationSqlDb(ProxyResource): + """Database Migration Resource for SQL Database. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Database Migration Resource properties for SQL database. + :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb + """ + + properties: Optional["_models.DatabaseMigrationPropertiesSqlDb"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Database Migration Resource properties for SQL database.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.DatabaseMigrationPropertiesSqlDb"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseMigrationSqlMi(ProxyResource): + """Database Migration Resource for SQL Managed Instance. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Database Migration Resource properties for SQL Managed Instance. + :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlMi + """ + + properties: Optional["_models.DatabaseMigrationPropertiesSqlMi"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Database Migration Resource properties for SQL Managed Instance.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.DatabaseMigrationPropertiesSqlMi"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseMigrationSqlVm(ProxyResource): + """Database Migration Resource for SQL Virtual Machine. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Database Migration Resource properties for SQL Virtual Machine. + :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlVm + """ + + properties: Optional["_models.DatabaseMigrationPropertiesSqlVm"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Database Migration Resource properties for SQL Virtual Machine.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.DatabaseMigrationPropertiesSqlVm"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DatabaseTable(_Model): + """Table properties. + + :ivar has_rows: Indicates whether table is empty or not. + :vartype has_rows: bool + :ivar name: Schema-qualified name of the table. + :vartype name: str + """ + + has_rows: Optional[bool] = rest_field(name="hasRows", visibility=["read"]) + """Indicates whether table is empty or not.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Schema-qualified name of the table.""" + + +class DataIntegrityValidationResult(_Model): + """Results for checksum based Data Integrity validation results. + + :ivar failed_objects: List of failed table names of source and target pair. + :vartype failed_objects: dict[str, str] + :ivar validation_errors: List of errors that happened while performing data integrity + validation. + :vartype validation_errors: ~azure.mgmt.datamigration.models.ValidationError + """ + + failed_objects: Optional[dict[str, str]] = rest_field( + name="failedObjects", visibility=["read", "create", "update", "delete", "query"] + ) + """List of failed table names of source and target pair.""" + validation_errors: Optional["_models.ValidationError"] = rest_field( + name="validationErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """List of errors that happened while performing data integrity validation.""" + + @overload + def __init__( + self, + *, + failed_objects: Optional[dict[str, str]] = None, + validation_errors: Optional["_models.ValidationError"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataMigrationService(Resource): + """An Azure Database Migration Service (classic) resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Custom service properties. + :vartype properties: ~azure.mgmt.datamigration.models.DataMigrationServiceProperties + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar etag: HTTP strong entity tag value. Ignored if submitted. + :vartype etag: str + :ivar kind: The resource kind. Only 'vm' (the default) is supported. + :vartype kind: str + :ivar sku: Service SKU. + :vartype sku: ~azure.mgmt.datamigration.models.ServiceSku + """ + + properties: Optional["_models.DataMigrationServiceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Custom service properties.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: Optional[str] = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives.""" + etag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """HTTP strong entity tag value. Ignored if submitted.""" + kind: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource kind. Only 'vm' (the default) is supported.""" + sku: Optional["_models.ServiceSku"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Service SKU.""" + + __flattened_items = [ + "provisioning_state", + "public_key", + "virtual_subnet_id", + "virtual_nic_id", + "auto_stop_delay", + "delete_resources_on_stop", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.DataMigrationServiceProperties"] = None, + tags: Optional[dict[str, str]] = None, + location: Optional[str] = None, + etag: Optional[str] = None, + kind: Optional[str] = None, + sku: Optional["_models.ServiceSku"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class DataMigrationServiceProperties(_Model): + """Properties of the Azure Database Migration Service (classic) instance. + + :ivar provisioning_state: The resource's provisioning state. Known values are: "Accepted", + "Deleting", "Deploying", "Stopped", "Stopping", "Starting", "FailedToStart", "FailedToStop", + "Succeeded", and "Failed". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ServiceProvisioningState + :ivar public_key: The public key of the service, used to encrypt secrets sent to the service. + :vartype public_key: str + :ivar virtual_subnet_id: The ID of the Microsoft.Network/virtualNetworks/subnets resource to + which the service should be joined. + :vartype virtual_subnet_id: str + :ivar virtual_nic_id: The ID of the Microsoft.Network/networkInterfaces resource which the + service have. + :vartype virtual_nic_id: str + :ivar auto_stop_delay: The time delay before the service is auto-stopped when idle. + :vartype auto_stop_delay: str + :ivar delete_resources_on_stop: Whether service resources should be deleted when stopped. + (Turned on by default). + :vartype delete_resources_on_stop: bool + """ + + provisioning_state: Optional[Union[str, "_models.ServiceProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The resource's provisioning state. Known values are: \"Accepted\", \"Deleting\", \"Deploying\", + \"Stopped\", \"Stopping\", \"Starting\", \"FailedToStart\", \"FailedToStop\", \"Succeeded\", + and \"Failed\".""" + public_key: Optional[str] = rest_field(name="publicKey", visibility=["read", "create", "update", "delete", "query"]) + """The public key of the service, used to encrypt secrets sent to the service.""" + virtual_subnet_id: Optional[str] = rest_field( + name="virtualSubnetId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be + joined.""" + virtual_nic_id: Optional[str] = rest_field( + name="virtualNicId", visibility=["read", "create", "update", "delete", "query"] + ) + """The ID of the Microsoft.Network/networkInterfaces resource which the service have.""" + auto_stop_delay: Optional[str] = rest_field( + name="autoStopDelay", visibility=["read", "create", "update", "delete", "query"] + ) + """The time delay before the service is auto-stopped when idle.""" + delete_resources_on_stop: Optional[bool] = rest_field( + name="deleteResourcesOnStop", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether service resources should be deleted when stopped. (Turned on by default).""" + + @overload + def __init__( + self, + *, + public_key: Optional[str] = None, + virtual_subnet_id: Optional[str] = None, + virtual_nic_id: Optional[str] = None, + auto_stop_delay: Optional[str] = None, + delete_resources_on_stop: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataMigrationServiceStatusResponse(_Model): + """Service health status. + + :ivar agent_version: The DMS instance agent version. + :vartype agent_version: str + :ivar agent_configuration: Agent Configuration. + :vartype agent_configuration: any + :ivar status: The machine-readable status, such as 'Initializing', 'Offline', 'Online', + 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or + 'Failed'. + :vartype status: str + :ivar vm_size: The services virtual machine size, such as 'Standard_D2_v2'. + :vartype vm_size: str + :ivar supported_task_types: The list of supported task types. + :vartype supported_task_types: list[str] + """ + + agent_version: Optional[str] = rest_field( + name="agentVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """The DMS instance agent version.""" + agent_configuration: Optional[Any] = rest_field( + name="agentConfiguration", visibility=["read", "create", "update", "delete", "query"] + ) + """Agent Configuration.""" + status: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The machine-readable status, such as 'Initializing', 'Offline', 'Online', 'Deploying', + 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed'.""" + vm_size: Optional[str] = rest_field(name="vmSize", visibility=["read", "create", "update", "delete", "query"]) + """The services virtual machine size, such as 'Standard_D2_v2'.""" + supported_task_types: Optional[list[str]] = rest_field( + name="supportedTaskTypes", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of supported task types.""" + + @overload + def __init__( + self, + *, + agent_version: Optional[str] = None, + agent_configuration: Optional[Any] = None, + status: Optional[str] = None, + vm_size: Optional[str] = None, + supported_task_types: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DeleteNode(_Model): + """Details of node to be deleted. + + :ivar node_name: The name of node to delete. + :vartype node_name: str + :ivar integration_runtime_name: The name of integration runtime. + :vartype integration_runtime_name: str + """ + + node_name: Optional[str] = rest_field(name="nodeName", visibility=["read", "create"]) + """The name of node to delete.""" + integration_runtime_name: Optional[str] = rest_field(name="integrationRuntimeName", visibility=["read", "create"]) + """The name of integration runtime.""" + + @overload + def __init__( + self, + *, + node_name: Optional[str] = None, + integration_runtime_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ErrorAdditionalInfo(_Model): + """The resource management error additional info. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + type: Optional[str] = rest_field(visibility=["read"]) + """The additional info type.""" + info: Optional[Any] = rest_field(visibility=["read"]) + """The additional info.""" + + +class ErrorDetail(_Model): + """The error detail. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: list[~azure.mgmt.datamigration.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: list[~azure.mgmt.datamigration.models.ErrorAdditionalInfo] + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """The error code.""" + message: Optional[str] = rest_field(visibility=["read"]) + """The error message.""" + target: Optional[str] = rest_field(visibility=["read"]) + """The error target.""" + details: Optional[list["_models.ErrorDetail"]] = rest_field(visibility=["read"]) + """The error details.""" + additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = rest_field( + name="additionalInfo", visibility=["read"] + ) + """The error additional info.""" + + +class ErrorInfo(_Model): + """Error details. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message. + :vartype message: str + """ + + code: Optional[str] = rest_field(visibility=["read"]) + """Error code.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Error message.""" + + +class ErrorResponse(_Model): + """Error response. + + :ivar error: The error object. + :vartype error: ~azure.mgmt.datamigration.models.ErrorDetail + """ + + error: Optional["_models.ErrorDetail"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The error object.""" + + @overload + def __init__( + self, + *, + error: Optional["_models.ErrorDetail"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ExecutionStatistics(_Model): + """Description about the errors happen while performing migration validation. + + :ivar execution_count: No. of query executions. + :vartype execution_count: int + :ivar cpu_time_ms: CPU Time in millisecond(s) for the query execution. + :vartype cpu_time_ms: float + :ivar elapsed_time_ms: Time taken in millisecond(s) for executing the query. + :vartype elapsed_time_ms: float + :ivar wait_stats: Dictionary of sql query execution wait types and the respective statistics. + :vartype wait_stats: dict[str, ~azure.mgmt.datamigration.models.WaitStatistics] + :ivar has_errors: Indicates whether the query resulted in an error. + :vartype has_errors: bool + :ivar sql_errors: List of sql Errors. + :vartype sql_errors: list[str] + """ + + execution_count: Optional[int] = rest_field( + name="executionCount", visibility=["read", "create", "update", "delete", "query"] + ) + """No. of query executions.""" + cpu_time_ms: Optional[float] = rest_field( + name="cpuTimeMs", visibility=["read", "create", "update", "delete", "query"] + ) + """CPU Time in millisecond(s) for the query execution.""" + elapsed_time_ms: Optional[float] = rest_field( + name="elapsedTimeMs", visibility=["read", "create", "update", "delete", "query"] + ) + """Time taken in millisecond(s) for executing the query.""" + wait_stats: Optional[dict[str, "_models.WaitStatistics"]] = rest_field( + name="waitStats", visibility=["read", "create", "update", "delete", "query"] + ) + """Dictionary of sql query execution wait types and the respective statistics.""" + has_errors: Optional[bool] = rest_field( + name="hasErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the query resulted in an error.""" + sql_errors: Optional[list[str]] = rest_field( + name="sqlErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """List of sql Errors.""" + + @overload + def __init__( + self, + *, + execution_count: Optional[int] = None, + cpu_time_ms: Optional[float] = None, + elapsed_time_ms: Optional[float] = None, + wait_stats: Optional[dict[str, "_models.WaitStatistics"]] = None, + has_errors: Optional[bool] = None, + sql_errors: Optional[list[str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FileShare(_Model): + """File share information with Path, Username, and Password. + + :ivar user_name: User name credential to connect to the share location. + :vartype user_name: str + :ivar password: Password credential used to connect to the share location. + :vartype password: str + :ivar path: The folder path for this share. Required. + :vartype path: str + """ + + user_name: Optional[str] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name credential to connect to the share location.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password credential used to connect to the share location.""" + path: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The folder path for this share. Required.""" + + @overload + def __init__( + self, + *, + path: str, + user_name: Optional[str] = None, + password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class FileStorageInfo(_Model): + """File storage information. + + :ivar uri: A URI that can be used to access the file content. + :vartype uri: str + :ivar headers: Dictionary of . + :vartype headers: dict[str, str] + """ + + uri: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """A URI that can be used to access the file content.""" + headers: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dictionary of .""" + + @overload + def __init__( + self, + *, + uri: Optional[str] = None, + headers: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetTdeCertificatesSqlTaskInput(_Model): + """Input for the task that gets TDE certificates in Base64 encoded format. + + :ivar connection_info: Connection information for SQL Server. Required. + :vartype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar backup_file_share: Backup file share information for file share to be used for + temporarily storing files. Required. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar selected_certificates: List containing certificate names and corresponding password to + use for encrypting the exported certificate. Required. + :vartype selected_certificates: list[~azure.mgmt.datamigration.models.SelectedCertificateInput] + """ + + connection_info: "_models.SqlConnectionInfo" = rest_field( + name="connectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for SQL Server. Required.""" + backup_file_share: "_models.FileShare" = rest_field( + name="backupFileShare", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup file share information for file share to be used for temporarily storing files. + Required.""" + selected_certificates: list["_models.SelectedCertificateInput"] = rest_field( + name="selectedCertificates", visibility=["read", "create", "update", "delete", "query"] + ) + """List containing certificate names and corresponding password to use for encrypting the exported + certificate. Required.""" + + @overload + def __init__( + self, + *, + connection_info: "_models.SqlConnectionInfo", + backup_file_share: "_models.FileShare", + selected_certificates: list["_models.SelectedCertificateInput"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetTdeCertificatesSqlTaskOutput(_Model): + """Output of the task that gets TDE certificates in Base64 encoded format. + + :ivar base64_encoded_certificates: Mapping from certificate name to base 64 encoded format. + :vartype base64_encoded_certificates: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + base64_encoded_certificates: Optional[str] = rest_field(name="base64EncodedCertificates", visibility=["read"]) + """Mapping from certificate name to base 64 encoded format.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties, discriminator="GetTDECertificates.Sql"): + """Properties for the task that gets TDE certificates in Base64 encoded format. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput] + :ivar task_type: Task type. Required. GetTDECertificates.Sql. + :vartype task_type: str or ~azure.mgmt.datamigration.models.GET_TDE_CERTIFICATES_SQL + """ + + input: Optional["_models.GetTdeCertificatesSqlTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.GetTdeCertificatesSqlTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.GET_TDE_CERTIFICATES_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. GetTDECertificates.Sql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.GetTdeCertificatesSqlTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.GET_TDE_CERTIFICATES_SQL # type: ignore + + +class GetUserTablesMySqlTaskInput(_Model): + """Input for the task that collects user tables for the given list of databases. + + :ivar connection_info: Connection information for SQL Server. Required. + :vartype connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar selected_databases: List of database names to collect tables for. Required. + :vartype selected_databases: list[str] + """ + + connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="connectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for SQL Server. Required.""" + selected_databases: list[str] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """List of database names to collect tables for. Required.""" + + @overload + def __init__( + self, + *, + connection_info: "_models.MySqlConnectionInfo", + selected_databases: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetUserTablesMySqlTaskOutput(_Model): + """Output of the task that collects user tables for the given list of databases. + + :ivar id: Result identifier. + :vartype id: str + :ivar databases_to_tables: Mapping from database name to list of tables. + :vartype databases_to_tables: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + databases_to_tables: Optional[str] = rest_field(name="databasesToTables", visibility=["read"]) + """Mapping from database name to list of tables.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class GetUserTablesMySqlTaskProperties(ProjectTaskProperties, discriminator="GetUserTablesMySql"): + """Properties for the task that collects user tables for the given list of databases. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesMySqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesMySqlTaskOutput] + :ivar task_type: Task type. Required. GetUserTablesMySql. + :vartype task_type: str or ~azure.mgmt.datamigration.models.GET_USER_TABLES_MY_SQL + """ + + input: Optional["_models.GetUserTablesMySqlTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.GetUserTablesMySqlTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.GET_USER_TABLES_MY_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. GetUserTablesMySql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.GetUserTablesMySqlTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.GET_USER_TABLES_MY_SQL # type: ignore + + +class GetUserTablesOracleTaskInput(_Model): + """Input for the task that gets the list of tables contained within a provided list of Oracle + schemas. + + :ivar connection_info: Information for connecting to Oracle source. Required. + :vartype connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo + :ivar selected_schemas: List of Oracle schemas for which to collect tables. Required. + :vartype selected_schemas: list[str] + """ + + connection_info: "_models.OracleConnectionInfo" = rest_field( + name="connectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to Oracle source. Required.""" + selected_schemas: list[str] = rest_field( + name="selectedSchemas", visibility=["read", "create", "update", "delete", "query"] + ) + """List of Oracle schemas for which to collect tables. Required.""" + + @overload + def __init__( + self, + *, + connection_info: "_models.OracleConnectionInfo", + selected_schemas: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetUserTablesOracleTaskOutput(_Model): + """Output for the task that gets the list of tables contained within a provided list of Oracle + schemas. + + :ivar schema_name: The schema this result is for. + :vartype schema_name: str + :ivar tables: List of valid tables found for this schema. + :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + schema_name: Optional[str] = rest_field(name="schemaName", visibility=["read"]) + """The schema this result is for.""" + tables: Optional[list["_models.DatabaseTable"]] = rest_field(visibility=["read"]) + """List of valid tables found for this schema.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class GetUserTablesOracleTaskProperties(ProjectTaskProperties, discriminator="GetUserTablesOracle"): + """Properties for the task that collects user tables for the given list of Oracle schemas. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesOracleTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesOracleTaskOutput] + :ivar task_type: Task type. Required. GetUserTablesOracle. + :vartype task_type: str or ~azure.mgmt.datamigration.models.GET_USER_TABLES_ORACLE + """ + + input: Optional["_models.GetUserTablesOracleTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.GetUserTablesOracleTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.GET_USER_TABLES_ORACLE] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. GetUserTablesOracle.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.GetUserTablesOracleTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.GET_USER_TABLES_ORACLE # type: ignore + + +class GetUserTablesPostgreSqlTaskInput(_Model): + """Input for the task that gets the list of tables for a provided list of PostgreSQL databases. + + :ivar connection_info: Information for connecting to PostgreSQL source. Required. + :vartype connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :ivar selected_databases: List of PostgreSQL databases for which to collect tables. Required. + :vartype selected_databases: list[str] + """ + + connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="connectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to PostgreSQL source. Required.""" + selected_databases: list[str] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """List of PostgreSQL databases for which to collect tables. Required.""" + + @overload + def __init__( + self, + *, + connection_info: "_models.PostgreSqlConnectionInfo", + selected_databases: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetUserTablesPostgreSqlTaskOutput(_Model): + """Output for the task that gets the list of tables for a provided list of PostgreSQL databases. + + :ivar database_name: The database this result is for. + :vartype database_name: str + :ivar tables: List of valid tables found for this database. + :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] + :ivar validation_errors: Validation errors associated with the task. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """The database this result is for.""" + tables: Optional[list["_models.DatabaseTable"]] = rest_field(visibility=["read"]) + """List of valid tables found for this database.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors associated with the task.""" + + +class GetUserTablesPostgreSqlTaskProperties(ProjectTaskProperties, discriminator="GetUserTablesPostgreSql"): + """Properties for the task that collects user tables for the given list of databases. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskOutput] + :ivar task_type: Task type. Required. GetUserTablesPostgreSql. + :vartype task_type: str or ~azure.mgmt.datamigration.models.GET_USER_TABLES_POSTGRE_SQL + """ + + input: Optional["_models.GetUserTablesPostgreSqlTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.GetUserTablesPostgreSqlTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.GET_USER_TABLES_POSTGRE_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. GetUserTablesPostgreSql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.GetUserTablesPostgreSqlTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.GET_USER_TABLES_POSTGRE_SQL # type: ignore + + +class GetUserTablesSqlSyncTaskInput(_Model): + """Input for the task that collects user tables for the given list of databases. + + :ivar source_connection_info: Connection information for SQL Server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Connection information for SQL DB. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_source_databases: List of source database names to collect tables for. Required. + :vartype selected_source_databases: list[str] + :ivar selected_target_databases: List of target database names to collect tables for. Required. + :vartype selected_target_databases: list[str] + """ + + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for SQL Server. Required.""" + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for SQL DB. Required.""" + selected_source_databases: list[str] = rest_field( + name="selectedSourceDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """List of source database names to collect tables for. Required.""" + selected_target_databases: list[str] = rest_field( + name="selectedTargetDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """List of target database names to collect tables for. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_source_databases: list[str], + selected_target_databases: list[str], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetUserTablesSqlSyncTaskOutput(_Model): + """Output of the task that collects user tables for the given list of databases. + + :ivar databases_to_source_tables: Mapping from database name to list of source tables. + :vartype databases_to_source_tables: str + :ivar databases_to_target_tables: Mapping from database name to list of target tables. + :vartype databases_to_target_tables: str + :ivar table_validation_errors: Mapping from database name to list of validation errors. + :vartype table_validation_errors: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + databases_to_source_tables: Optional[str] = rest_field(name="databasesToSourceTables", visibility=["read"]) + """Mapping from database name to list of source tables.""" + databases_to_target_tables: Optional[str] = rest_field(name="databasesToTargetTables", visibility=["read"]) + """Mapping from database name to list of target tables.""" + table_validation_errors: Optional[str] = rest_field(name="tableValidationErrors", visibility=["read"]) + """Mapping from database name to list of validation errors.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties, discriminator="GetUserTables.AzureSqlDb.Sync"): + """Properties for the task that collects user tables for the given list of databases. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput] + :ivar task_type: Task type. Required. GetUserTables.AzureSqlDb.Sync. + :vartype task_type: str or ~azure.mgmt.datamigration.models.GET_USER_TABLES_AZURE_SQL_DB_SYNC + """ + + input: Optional["_models.GetUserTablesSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.GetUserTablesSqlSyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.GET_USER_TABLES_AZURE_SQL_DB_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. GetUserTables.AzureSqlDb.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.GetUserTablesSqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.GET_USER_TABLES_AZURE_SQL_DB_SYNC # type: ignore + + +class GetUserTablesSqlTaskInput(_Model): + """Input for the task that collects user tables for the given list of databases. + + :ivar connection_info: Connection information for SQL Server. Required. + :vartype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: List of database names to collect tables for. Required. + :vartype selected_databases: list[str] + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + """ + + connection_info: "_models.SqlConnectionInfo" = rest_field( + name="connectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for SQL Server. Required.""" + selected_databases: list[str] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """List of database names to collect tables for. Required.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + + @overload + def __init__( + self, + *, + connection_info: "_models.SqlConnectionInfo", + selected_databases: list[str], + encrypted_key_for_secure_fields: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class GetUserTablesSqlTaskOutput(_Model): + """Output of the task that collects user tables for the given list of databases. + + :ivar id: Result identifier. + :vartype id: str + :ivar databases_to_tables: Mapping from database name to list of tables. + :vartype databases_to_tables: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + databases_to_tables: Optional[str] = rest_field(name="databasesToTables", visibility=["read"]) + """Mapping from database name to list of tables.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class GetUserTablesSqlTaskProperties(ProjectTaskProperties, discriminator="GetUserTables.Sql"): + """Properties for the task that collects user tables for the given list of databases. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput] + :ivar task_id: Task id. + :vartype task_id: str + :ivar task_type: Task type. Required. GetUserTables.Sql. + :vartype task_type: str or ~azure.mgmt.datamigration.models.GET_USER_TABLES_SQL + """ + + input: Optional["_models.GetUserTablesSqlTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.GetUserTablesSqlTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """Task id.""" + task_type: Literal[TaskType.GET_USER_TABLES_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. GetUserTables.Sql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.GetUserTablesSqlTaskInput"] = None, + task_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.GET_USER_TABLES_SQL # type: ignore + + +class InstallOCIDriverTaskInput(_Model): + """Input for the service task to install an OCI driver. + + :ivar driver_package_name: Name of the uploaded driver package to install. + :vartype driver_package_name: str + """ + + driver_package_name: Optional[str] = rest_field( + name="driverPackageName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the uploaded driver package to install.""" + + @overload + def __init__( + self, + *, + driver_package_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InstallOCIDriverTaskOutput(_Model): + """Output for the service task to install an OCI driver. + + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class InstallOCIDriverTaskProperties(ProjectTaskProperties, discriminator="Service.Install.OCI"): + """Properties for the task that installs an OCI driver. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Input for the service task to install an OCI driver. + :vartype input: ~azure.mgmt.datamigration.models.InstallOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.InstallOCIDriverTaskOutput] + :ivar task_type: Task type. Required. Service.Install.OCI. + :vartype task_type: str or ~azure.mgmt.datamigration.models.SERVICE_INSTALL_OCI + """ + + input: Optional["_models.InstallOCIDriverTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Input for the service task to install an OCI driver.""" + output: Optional[list["_models.InstallOCIDriverTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.SERVICE_INSTALL_OCI] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Service.Install.OCI.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.InstallOCIDriverTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.SERVICE_INSTALL_OCI # type: ignore + + +class IntegrationRuntimeMonitoringData(_Model): + """Integration Runtime Monitoring Data. + + :ivar name: The name of Integration Runtime. + :vartype name: str + :ivar nodes: Integration Runtime node monitoring data. + :vartype nodes: list[~azure.mgmt.datamigration.models.NodeMonitoringData] + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """The name of Integration Runtime.""" + nodes: Optional[list["_models.NodeMonitoringData"]] = rest_field(visibility=["read"]) + """Integration Runtime node monitoring data.""" + + +class ManagedServiceIdentity(_Model): + """Managed service identity (system assigned and/or user assigned identities). + + :ivar principal_id: The service principal ID of the system assigned identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :ivar type: The type of managed identity assigned to this resource. Required. Known values are: + "None", "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". + :vartype type: str or ~azure.mgmt.datamigration.models.ManagedServiceIdentityType + :ivar user_assigned_identities: The identities assigned to this resource by the user. + :vartype user_assigned_identities: dict[str, + ~azure.mgmt.datamigration.models.UserAssignedIdentity] + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The service principal ID of the system assigned identity. This property will only be provided + for a system assigned identity.""" + tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"]) + """The tenant ID of the system assigned identity. This property will only be provided for a system + assigned identity.""" + type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of managed identity assigned to this resource. Required. Known values are: \"None\", + \"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned,UserAssigned\".""" + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = rest_field( + name="userAssignedIdentities", visibility=["read", "create", "update", "delete", "query"] + ) + """The identities assigned to this resource by the user.""" + + @overload + def __init__( + self, + *, + type: Union[str, "_models.ManagedServiceIdentityType"], + user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMISyncCompleteCommandInput(_Model): + """Input for command that completes online migration for an Azure SQL Database Managed Instance. + + :ivar source_database_name: Name of managed instance database. Required. + :vartype source_database_name: str + """ + + source_database_name: str = rest_field( + name="sourceDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of managed instance database. Required.""" + + @overload + def __init__( + self, + *, + source_database_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMISyncCompleteCommandOutput(_Model): + """Output for command that completes online migration for an Azure SQL Database Managed Instance. + + :ivar errors: List of errors that happened during the command execution. + :vartype errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + errors: Optional[list["_models.ReportableException"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of errors that happened during the command execution.""" + + @overload + def __init__( + self, + *, + errors: Optional[list["_models.ReportableException"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMISyncCompleteCommandProperties( + CommandProperties, discriminator="Migrate.SqlServer.AzureDbSqlMi.Complete" +): + """Properties for the command that completes online migration for an Azure SQL Database Managed + Instance. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. Known values are: + "Unknown", "Accepted", "Running", "Succeeded", and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :ivar input: Command input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput + :ivar output: Command output. This is ignored if submitted. + :vartype output: ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput + :ivar command_type: Command type. Required. Migrate.SqlServer.AzureDbSqlMi.Complete. + :vartype command_type: str or + ~azure.mgmt.datamigration.models.MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE + """ + + input: Optional["_models.MigrateMISyncCompleteCommandInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Command input.""" + output: Optional["_models.MigrateMISyncCompleteCommandOutput"] = rest_field(visibility=["read"]) + """Command output. This is ignored if submitted.""" + command_type: Literal[CommandType.MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE] = rest_discriminator(name="commandType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Command type. Required. Migrate.SqlServer.AzureDbSqlMi.Complete.""" + + @overload + def __init__( + self, + *, + input: Optional["_models.MigrateMISyncCompleteCommandInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.command_type = CommandType.MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE # type: ignore + + +class MigrateMongoDbTaskProperties(ProjectTaskProperties, discriminator="Migrate.MongoDb"): + """Properties for the task that migrates data between MongoDB data sources. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Describes how a MongoDB data migration should be performed. + :vartype input: ~azure.mgmt.datamigration.models.MongoDbMigrationSettings + :ivar output: + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbProgress] + :ivar task_type: Task type. Required. Migrate.MongoDb. + :vartype task_type: str or ~azure.mgmt.datamigration.models.MIGRATE_MONGO_DB + """ + + input: Optional["_models.MongoDbMigrationSettings"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes how a MongoDB data migration should be performed.""" + output: Optional[list["_models.MongoDbProgress"]] = rest_field(visibility=["read"]) + task_type: Literal[TaskType.MIGRATE_MONGO_DB] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.MongoDb.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MongoDbMigrationSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_MONGO_DB # type: ignore + + +class MigrateMySqlAzureDbForMySqlOfflineDatabaseInput(_Model): # pylint: disable=name-too-long + """Database specific information for offline MySQL to Azure Database for MySQL migration task + inputs. + + :ivar name: Name of the database. + :vartype name: str + :ivar target_database_name: Name of target database. Note: Target database will be truncated + before starting migration. + :vartype target_database_name: str + :ivar table_map: Mapping of source to target tables. + :vartype table_map: dict[str, str] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the database.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of target database. Note: Target database will be truncated before starting migration.""" + table_map: Optional[dict[str, str]] = rest_field( + name="tableMap", visibility=["read", "create", "update", "delete", "query"] + ) + """Mapping of source to target tables.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + target_database_name: Optional[str] = None, + table_map: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMySqlAzureDbForMySqlOfflineTaskInput(_Model): # pylint: disable=name-too-long + """Input for the task that migrates MySQL databases to Azure Database for MySQL for offline + migrations. + + :ivar source_connection_info: Connection information for source MySQL. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar target_connection_info: Connection information for target Azure Database for MySQL. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput] + :ivar make_source_server_read_only: Setting to set the source server read only. + :vartype make_source_server_read_only: bool + :ivar started_on: Parameter to specify when the migration started. + :vartype started_on: ~datetime.datetime + :ivar optional_agent_settings: Optional parameters for fine tuning the data transfer rate + during migration. + :vartype optional_agent_settings: dict[str, str] + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + """ + + source_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source MySQL. Required.""" + target_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for MySQL. Required.""" + selected_databases: list["_models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + make_source_server_read_only: Optional[bool] = rest_field( + name="makeSourceServerReadOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """Setting to set the source server read only.""" + started_on: Optional[datetime.datetime] = rest_field( + name="startedOn", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Parameter to specify when the migration started.""" + optional_agent_settings: Optional[dict[str, str]] = rest_field( + name="optionalAgentSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Optional parameters for fine tuning the data transfer rate during migration.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.MySqlConnectionInfo", + target_connection_info: "_models.MySqlConnectionInfo", + selected_databases: list["_models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput"], + make_source_server_read_only: Optional[bool] = None, + started_on: Optional[datetime.datetime] = None, + optional_agent_settings: Optional[dict[str, str]] = None, + encrypted_key_for_secure_fields: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMySqlAzureDbForMySqlOfflineTaskOutput(_Model): # pylint: disable=name-too-long + """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, + MigrateMySqlAzureDbForMySqlOfflineTaskOutputError, + MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel, + MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel( + MigrateMySqlAzureDbForMySqlOfflineTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Migration stage that this database is in. Known values are: "None", "Initialize", + "Backup", "FileCopy", "Restore", and "Completed". + :vartype stage: str or ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar status_message: Status message. + :vartype status_message: str + :ivar message: Migration progress message. + :vartype message: str + :ivar number_of_objects: Number of objects. + :vartype number_of_objects: int + :ivar number_of_objects_completed: Number of successfully completed objects. + :vartype number_of_objects_completed: int + :ivar error_count: Number of database/object errors. + :vartype error_count: int + :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the + item. + :vartype result_prefix: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar last_storage_update: Last time the storage was updated. + :vartype last_storage_update: ~datetime.datetime + :ivar object_summary: Summary of object results in the migration. + :vartype object_summary: str + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + stage: Optional[Union[str, "_models.DatabaseMigrationStage"]] = rest_field(visibility=["read"]) + """Migration stage that this database is in. Known values are: \"None\", \"Initialize\", + \"Backup\", \"FileCopy\", \"Restore\", and \"Completed\".""" + status_message: Optional[str] = rest_field(name="statusMessage", visibility=["read"]) + """Status message.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + number_of_objects: Optional[int] = rest_field(name="numberOfObjects", visibility=["read"]) + """Number of objects.""" + number_of_objects_completed: Optional[int] = rest_field(name="numberOfObjectsCompleted", visibility=["read"]) + """Number of successfully completed objects.""" + error_count: Optional[int] = rest_field(name="errorCount", visibility=["read"]) + """Number of database/object errors.""" + error_prefix: Optional[str] = rest_field(name="errorPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all errors of the item.""" + result_prefix: Optional[str] = rest_field(name="resultPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all sub-tem results of the item.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + last_storage_update: Optional[datetime.datetime] = rest_field( + name="lastStorageUpdate", visibility=["read"], format="rfc3339" + ) + """Last time the storage was updated.""" + object_summary: Optional[str] = rest_field(name="objectSummary", visibility=["read"]) + """Summary of object results in the migration.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlOfflineTaskOutputError( + MigrateMySqlAzureDbForMySqlOfflineTaskOutput, discriminator="ErrorOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlOfflineTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel( + MigrateMySqlAzureDbForMySqlOfflineTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar duration_in_seconds: Duration of task execution in seconds. + :vartype duration_in_seconds: int + :ivar status: Current status of migration. Known values are: "Default", "Connecting", + "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", + "Completed", and "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar status_message: Migration status message. + :vartype status_message: str + :ivar message: Migration progress message. + :vartype message: str + :ivar databases: Selected databases as a map from database name to database id. + :vartype databases: str + :ivar database_summary: Summary of database results in the migration. + :vartype database_summary: str + :ivar migration_report_result: Migration Report Result, provides unique url for downloading + your migration report. + :vartype migration_report_result: ~azure.mgmt.datamigration.models.MigrationReportResult + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar last_storage_update: Last time the storage was updated. + :vartype last_storage_update: ~datetime.datetime + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + duration_in_seconds: Optional[int] = rest_field(name="durationInSeconds", visibility=["read"]) + """Duration of task execution in seconds.""" + status: Optional[Union[str, "_models.MigrationStatus"]] = rest_field(visibility=["read"]) + """Current status of migration. Known values are: \"Default\", \"Connecting\", + \"SourceAndTargetSelected\", \"SelectLogins\", \"Configured\", \"Running\", \"Error\", + \"Stopped\", \"Completed\", and \"CompletedWithWarnings\".""" + status_message: Optional[str] = rest_field(name="statusMessage", visibility=["read"]) + """Migration status message.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + databases: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Selected databases as a map from database name to database id.""" + database_summary: Optional[str] = rest_field(name="databaseSummary", visibility=["read"]) + """Summary of database results in the migration.""" + migration_report_result: Optional["_models.MigrationReportResult"] = rest_field( + name="migrationReportResult", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration Report Result, provides unique url for downloading your migration report.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + last_storage_update: Optional[datetime.datetime] = rest_field( + name="lastStorageUpdate", visibility=["read"], format="rfc3339" + ) + """Last time the storage was updated.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + *, + databases: Optional[str] = None, + migration_report_result: Optional["_models.MigrationReportResult"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel( + MigrateMySqlAzureDbForMySqlOfflineTaskOutput, discriminator="TableLevelOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar object_name: Name of the item. + :vartype object_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message. + :vartype status_message: str + :ivar items_count: Number of items. + :vartype items_count: int + :ivar items_completed_count: Number of successfully completed items. + :vartype items_completed_count: int + :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the + item. + :vartype result_prefix: str + :ivar last_storage_update: Last time the storage was updated. + :vartype last_storage_update: ~datetime.datetime + :ivar result_type: Result type. Required. Default value is "TableLevelOutput". + :vartype result_type: str + """ + + object_name: Optional[str] = rest_field(name="objectName", visibility=["read"]) + """Name of the item.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + status_message: Optional[str] = rest_field(name="statusMessage", visibility=["read"]) + """Status message.""" + items_count: Optional[int] = rest_field(name="itemsCount", visibility=["read"]) + """Number of items.""" + items_completed_count: Optional[int] = rest_field(name="itemsCompletedCount", visibility=["read"]) + """Number of successfully completed items.""" + error_prefix: Optional[str] = rest_field(name="errorPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all errors of the item.""" + result_prefix: Optional[str] = rest_field(name="resultPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all sub-tem results of the item.""" + last_storage_update: Optional[datetime.datetime] = rest_field( + name="lastStorageUpdate", visibility=["read"], format="rfc3339" + ) + """Last time the storage was updated.""" + result_type: Literal["TableLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"TableLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TableLevelOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlOfflineTaskProperties( + ProjectTaskProperties, discriminator="Migrate.MySql.AzureDbForMySql" +): # pylint: disable=name-too-long + """Properties for the task that migrates MySQL databases to Azure Database for MySQL for offline + migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput] + :ivar is_cloneable: whether the task can be cloned or not. + :vartype is_cloneable: bool + :ivar task_id: Task id. + :vartype task_id: str + :ivar task_type: Task type. Required. Migrate.MySql.AzureDbForMySql. + :vartype task_type: str or ~azure.mgmt.datamigration.models.MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL + """ + + input: Optional["_models.MigrateMySqlAzureDbForMySqlOfflineTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + is_cloneable: Optional[bool] = rest_field( + name="isCloneable", visibility=["read", "create", "update", "delete", "query"] + ) + """whether the task can be cloned or not.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """Task id.""" + task_type: Literal[TaskType.MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.MySql.AzureDbForMySql.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateMySqlAzureDbForMySqlOfflineTaskInput"] = None, + is_cloneable: Optional[bool] = None, + task_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL # type: ignore + + +class MigrateMySqlAzureDbForMySqlSyncDatabaseInput(_Model): # pylint: disable=name-too-long + """Database specific information for MySQL to Azure Database for MySQL migration task inputs. + + :ivar name: Name of the database. + :vartype name: str + :ivar target_database_name: Name of target database. Note: Target database will be truncated + before starting migration. + :vartype target_database_name: str + :ivar migration_setting: Migration settings which tune the migration behavior. + :vartype migration_setting: dict[str, str] + :ivar source_setting: Source settings to tune source endpoint migration behavior. + :vartype source_setting: dict[str, str] + :ivar target_setting: Target settings to tune target endpoint migration behavior. + :vartype target_setting: dict[str, str] + :ivar table_map: Mapping of source to target tables. + :vartype table_map: dict[str, str] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the database.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of target database. Note: Target database will be truncated before starting migration.""" + migration_setting: Optional[dict[str, str]] = rest_field( + name="migrationSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration settings which tune the migration behavior.""" + source_setting: Optional[dict[str, str]] = rest_field( + name="sourceSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Source settings to tune source endpoint migration behavior.""" + target_setting: Optional[dict[str, str]] = rest_field( + name="targetSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Target settings to tune target endpoint migration behavior.""" + table_map: Optional[dict[str, str]] = rest_field( + name="tableMap", visibility=["read", "create", "update", "delete", "query"] + ) + """Mapping of source to target tables.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + target_database_name: Optional[str] = None, + migration_setting: Optional[dict[str, str]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, + table_map: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMySqlAzureDbForMySqlSyncTaskInput(_Model): + """Input for the task that migrates MySQL databases to Azure Database for MySQL for online + migrations. + + :ivar source_connection_info: Connection information for source MySQL. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar target_connection_info: Connection information for target Azure Database for MySQL. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] + """ + + source_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source MySQL. Required.""" + target_connection_info: "_models.MySqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for MySQL. Required.""" + selected_databases: list["_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.MySqlConnectionInfo", + target_connection_info: "_models.MySqlConnectionInfo", + selected_databases: list["_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutput(_Model): # pylint: disable=name-too-long + """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, + MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputError, + MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, + MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError( + MigrateMySqlAzureDbForMySqlSyncTaskOutput, discriminator="DatabaseLevelErrorOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error_message: Error message. + :vartype error_message: str + :ivar events: List of error events. + :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + :ivar result_type: Result type. Required. Default value is "DatabaseLevelErrorOutput". + :vartype result_type: str + """ + + error_message: Optional[str] = rest_field( + name="errorMessage", visibility=["read", "create", "update", "delete", "query"] + ) + """Error message.""" + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of error events.""" + result_type: Literal["DatabaseLevelErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelErrorOutput\".""" + + @overload + def __init__( + self, + *, + error_message: Optional[str] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelErrorOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel( + MigrateMySqlAzureDbForMySqlSyncTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", + "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", + "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", + "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and + "BACKUP_COMPLETED". + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState + :ivar incoming_changes: Number of incoming changes. + :vartype incoming_changes: int + :ivar applied_changes: Number of applied changes. + :vartype applied_changes: int + :ivar cdc_insert_counter: Number of cdc inserts. + :vartype cdc_insert_counter: int + :ivar cdc_delete_counter: Number of cdc deletes. + :vartype cdc_delete_counter: int + :ivar cdc_update_counter: Number of cdc updates. + :vartype cdc_update_counter: int + :ivar full_load_completed_tables: Number of tables completed in full load. + :vartype full_load_completed_tables: int + :ivar full_load_loading_tables: Number of tables loading in full load. + :vartype full_load_loading_tables: int + :ivar full_load_queued_tables: Number of tables queued in full load. + :vartype full_load_queued_tables: int + :ivar full_load_errored_tables: Number of tables errored in full load. + :vartype full_load_errored_tables: int + :ivar initialization_completed: Indicates if initial load (full load) has been completed. + :vartype initialization_completed: bool + :ivar latency: CDC apply latency. + :vartype latency: int + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = rest_field( + name="migrationState", visibility=["read"] + ) + """Migration state that this database is in. Known values are: \"UNDEFINED\", \"CONFIGURING\", + \"INITIALIAZING\", \"STARTING\", \"RUNNING\", \"READY_TO_COMPLETE\", \"COMPLETING\", + \"COMPLETE\", \"CANCELLING\", \"CANCELLED\", \"FAILED\", \"VALIDATING\", + \"VALIDATION_COMPLETE\", \"VALIDATION_FAILED\", \"RESTORE_IN_PROGRESS\", \"RESTORE_COMPLETED\", + \"BACKUP_IN_PROGRESS\", and \"BACKUP_COMPLETED\".""" + incoming_changes: Optional[int] = rest_field(name="incomingChanges", visibility=["read"]) + """Number of incoming changes.""" + applied_changes: Optional[int] = rest_field(name="appliedChanges", visibility=["read"]) + """Number of applied changes.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of cdc inserts.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of cdc deletes.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of cdc updates.""" + full_load_completed_tables: Optional[int] = rest_field(name="fullLoadCompletedTables", visibility=["read"]) + """Number of tables completed in full load.""" + full_load_loading_tables: Optional[int] = rest_field(name="fullLoadLoadingTables", visibility=["read"]) + """Number of tables loading in full load.""" + full_load_queued_tables: Optional[int] = rest_field(name="fullLoadQueuedTables", visibility=["read"]) + """Number of tables queued in full load.""" + full_load_errored_tables: Optional[int] = rest_field(name="fullLoadErroredTables", visibility=["read"]) + """Number of tables errored in full load.""" + initialization_completed: Optional[bool] = rest_field(name="initializationCompleted", visibility=["read"]) + """Indicates if initial load (full load) has been completed.""" + latency: Optional[int] = rest_field(visibility=["read"]) + """CDC apply latency.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputError( + MigrateMySqlAzureDbForMySqlSyncTaskOutput, discriminator="ErrorOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlSyncTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel( + MigrateMySqlAzureDbForMySqlSyncTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server: Source server name. + :vartype source_server: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server: Target server name. + :vartype target_server: str + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server: Optional[str] = rest_field(name="sourceServer", visibility=["read"]) + """Source server name.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server: Optional[str] = rest_field(name="targetServer", visibility=["read"]) + """Target server name.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel( + MigrateMySqlAzureDbForMySqlSyncTaskOutput, discriminator="TableLevelOutput" +): # pylint: disable=name-too-long + """MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar table_name: Name of the table. + :vartype table_name: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar cdc_insert_counter: Number of applied inserts. + :vartype cdc_insert_counter: str + :ivar cdc_update_counter: Number of applied updates. + :vartype cdc_update_counter: str + :ivar cdc_delete_counter: Number of applied deletes. + :vartype cdc_delete_counter: str + :ivar full_load_est_finish_time: Estimate to finish full load. + :vartype full_load_est_finish_time: ~datetime.datetime + :ivar full_load_started_on: Full load start time. + :vartype full_load_started_on: ~datetime.datetime + :ivar full_load_ended_on: Full load end time. + :vartype full_load_ended_on: ~datetime.datetime + :ivar full_load_total_rows: Number of rows applied in full load. + :vartype full_load_total_rows: int + :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", + "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". + :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState + :ivar total_changes_applied: Total number of applied changes. + :vartype total_changes_applied: int + :ivar data_errors_counter: Number of data errors occurred. + :vartype data_errors_counter: int + :ivar last_modified_time: Last modified time on target. + :vartype last_modified_time: ~datetime.datetime + :ivar result_type: Result type. Required. Default value is "TableLevelOutput". + :vartype result_type: str + """ + + table_name: Optional[str] = rest_field(name="tableName", visibility=["read"]) + """Name of the table.""" + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + cdc_insert_counter: Optional[str] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of applied inserts.""" + cdc_update_counter: Optional[str] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of applied updates.""" + cdc_delete_counter: Optional[str] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of applied deletes.""" + full_load_est_finish_time: Optional[datetime.datetime] = rest_field( + name="fullLoadEstFinishTime", visibility=["read"], format="rfc3339" + ) + """Estimate to finish full load.""" + full_load_started_on: Optional[datetime.datetime] = rest_field( + name="fullLoadStartedOn", visibility=["read"], format="rfc3339" + ) + """Full load start time.""" + full_load_ended_on: Optional[datetime.datetime] = rest_field( + name="fullLoadEndedOn", visibility=["read"], format="rfc3339" + ) + """Full load end time.""" + full_load_total_rows: Optional[int] = rest_field(name="fullLoadTotalRows", visibility=["read"]) + """Number of rows applied in full load.""" + state: Optional[Union[str, "_models.SyncTableMigrationState"]] = rest_field(visibility=["read"]) + """Current state of the table migration. Known values are: \"BEFORE_LOAD\", \"FULL_LOAD\", + \"COMPLETED\", \"CANCELED\", \"ERROR\", and \"FAILED\".""" + total_changes_applied: Optional[int] = rest_field(name="totalChangesApplied", visibility=["read"]) + """Total number of applied changes.""" + data_errors_counter: Optional[int] = rest_field(name="dataErrorsCounter", visibility=["read"]) + """Number of data errors occurred.""" + last_modified_time: Optional[datetime.datetime] = rest_field( + name="lastModifiedTime", visibility=["read"], format="rfc3339" + ) + """Last modified time on target.""" + result_type: Literal["TableLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"TableLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TableLevelOutput" # type: ignore + + +class MigrateMySqlAzureDbForMySqlSyncTaskProperties( + ProjectTaskProperties, discriminator="Migrate.MySql.AzureDbForMySql.Sync" +): # pylint: disable=name-too-long + """Properties for the task that migrates MySQL databases to Azure Database for MySQL for online + migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput] + :ivar task_type: Task type. Required. Migrate.MySql.AzureDbForMySql.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC + """ + + input: Optional["_models.MigrateMySqlAzureDbForMySqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateMySqlAzureDbForMySqlSyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.MySql.AzureDbForMySql.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateMySqlAzureDbForMySqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC # type: ignore + + +class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties( + ProjectTaskProperties, discriminator="Migrate.Oracle.AzureDbForPostgreSql.Sync" +): # pylint: disable=name-too-long + """Properties for the task that migrates Oracle to Azure Database for PostgreSQL for online + migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput] + :ivar task_type: Task type. Required. Migrate.Oracle.AzureDbForPostgreSql.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC + """ + + input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.Oracle.AzureDbForPostgreSql.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC # type: ignore + + +class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(_Model): # pylint: disable=name-too-long + """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 + :ivar name: Name of the migration pipeline. + :vartype name: str + :ivar schema_name: Name of the source schema. + :vartype schema_name: str + :ivar table_map: Mapping of source to target tables. + :vartype table_map: dict[str, str] + :ivar target_database_name: Name of target database. Note: Target database will be truncated + before starting migration. + :vartype target_database_name: str + :ivar migration_setting: Migration settings which tune the migration behavior. + :vartype migration_setting: dict[str, str] + :ivar source_setting: Source settings to tune source endpoint migration behavior. + :vartype source_setting: dict[str, str] + :ivar target_setting: Target settings to tune target endpoint migration behavior. + :vartype target_setting: dict[str, str] + """ + + case_manipulation: Optional[str] = rest_field( + name="caseManipulation", visibility=["read", "create", "update", "delete", "query"] + ) + """How to handle object name casing: either Preserve or ToLower.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the migration pipeline.""" + schema_name: Optional[str] = rest_field( + name="schemaName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the source schema.""" + table_map: Optional[dict[str, str]] = rest_field( + name="tableMap", visibility=["read", "create", "update", "delete", "query"] + ) + """Mapping of source to target tables.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of target database. Note: Target database will be truncated before starting migration.""" + migration_setting: Optional[dict[str, str]] = rest_field( + name="migrationSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration settings which tune the migration behavior.""" + source_setting: Optional[dict[str, str]] = rest_field( + name="sourceSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Source settings to tune source endpoint migration behavior.""" + target_setting: Optional[dict[str, str]] = rest_field( + name="targetSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Target settings to tune target endpoint migration behavior.""" + + @overload + def __init__( + self, + *, + case_manipulation: Optional[str] = None, + name: Optional[str] = None, + schema_name: Optional[str] = None, + table_map: Optional[dict[str, str]] = None, + target_database_name: Optional[str] = None, + migration_setting: Optional[dict[str, str]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateOracleAzureDbPostgreSqlSyncTaskInput(_Model): # pylint: disable=name-too-long + """Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online + migrations. + + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput] + :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :ivar source_connection_info: Connection information for source Oracle. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo + """ + + selected_databases: list["_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + target_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for PostgreSQL. Required.""" + source_connection_info: "_models.OracleConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source Oracle. Required.""" + + @overload + def __init__( + self, + *, + selected_databases: list["_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput"], + target_connection_info: "_models.PostgreSqlConnectionInfo", + source_connection_info: "_models.OracleConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutput(_Model): # pylint: disable=name-too-long + """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, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputError, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, + MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError( + MigrateOracleAzureDbPostgreSqlSyncTaskOutput, discriminator="DatabaseLevelErrorOutput" +): # pylint: disable=name-too-long + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error_message: Error message. + :vartype error_message: str + :ivar events: List of error events. + :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + :ivar result_type: Result type. Required. Default value is "DatabaseLevelErrorOutput". + :vartype result_type: str + """ + + error_message: Optional[str] = rest_field( + name="errorMessage", visibility=["read", "create", "update", "delete", "query"] + ) + """Error message.""" + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of error events.""" + result_type: Literal["DatabaseLevelErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelErrorOutput\".""" + + @overload + def __init__( + self, + *, + error_message: Optional[str] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelErrorOutput" # type: ignore + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel( + MigrateOracleAzureDbPostgreSqlSyncTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", + "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", + "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", + "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and + "BACKUP_COMPLETED". + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState + :ivar incoming_changes: Number of incoming changes. + :vartype incoming_changes: int + :ivar applied_changes: Number of applied changes. + :vartype applied_changes: int + :ivar cdc_insert_counter: Number of cdc inserts. + :vartype cdc_insert_counter: int + :ivar cdc_delete_counter: Number of cdc deletes. + :vartype cdc_delete_counter: int + :ivar cdc_update_counter: Number of cdc updates. + :vartype cdc_update_counter: int + :ivar full_load_completed_tables: Number of tables completed in full load. + :vartype full_load_completed_tables: int + :ivar full_load_loading_tables: Number of tables loading in full load. + :vartype full_load_loading_tables: int + :ivar full_load_queued_tables: Number of tables queued in full load. + :vartype full_load_queued_tables: int + :ivar full_load_errored_tables: Number of tables errored in full load. + :vartype full_load_errored_tables: int + :ivar initialization_completed: Indicates if initial load (full load) has been completed. + :vartype initialization_completed: bool + :ivar latency: CDC apply latency. + :vartype latency: int + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = rest_field( + name="migrationState", visibility=["read"] + ) + """Migration state that this database is in. Known values are: \"UNDEFINED\", \"CONFIGURING\", + \"INITIALIAZING\", \"STARTING\", \"RUNNING\", \"READY_TO_COMPLETE\", \"COMPLETING\", + \"COMPLETE\", \"CANCELLING\", \"CANCELLED\", \"FAILED\", \"VALIDATING\", + \"VALIDATION_COMPLETE\", \"VALIDATION_FAILED\", \"RESTORE_IN_PROGRESS\", \"RESTORE_COMPLETED\", + \"BACKUP_IN_PROGRESS\", and \"BACKUP_COMPLETED\".""" + incoming_changes: Optional[int] = rest_field(name="incomingChanges", visibility=["read"]) + """Number of incoming changes.""" + applied_changes: Optional[int] = rest_field(name="appliedChanges", visibility=["read"]) + """Number of applied changes.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of cdc inserts.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of cdc deletes.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of cdc updates.""" + full_load_completed_tables: Optional[int] = rest_field(name="fullLoadCompletedTables", visibility=["read"]) + """Number of tables completed in full load.""" + full_load_loading_tables: Optional[int] = rest_field(name="fullLoadLoadingTables", visibility=["read"]) + """Number of tables loading in full load.""" + full_load_queued_tables: Optional[int] = rest_field(name="fullLoadQueuedTables", visibility=["read"]) + """Number of tables queued in full load.""" + full_load_errored_tables: Optional[int] = rest_field(name="fullLoadErroredTables", visibility=["read"]) + """Number of tables errored in full load.""" + initialization_completed: Optional[bool] = rest_field(name="initializationCompleted", visibility=["read"]) + """Indicates if initial load (full load) has been completed.""" + latency: Optional[int] = rest_field(visibility=["read"]) + """CDC apply latency.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputError( + MigrateOracleAzureDbPostgreSqlSyncTaskOutput, discriminator="ErrorOutput" +): # pylint: disable=name-too-long + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel( + MigrateOracleAzureDbPostgreSqlSyncTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server: Source server name. + :vartype source_server: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server: Target server name. + :vartype target_server: str + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server: Optional[str] = rest_field(name="sourceServer", visibility=["read"]) + """Source server name.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server: Optional[str] = rest_field(name="targetServer", visibility=["read"]) + """Target server name.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel( + MigrateOracleAzureDbPostgreSqlSyncTaskOutput, discriminator="TableLevelOutput" +): # pylint: disable=name-too-long + """MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar table_name: Name of the table. + :vartype table_name: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar cdc_insert_counter: Number of applied inserts. + :vartype cdc_insert_counter: int + :ivar cdc_update_counter: Number of applied updates. + :vartype cdc_update_counter: int + :ivar cdc_delete_counter: Number of applied deletes. + :vartype cdc_delete_counter: int + :ivar full_load_est_finish_time: Estimate to finish full load. + :vartype full_load_est_finish_time: ~datetime.datetime + :ivar full_load_started_on: Full load start time. + :vartype full_load_started_on: ~datetime.datetime + :ivar full_load_ended_on: Full load end time. + :vartype full_load_ended_on: ~datetime.datetime + :ivar full_load_total_rows: Number of rows applied in full load. + :vartype full_load_total_rows: int + :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", + "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". + :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState + :ivar total_changes_applied: Total number of applied changes. + :vartype total_changes_applied: int + :ivar data_errors_counter: Number of data errors occurred. + :vartype data_errors_counter: int + :ivar last_modified_time: Last modified time on target. + :vartype last_modified_time: ~datetime.datetime + :ivar result_type: Result type. Required. Default value is "TableLevelOutput". + :vartype result_type: str + """ + + table_name: Optional[str] = rest_field(name="tableName", visibility=["read"]) + """Name of the table.""" + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of applied inserts.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of applied updates.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of applied deletes.""" + full_load_est_finish_time: Optional[datetime.datetime] = rest_field( + name="fullLoadEstFinishTime", visibility=["read"], format="rfc3339" + ) + """Estimate to finish full load.""" + full_load_started_on: Optional[datetime.datetime] = rest_field( + name="fullLoadStartedOn", visibility=["read"], format="rfc3339" + ) + """Full load start time.""" + full_load_ended_on: Optional[datetime.datetime] = rest_field( + name="fullLoadEndedOn", visibility=["read"], format="rfc3339" + ) + """Full load end time.""" + full_load_total_rows: Optional[int] = rest_field(name="fullLoadTotalRows", visibility=["read"]) + """Number of rows applied in full load.""" + state: Optional[Union[str, "_models.SyncTableMigrationState"]] = rest_field(visibility=["read"]) + """Current state of the table migration. Known values are: \"BEFORE_LOAD\", \"FULL_LOAD\", + \"COMPLETED\", \"CANCELED\", \"ERROR\", and \"FAILED\".""" + total_changes_applied: Optional[int] = rest_field(name="totalChangesApplied", visibility=["read"]) + """Total number of applied changes.""" + data_errors_counter: Optional[int] = rest_field(name="dataErrorsCounter", visibility=["read"]) + """Number of data errors occurred.""" + last_modified_time: Optional[datetime.datetime] = rest_field( + name="lastModifiedTime", visibility=["read"], format="rfc3339" + ) + """Last modified time on target.""" + result_type: Literal["TableLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"TableLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TableLevelOutput" # type: ignore + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(_Model): # pylint: disable=name-too-long + """Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task + inputs. + + :ivar name: Name of the database. + :vartype name: str + :ivar id: Result identifier. + :vartype id: str + :ivar target_database_name: Name of target database. Note: Target database will be truncated + before starting migration. + :vartype target_database_name: str + :ivar migration_setting: Migration settings which tune the migration behavior. + :vartype migration_setting: dict[str, any] + :ivar source_setting: Source settings to tune source endpoint migration behavior. + :vartype source_setting: dict[str, str] + :ivar target_setting: Target settings to tune target endpoint migration behavior. + :vartype target_setting: dict[str, str] + :ivar selected_tables: Tables selected for migration. + :vartype selected_tables: + list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput] + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the database.""" + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of target database. Note: Target database will be truncated before starting migration.""" + migration_setting: Optional[dict[str, Any]] = rest_field( + name="migrationSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration settings which tune the migration behavior.""" + source_setting: Optional[dict[str, str]] = rest_field( + name="sourceSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Source settings to tune source endpoint migration behavior.""" + target_setting: Optional[dict[str, str]] = rest_field( + name="targetSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Target settings to tune target endpoint migration behavior.""" + selected_tables: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = rest_field( + name="selectedTables", visibility=["read", "create", "update", "delete", "query"] + ) + """Tables selected for migration.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + target_database_name: Optional[str] = None, + migration_setting: Optional[dict[str, Any]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, + selected_tables: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput(_Model): # pylint: disable=name-too-long + """Selected tables for the migration. + + :ivar name: Name of the table to migrate. + :vartype name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the table to migrate.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(_Model): # pylint: disable=name-too-long + """Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for + online migrations. + + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] + :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :ivar source_connection_info: Connection information for source PostgreSQL. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + """ + + selected_databases: list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + target_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for target Azure Database for PostgreSQL. Required.""" + source_connection_info: "_models.PostgreSqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source PostgreSQL. Required.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + + @overload + def __init__( + self, + *, + selected_databases: list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput"], + target_connection_info: "_models.PostgreSqlConnectionInfo", + source_connection_info: "_models.PostgreSqlConnectionInfo", + encrypted_key_for_secure_fields: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(_Model): # pylint: disable=name-too-long + """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, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError( + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, discriminator="DatabaseLevelErrorOutput" +): # pylint: disable=name-too-long + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error_message: Error message. + :vartype error_message: str + :ivar events: List of error events. + :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + :ivar result_type: Result type. Required. Default value is "DatabaseLevelErrorOutput". + :vartype result_type: str + """ + + error_message: Optional[str] = rest_field( + name="errorMessage", visibility=["read", "create", "update", "delete", "query"] + ) + """Error message.""" + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of error events.""" + result_type: Literal["DatabaseLevelErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelErrorOutput\".""" + + @overload + def __init__( + self, + *, + error_message: Optional[str] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelErrorOutput" # type: ignore + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel( + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", + "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", + "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", + "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and + "BACKUP_COMPLETED". + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState + :ivar incoming_changes: Number of incoming changes. + :vartype incoming_changes: int + :ivar applied_changes: Number of applied changes. + :vartype applied_changes: int + :ivar cdc_insert_counter: Number of cdc inserts. + :vartype cdc_insert_counter: int + :ivar cdc_delete_counter: Number of cdc deletes. + :vartype cdc_delete_counter: int + :ivar cdc_update_counter: Number of cdc updates. + :vartype cdc_update_counter: int + :ivar full_load_completed_tables: Number of tables completed in full load. + :vartype full_load_completed_tables: int + :ivar full_load_loading_tables: Number of tables loading in full load. + :vartype full_load_loading_tables: int + :ivar full_load_queued_tables: Number of tables queued in full load. + :vartype full_load_queued_tables: int + :ivar full_load_errored_tables: Number of tables errored in full load. + :vartype full_load_errored_tables: int + :ivar initialization_completed: Indicates if initial load (full load) has been completed. + :vartype initialization_completed: bool + :ivar latency: CDC apply latency. + :vartype latency: int + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = rest_field( + name="migrationState", visibility=["read"] + ) + """Migration state that this database is in. Known values are: \"UNDEFINED\", \"CONFIGURING\", + \"INITIALIAZING\", \"STARTING\", \"RUNNING\", \"READY_TO_COMPLETE\", \"COMPLETING\", + \"COMPLETE\", \"CANCELLING\", \"CANCELLED\", \"FAILED\", \"VALIDATING\", + \"VALIDATION_COMPLETE\", \"VALIDATION_FAILED\", \"RESTORE_IN_PROGRESS\", \"RESTORE_COMPLETED\", + \"BACKUP_IN_PROGRESS\", and \"BACKUP_COMPLETED\".""" + incoming_changes: Optional[int] = rest_field(name="incomingChanges", visibility=["read"]) + """Number of incoming changes.""" + applied_changes: Optional[int] = rest_field(name="appliedChanges", visibility=["read"]) + """Number of applied changes.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of cdc inserts.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of cdc deletes.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of cdc updates.""" + full_load_completed_tables: Optional[int] = rest_field(name="fullLoadCompletedTables", visibility=["read"]) + """Number of tables completed in full load.""" + full_load_loading_tables: Optional[int] = rest_field(name="fullLoadLoadingTables", visibility=["read"]) + """Number of tables loading in full load.""" + full_load_queued_tables: Optional[int] = rest_field(name="fullLoadQueuedTables", visibility=["read"]) + """Number of tables queued in full load.""" + full_load_errored_tables: Optional[int] = rest_field(name="fullLoadErroredTables", visibility=["read"]) + """Number of tables errored in full load.""" + initialization_completed: Optional[bool] = rest_field(name="initializationCompleted", visibility=["read"]) + """Indicates if initial load (full load) has been completed.""" + latency: Optional[int] = rest_field(visibility=["read"]) + """CDC apply latency.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError( + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, discriminator="ErrorOutput" +): # pylint: disable=name-too-long + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar events: List of error events. + :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of error events.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + *, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel( + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server: Source server name. + :vartype source_server: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server: Target server name. + :vartype target_server: str + :ivar source_server_type: Source server type. Known values are: "Access", "DB2", "MySQL", + "Oracle", "SQL", "Sybase", "PostgreSQL", "MongoDB", "SQLRDS", "MySQLRDS", and "PostgreSQLRDS". + :vartype source_server_type: str or ~azure.mgmt.datamigration.models.ScenarioSource + :ivar target_server_type: Target server type. Known values are: "SQLServer", "SQLDB", "SQLDW", + "SQLMI", "AzureDBForMySql", "AzureDBForPostgresSQL", and "MongoDB". + :vartype target_server_type: str or ~azure.mgmt.datamigration.models.ScenarioTarget + :ivar state: Migration status. Known values are: "UNDEFINED", "VALIDATING", "PENDING", + "COMPLETE", "ACTION_REQUIRED", and "FAILED". + :vartype state: str or ~azure.mgmt.datamigration.models.ReplicateMigrationState + :ivar database_count: Number of databases to include. + :vartype database_count: float + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server: Optional[str] = rest_field(name="sourceServer", visibility=["read"]) + """Source server name.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server: Optional[str] = rest_field(name="targetServer", visibility=["read"]) + """Target server name.""" + source_server_type: Optional[Union[str, "_models.ScenarioSource"]] = rest_field( + name="sourceServerType", visibility=["read"] + ) + """Source server type. Known values are: \"Access\", \"DB2\", \"MySQL\", \"Oracle\", \"SQL\", + \"Sybase\", \"PostgreSQL\", \"MongoDB\", \"SQLRDS\", \"MySQLRDS\", and \"PostgreSQLRDS\".""" + target_server_type: Optional[Union[str, "_models.ScenarioTarget"]] = rest_field( + name="targetServerType", visibility=["read"] + ) + """Target server type. Known values are: \"SQLServer\", \"SQLDB\", \"SQLDW\", \"SQLMI\", + \"AzureDBForMySql\", \"AzureDBForPostgresSQL\", and \"MongoDB\".""" + state: Optional[Union[str, "_models.ReplicateMigrationState"]] = rest_field(visibility=["read"]) + """Migration status. Known values are: \"UNDEFINED\", \"VALIDATING\", \"PENDING\", \"COMPLETE\", + \"ACTION_REQUIRED\", and \"FAILED\".""" + database_count: Optional[float] = rest_field( + name="databaseCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of databases to include.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + *, + database_count: Optional[float] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel( + MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, discriminator="TableLevelOutput" +): # pylint: disable=name-too-long + """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar table_name: Name of the table. + :vartype table_name: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar cdc_insert_counter: Number of applied inserts. + :vartype cdc_insert_counter: int + :ivar cdc_update_counter: Number of applied updates. + :vartype cdc_update_counter: int + :ivar cdc_delete_counter: Number of applied deletes. + :vartype cdc_delete_counter: int + :ivar full_load_est_finish_time: Estimate to finish full load. + :vartype full_load_est_finish_time: ~datetime.datetime + :ivar full_load_started_on: Full load start time. + :vartype full_load_started_on: ~datetime.datetime + :ivar full_load_ended_on: Full load end time. + :vartype full_load_ended_on: ~datetime.datetime + :ivar full_load_total_rows: Number of rows applied in full load. + :vartype full_load_total_rows: int + :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", + "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". + :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState + :ivar total_changes_applied: Total number of applied changes. + :vartype total_changes_applied: int + :ivar data_errors_counter: Number of data errors occurred. + :vartype data_errors_counter: int + :ivar last_modified_time: Last modified time on target. + :vartype last_modified_time: ~datetime.datetime + :ivar result_type: Result type. Required. Default value is "TableLevelOutput". + :vartype result_type: str + """ + + table_name: Optional[str] = rest_field(name="tableName", visibility=["read"]) + """Name of the table.""" + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of applied inserts.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of applied updates.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of applied deletes.""" + full_load_est_finish_time: Optional[datetime.datetime] = rest_field( + name="fullLoadEstFinishTime", visibility=["read"], format="rfc3339" + ) + """Estimate to finish full load.""" + full_load_started_on: Optional[datetime.datetime] = rest_field( + name="fullLoadStartedOn", visibility=["read"], format="rfc3339" + ) + """Full load start time.""" + full_load_ended_on: Optional[datetime.datetime] = rest_field( + name="fullLoadEndedOn", visibility=["read"], format="rfc3339" + ) + """Full load end time.""" + full_load_total_rows: Optional[int] = rest_field(name="fullLoadTotalRows", visibility=["read"]) + """Number of rows applied in full load.""" + state: Optional[Union[str, "_models.SyncTableMigrationState"]] = rest_field(visibility=["read"]) + """Current state of the table migration. Known values are: \"BEFORE_LOAD\", \"FULL_LOAD\", + \"COMPLETED\", \"CANCELED\", \"ERROR\", and \"FAILED\".""" + total_changes_applied: Optional[int] = rest_field(name="totalChangesApplied", visibility=["read"]) + """Total number of applied changes.""" + data_errors_counter: Optional[int] = rest_field(name="dataErrorsCounter", visibility=["read"]) + """Number of data errors occurred.""" + last_modified_time: Optional[datetime.datetime] = rest_field( + name="lastModifiedTime", visibility=["read"], format="rfc3339" + ) + """Last modified time on target.""" + result_type: Literal["TableLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"TableLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TableLevelOutput" # type: ignore + + +class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties( + ProjectTaskProperties, discriminator="Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2" +): # pylint: disable=name-too-long + """Properties for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for + online migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: + ~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput] + :ivar task_id: task id. + :vartype task_id: str + :ivar created_on: DateTime in UTC when the task was created. + :vartype created_on: str + :ivar is_cloneable: whether the task can be cloned or not. + :vartype is_cloneable: bool + :ivar task_type: Task type. Required. Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2 + """ + + input: Optional["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput"]] = rest_field( + visibility=["read"] + ) + """Task output. This is ignored if submitted.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """task id.""" + created_on: Optional[str] = rest_field(name="createdOn", visibility=["read", "create", "update", "delete", "query"]) + """DateTime in UTC when the task was created.""" + is_cloneable: Optional[bool] = rest_field( + name="isCloneable", visibility=["read", "create", "update", "delete", "query"] + ) + """whether the task can be cloned or not.""" + task_type: Literal[TaskType.MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput"] = None, + task_id: Optional[str] = None, + created_on: Optional[str] = None, + is_cloneable: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2 # type: ignore + + +class MigrateSchemaSqlServerSqlDbDatabaseInput(_Model): + """Database input for migrate schema Sql Server to Azure SQL Server scenario. + + :ivar name: Name of source database. + :vartype name: str + :ivar id: Id of the source database. + :vartype id: str + :ivar target_database_name: Name of target database. + :vartype target_database_name: str + :ivar schema_setting: Database schema migration settings. + :vartype schema_setting: ~azure.mgmt.datamigration.models.SchemaMigrationSetting + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of source database.""" + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Id of the source database.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of target database.""" + schema_setting: Optional["_models.SchemaMigrationSetting"] = rest_field( + name="schemaSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Database schema migration settings.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + target_database_name: Optional[str] = None, + schema_setting: Optional["_models.SchemaMigrationSetting"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlMigrationTaskInput(_Model): + """Base class for migration task input. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + """ + + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to source. Required.""" + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to target. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSchemaSqlServerSqlDbTaskInput(SqlMigrationTaskInput): + """Input for task that migrates Schema for SQL Server databases to Azure SQL databases. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + :ivar started_on: Migration start time. + :vartype started_on: str + """ + + selected_databases: list["_models.MigrateSchemaSqlServerSqlDbDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + started_on: Optional[str] = rest_field(name="startedOn", visibility=["read", "create", "update", "delete", "query"]) + """Migration start time.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_databases: list["_models.MigrateSchemaSqlServerSqlDbDatabaseInput"], + encrypted_key_for_secure_fields: Optional[str] = None, + started_on: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSchemaSqlServerSqlDbTaskOutput(_Model): + """Output for the task that migrates Schema for SQL Server databases to Azure SQL databases. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlTaskOutputError, + MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, MigrateSchemaSqlServerSqlDbTaskOutputError + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel( + MigrateSchemaSqlServerSqlDbTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: The name of the database. + :vartype database_name: str + :ivar state: State of the schema migration for this database. Known values are: "None", + "InProgress", "Failed", "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Schema migration stage for this database. Known values are: "NotStarted", + "ValidatingInputs", "CollectingObjects", "DownloadingScript", "GeneratingScript", + "UploadingScript", "DeployingSchema", "Completed", "CompletedWithWarnings", and "Failed". + :vartype stage: str or ~azure.mgmt.datamigration.models.SchemaMigrationStage + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar database_error_result_prefix: Prefix string to use for querying errors for this database. + :vartype database_error_result_prefix: str + :ivar schema_error_result_prefix: Prefix string to use for querying schema errors for this + database. + :vartype schema_error_result_prefix: str + :ivar number_of_successful_operations: Number of successful operations for this database. + :vartype number_of_successful_operations: int + :ivar number_of_failed_operations: Number of failed operations for this database. + :vartype number_of_failed_operations: int + :ivar file_id: Identifier for the file resource containing the schema of this database. + :vartype file_id: str + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """The name of the database.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """State of the schema migration for this database. Known values are: \"None\", \"InProgress\", + \"Failed\", \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + stage: Optional[Union[str, "_models.SchemaMigrationStage"]] = rest_field(visibility=["read"]) + """Schema migration stage for this database. Known values are: \"NotStarted\", + \"ValidatingInputs\", \"CollectingObjects\", \"DownloadingScript\", \"GeneratingScript\", + \"UploadingScript\", \"DeployingSchema\", \"Completed\", \"CompletedWithWarnings\", and + \"Failed\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + database_error_result_prefix: Optional[str] = rest_field(name="databaseErrorResultPrefix", visibility=["read"]) + """Prefix string to use for querying errors for this database.""" + schema_error_result_prefix: Optional[str] = rest_field(name="schemaErrorResultPrefix", visibility=["read"]) + """Prefix string to use for querying schema errors for this database.""" + number_of_successful_operations: Optional[int] = rest_field( + name="numberOfSuccessfulOperations", visibility=["read"] + ) + """Number of successful operations for this database.""" + number_of_failed_operations: Optional[int] = rest_field(name="numberOfFailedOperations", visibility=["read"]) + """Number of failed operations for this database.""" + file_id: Optional[str] = rest_field(name="fileId", visibility=["read"]) + """Identifier for the file resource containing the schema of this database.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateSchemaSqlServerSqlDbTaskOutputError( + MigrateSchemaSqlServerSqlDbTaskOutput, discriminator="SchemaErrorOutput" +): # pylint: disable=name-too-long + """MigrateSchemaSqlServerSqlDbTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar command_text: Schema command which failed. + :vartype command_text: str + :ivar error_text: Reason of failure. + :vartype error_text: str + :ivar result_type: Result type. Required. Default value is "SchemaErrorOutput". + :vartype result_type: str + """ + + command_text: Optional[str] = rest_field(name="commandText", visibility=["read"]) + """Schema command which failed.""" + error_text: Optional[str] = rest_field(name="errorText", visibility=["read"]) + """Reason of failure.""" + result_type: Literal["SchemaErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"SchemaErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "SchemaErrorOutput" # type: ignore + + +class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel( + MigrateSchemaSqlServerSqlDbTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar state: Overall state of the schema migration. Known values are: "None", "InProgress", + "Failed", "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Overall state of the schema migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateSchemaSqlServerSqlDbTaskProperties( + ProjectTaskProperties, discriminator="MigrateSchemaSqlServerSqlDb" +): # pylint: disable=name-too-long + """Properties for task that migrates Schema for SQL Server databases to Azure SQL databases. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput] + :ivar created_on: DateTime in UTC when the task was created. + :vartype created_on: str + :ivar task_id: Task id. + :vartype task_id: str + :ivar is_cloneable: whether the task can be cloned or not. + :vartype is_cloneable: bool + :ivar task_type: Task type. Required. MigrateSchemaSqlServerSqlDb. + :vartype task_type: str or ~azure.mgmt.datamigration.models.MIGRATE_SCHEMA_SQL_SERVER_SQL_DB + """ + + input: Optional["_models.MigrateSchemaSqlServerSqlDbTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateSchemaSqlServerSqlDbTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + created_on: Optional[str] = rest_field(name="createdOn", visibility=["read", "create", "update", "delete", "query"]) + """DateTime in UTC when the task was created.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """Task id.""" + is_cloneable: Optional[bool] = rest_field( + name="isCloneable", visibility=["read", "create", "update", "delete", "query"] + ) + """whether the task can be cloned or not.""" + task_type: Literal[TaskType.MIGRATE_SCHEMA_SQL_SERVER_SQL_DB] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. MigrateSchemaSqlServerSqlDb.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateSchemaSqlServerSqlDbTaskInput"] = None, + created_on: Optional[str] = None, + task_id: Optional[str] = None, + is_cloneable: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_SCHEMA_SQL_SERVER_SQL_DB # type: ignore + + +class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput, discriminator="ErrorOutput"): + """MigrateSchemaSqlTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateSqlServerSqlDbDatabaseInput(_Model): + """Database specific information for SQL to Azure SQL DB migration task inputs. + + :ivar name: Name of the database. + :vartype name: str + :ivar target_database_name: Name of target database. Note: Target database will be truncated + before starting migration. + :vartype target_database_name: str + :ivar make_source_db_read_only: Whether to set database read only before migration. + :vartype make_source_db_read_only: bool + :ivar table_map: Mapping of source to target tables. + :vartype table_map: dict[str, str] + :ivar schema_setting: Settings selected for DB schema migration. + :vartype schema_setting: any + :ivar id: id of the database. + :vartype id: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the database.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of target database. Note: Target database will be truncated before starting migration.""" + make_source_db_read_only: Optional[bool] = rest_field( + name="makeSourceDbReadOnly", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to set database read only before migration.""" + table_map: Optional[dict[str, str]] = rest_field( + name="tableMap", visibility=["read", "create", "update", "delete", "query"] + ) + """Mapping of source to target tables.""" + schema_setting: Optional[Any] = rest_field( + name="schemaSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Settings selected for DB schema migration.""" + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """id of the database.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + target_database_name: Optional[str] = None, + make_source_db_read_only: Optional[bool] = None, + table_map: Optional[dict[str, str]] = None, + schema_setting: Optional[Any] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlDbSyncDatabaseInput(_Model): + """Database specific information for SQL to Azure SQL DB sync migration task inputs. + + :ivar id: Unique identifier for database. + :vartype id: str + :ivar name: Name of database. + :vartype name: str + :ivar target_database_name: Target database name. + :vartype target_database_name: str + :ivar schema_name: Schema name to be migrated. + :vartype schema_name: str + :ivar table_map: Mapping of source to target tables. + :vartype table_map: dict[str, str] + :ivar migration_setting: Migration settings which tune the migration behavior. + :vartype migration_setting: dict[str, str] + :ivar source_setting: Source settings to tune source endpoint migration behavior. + :vartype source_setting: dict[str, str] + :ivar target_setting: Target settings to tune target endpoint migration behavior. + :vartype target_setting: dict[str, str] + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Unique identifier for database.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of database.""" + target_database_name: Optional[str] = rest_field( + name="targetDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Target database name.""" + schema_name: Optional[str] = rest_field( + name="schemaName", visibility=["read", "create", "update", "delete", "query"] + ) + """Schema name to be migrated.""" + table_map: Optional[dict[str, str]] = rest_field( + name="tableMap", visibility=["read", "create", "update", "delete", "query"] + ) + """Mapping of source to target tables.""" + migration_setting: Optional[dict[str, str]] = rest_field( + name="migrationSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration settings which tune the migration behavior.""" + source_setting: Optional[dict[str, str]] = rest_field( + name="sourceSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Source settings to tune source endpoint migration behavior.""" + target_setting: Optional[dict[str, str]] = rest_field( + name="targetSetting", visibility=["read", "create", "update", "delete", "query"] + ) + """Target settings to tune target endpoint migration behavior.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + name: Optional[str] = None, + target_database_name: Optional[str] = None, + schema_name: Optional[str] = None, + table_map: Optional[dict[str, str]] = None, + migration_setting: Optional[dict[str, str]] = None, + source_setting: Optional[dict[str, str]] = None, + target_setting: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): + """Input for the task that migrates on-prem SQL Server databases to Azure SQL Database for online + migrations. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] + :ivar validation_options: Validation options. + :vartype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions + """ + + selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + validation_options: Optional["_models.MigrationValidationOptions"] = rest_field( + name="validationOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Validation options.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], + validation_options: Optional["_models.MigrationValidationOptions"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlDbSyncTaskOutput(_Model): + """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, + MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, MigrateSqlServerSqlDbSyncTaskOutputError, + MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, + MigrateSqlServerSqlDbSyncTaskOutputTableLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError( + MigrateSqlServerSqlDbSyncTaskOutput, discriminator="DatabaseLevelErrorOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbSyncTaskOutputDatabaseError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error_message: Error message. + :vartype error_message: str + :ivar events: List of error events. + :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] + :ivar result_type: Result type. Required. Default value is "DatabaseLevelErrorOutput". + :vartype result_type: str + """ + + error_message: Optional[str] = rest_field( + name="errorMessage", visibility=["read", "create", "update", "delete", "query"] + ) + """Error message.""" + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """List of error events.""" + result_type: Literal["DatabaseLevelErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelErrorOutput\".""" + + @overload + def __init__( + self, + *, + error_message: Optional[str] = None, + events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelErrorOutput" # type: ignore + + +class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel( + MigrateSqlServerSqlDbSyncTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", + "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", + "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", + "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and + "BACKUP_COMPLETED". + :vartype migration_state: str or + ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState + :ivar incoming_changes: Number of incoming changes. + :vartype incoming_changes: int + :ivar applied_changes: Number of applied changes. + :vartype applied_changes: int + :ivar cdc_insert_counter: Number of cdc inserts. + :vartype cdc_insert_counter: int + :ivar cdc_delete_counter: Number of cdc deletes. + :vartype cdc_delete_counter: int + :ivar cdc_update_counter: Number of cdc updates. + :vartype cdc_update_counter: int + :ivar full_load_completed_tables: Number of tables completed in full load. + :vartype full_load_completed_tables: int + :ivar full_load_loading_tables: Number of tables loading in full load. + :vartype full_load_loading_tables: int + :ivar full_load_queued_tables: Number of tables queued in full load. + :vartype full_load_queued_tables: int + :ivar full_load_errored_tables: Number of tables errored in full load. + :vartype full_load_errored_tables: int + :ivar initialization_completed: Indicates if initial load (full load) has been completed. + :vartype initialization_completed: bool + :ivar latency: CDC apply latency. + :vartype latency: int + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = rest_field( + name="migrationState", visibility=["read"] + ) + """Migration state that this database is in. Known values are: \"UNDEFINED\", \"CONFIGURING\", + \"INITIALIAZING\", \"STARTING\", \"RUNNING\", \"READY_TO_COMPLETE\", \"COMPLETING\", + \"COMPLETE\", \"CANCELLING\", \"CANCELLED\", \"FAILED\", \"VALIDATING\", + \"VALIDATION_COMPLETE\", \"VALIDATION_FAILED\", \"RESTORE_IN_PROGRESS\", \"RESTORE_COMPLETED\", + \"BACKUP_IN_PROGRESS\", and \"BACKUP_COMPLETED\".""" + incoming_changes: Optional[int] = rest_field(name="incomingChanges", visibility=["read"]) + """Number of incoming changes.""" + applied_changes: Optional[int] = rest_field(name="appliedChanges", visibility=["read"]) + """Number of applied changes.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of cdc inserts.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of cdc deletes.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of cdc updates.""" + full_load_completed_tables: Optional[int] = rest_field(name="fullLoadCompletedTables", visibility=["read"]) + """Number of tables completed in full load.""" + full_load_loading_tables: Optional[int] = rest_field(name="fullLoadLoadingTables", visibility=["read"]) + """Number of tables loading in full load.""" + full_load_queued_tables: Optional[int] = rest_field(name="fullLoadQueuedTables", visibility=["read"]) + """Number of tables queued in full load.""" + full_load_errored_tables: Optional[int] = rest_field(name="fullLoadErroredTables", visibility=["read"]) + """Number of tables errored in full load.""" + initialization_completed: Optional[bool] = rest_field(name="initializationCompleted", visibility=["read"]) + """Indicates if initial load (full load) has been completed.""" + latency: Optional[int] = rest_field(visibility=["read"]) + """CDC apply latency.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutput, discriminator="ErrorOutput"): + """MigrateSqlServerSqlDbSyncTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel( + MigrateSqlServerSqlDbSyncTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server: Source server name. + :vartype source_server: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server: Target server name. + :vartype target_server: str + :ivar database_count: Count of databases. + :vartype database_count: int + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server: Optional[str] = rest_field(name="sourceServer", visibility=["read"]) + """Source server name.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server: Optional[str] = rest_field(name="targetServer", visibility=["read"]) + """Target server name.""" + database_count: Optional[int] = rest_field(name="databaseCount", visibility=["read"]) + """Count of databases.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateSqlServerSqlDbSyncTaskOutputTableLevel( + MigrateSqlServerSqlDbSyncTaskOutput, discriminator="TableLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbSyncTaskOutputTableLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar table_name: Name of the table. + :vartype table_name: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar cdc_insert_counter: Number of applied inserts. + :vartype cdc_insert_counter: int + :ivar cdc_update_counter: Number of applied updates. + :vartype cdc_update_counter: int + :ivar cdc_delete_counter: Number of applied deletes. + :vartype cdc_delete_counter: int + :ivar full_load_est_finish_time: Estimate to finish full load. + :vartype full_load_est_finish_time: ~datetime.datetime + :ivar full_load_started_on: Full load start time. + :vartype full_load_started_on: ~datetime.datetime + :ivar full_load_ended_on: Full load end time. + :vartype full_load_ended_on: ~datetime.datetime + :ivar full_load_total_rows: Number of rows applied in full load. + :vartype full_load_total_rows: int + :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", + "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". + :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState + :ivar total_changes_applied: Total number of applied changes. + :vartype total_changes_applied: int + :ivar data_errors_counter: Number of data errors occurred. + :vartype data_errors_counter: int + :ivar last_modified_time: Last modified time on target. + :vartype last_modified_time: ~datetime.datetime + :ivar result_type: Result type. Required. Default value is "TableLevelOutput". + :vartype result_type: str + """ + + table_name: Optional[str] = rest_field(name="tableName", visibility=["read"]) + """Name of the table.""" + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + cdc_insert_counter: Optional[int] = rest_field(name="cdcInsertCounter", visibility=["read"]) + """Number of applied inserts.""" + cdc_update_counter: Optional[int] = rest_field(name="cdcUpdateCounter", visibility=["read"]) + """Number of applied updates.""" + cdc_delete_counter: Optional[int] = rest_field(name="cdcDeleteCounter", visibility=["read"]) + """Number of applied deletes.""" + full_load_est_finish_time: Optional[datetime.datetime] = rest_field( + name="fullLoadEstFinishTime", visibility=["read"], format="rfc3339" + ) + """Estimate to finish full load.""" + full_load_started_on: Optional[datetime.datetime] = rest_field( + name="fullLoadStartedOn", visibility=["read"], format="rfc3339" + ) + """Full load start time.""" + full_load_ended_on: Optional[datetime.datetime] = rest_field( + name="fullLoadEndedOn", visibility=["read"], format="rfc3339" + ) + """Full load end time.""" + full_load_total_rows: Optional[int] = rest_field(name="fullLoadTotalRows", visibility=["read"]) + """Number of rows applied in full load.""" + state: Optional[Union[str, "_models.SyncTableMigrationState"]] = rest_field(visibility=["read"]) + """Current state of the table migration. Known values are: \"BEFORE_LOAD\", \"FULL_LOAD\", + \"COMPLETED\", \"CANCELED\", \"ERROR\", and \"FAILED\".""" + total_changes_applied: Optional[int] = rest_field(name="totalChangesApplied", visibility=["read"]) + """Total number of applied changes.""" + data_errors_counter: Optional[int] = rest_field(name="dataErrorsCounter", visibility=["read"]) + """Number of data errors occurred.""" + last_modified_time: Optional[datetime.datetime] = rest_field( + name="lastModifiedTime", visibility=["read"], format="rfc3339" + ) + """Last modified time on target.""" + result_type: Literal["TableLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"TableLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TableLevelOutput" # type: ignore + + +class MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties, discriminator="Migrate.SqlServer.AzureSqlDb.Sync"): + """Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database for + online migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput] + :ivar task_type: Task type. Required. Migrate.SqlServer.AzureSqlDb.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC + """ + + input: Optional["_models.MigrateSqlServerSqlDbSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateSqlServerSqlDbSyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.SqlServer.AzureSqlDb.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateSqlServerSqlDbSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC # type: ignore + + +class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): + """Input for the task that migrates on-prem SQL Server databases to Azure SQL Database. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] + :ivar validation_options: Options for enabling various post migration validations. Available + options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target + tables after the migration to ensure the correctness of the data. 2.) Schema Validation: + Performs a thorough schema comparison between the source and target tables and provides a list + of differences between the source and target database, 3.) Query Analysis: Executes a set of + queries picked up automatically either from the Query Plan Cache or Query Store and execute + them and compares the execution time between the source and target database. + :vartype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions + :ivar started_on: Date and time relative to UTC when the migration was started on. + :vartype started_on: str + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + """ + + selected_databases: list["_models.MigrateSqlServerSqlDbDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + validation_options: Optional["_models.MigrationValidationOptions"] = rest_field( + name="validationOptions", visibility=["read", "create", "update", "delete", "query"] + ) + """Options for enabling various post migration validations. Available options, 1.) Data Integrity + Check: Performs a checksum based comparison on source and target tables after the migration to + ensure the correctness of the data. 2.) Schema Validation: Performs a thorough schema + comparison between the source and target tables and provides a list of differences between the + source and target database, 3.) Query Analysis: Executes a set of queries picked up + automatically either from the Query Plan Cache or Query Store and execute them and compares the + execution time between the source and target database.""" + started_on: Optional[str] = rest_field(name="startedOn", visibility=["read", "create", "update", "delete", "query"]) + """Date and time relative to UTC when the migration was started on.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_databases: list["_models.MigrateSqlServerSqlDbDatabaseInput"], + validation_options: Optional["_models.MigrationValidationOptions"] = None, + started_on: Optional[str] = None, + encrypted_key_for_secure_fields: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlDbTaskOutput(_Model): + """Output for the task that migrates on-prem SQL Server databases to Azure SQL Database. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + MigrateSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSqlServerSqlDbTaskOutputError, + MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult, + MigrateSqlServerSqlDbTaskOutputMigrationLevel, MigrateSqlServerSqlDbTaskOutputValidationResult, + MigrateSqlServerSqlDbTaskOutputTableLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlDbTaskOutputDatabaseLevel( + MigrateSqlServerSqlDbTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the item. + :vartype database_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Migration stage that this database is in. Known values are: "None", "Initialize", + "Backup", "FileCopy", "Restore", and "Completed". + :vartype stage: str or ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar status_message: Status message. + :vartype status_message: str + :ivar message: Migration progress message. + :vartype message: str + :ivar number_of_objects: Number of objects. + :vartype number_of_objects: int + :ivar number_of_objects_completed: Number of successfully completed objects. + :vartype number_of_objects_completed: int + :ivar error_count: Number of database/object errors. + :vartype error_count: int + :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the + item. + :vartype result_prefix: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar object_summary: Summary of object results in the migration. + :vartype object_summary: str + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the item.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + stage: Optional[Union[str, "_models.DatabaseMigrationStage"]] = rest_field(visibility=["read"]) + """Migration stage that this database is in. Known values are: \"None\", \"Initialize\", + \"Backup\", \"FileCopy\", \"Restore\", and \"Completed\".""" + status_message: Optional[str] = rest_field(name="statusMessage", visibility=["read"]) + """Status message.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + number_of_objects: Optional[int] = rest_field(name="numberOfObjects", visibility=["read"]) + """Number of objects.""" + number_of_objects_completed: Optional[int] = rest_field(name="numberOfObjectsCompleted", visibility=["read"]) + """Number of successfully completed objects.""" + error_count: Optional[int] = rest_field(name="errorCount", visibility=["read"]) + """Number of database/object errors.""" + error_prefix: Optional[str] = rest_field(name="errorPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all errors of the item.""" + result_prefix: Optional[str] = rest_field(name="resultPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all sub-tem results of the item.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + object_summary: Optional[str] = rest_field(name="objectSummary", visibility=["read"]) + """Summary of object results in the migration.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult( + MigrateSqlServerSqlDbTaskOutput, discriminator="MigrationDatabaseLevelValidationOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult. + + :ivar id: Result identifier. + :vartype id: str + :ivar migration_id: Migration Identifier. + :vartype migration_id: str + :ivar source_database_name: Name of the source database. + :vartype source_database_name: str + :ivar target_database_name: Name of the target database. + :vartype target_database_name: str + :ivar started_on: Validation start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Validation end time. + :vartype ended_on: ~datetime.datetime + :ivar data_integrity_validation_result: Provides data integrity validation result between the + source and target tables that are migrated. + :vartype data_integrity_validation_result: + ~azure.mgmt.datamigration.models.DataIntegrityValidationResult + :ivar schema_validation_result: Provides schema comparison result between source and target + database. + :vartype schema_validation_result: + ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult + :ivar query_analysis_validation_result: Results of some of the query execution result between + source and target database. + :vartype query_analysis_validation_result: + ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult + :ivar status: Current status of validation at the database level. Known values are: "Default", + "NotStarted", "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and + "Failed". + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + :ivar result_type: Result type. Required. Default value is + "MigrationDatabaseLevelValidationOutput". + :vartype result_type: str + """ + + migration_id: Optional[str] = rest_field(name="migrationId", visibility=["read"]) + """Migration Identifier.""" + source_database_name: Optional[str] = rest_field(name="sourceDatabaseName", visibility=["read"]) + """Name of the source database.""" + target_database_name: Optional[str] = rest_field(name="targetDatabaseName", visibility=["read"]) + """Name of the target database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Validation start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Validation end time.""" + data_integrity_validation_result: Optional["_models.DataIntegrityValidationResult"] = rest_field( + name="dataIntegrityValidationResult", visibility=["read"] + ) + """Provides data integrity validation result between the source and target tables that are + migrated.""" + schema_validation_result: Optional["_models.SchemaComparisonValidationResult"] = rest_field( + name="schemaValidationResult", visibility=["read"] + ) + """Provides schema comparison result between source and target database.""" + query_analysis_validation_result: Optional["_models.QueryAnalysisValidationResult"] = rest_field( + name="queryAnalysisValidationResult", visibility=["read"] + ) + """Results of some of the query execution result between source and target database.""" + status: Optional[Union[str, "_models.ValidationStatus"]] = rest_field(visibility=["read"]) + """Current status of validation at the database level. Known values are: \"Default\", + \"NotStarted\", \"Initialized\", \"InProgress\", \"Completed\", \"CompletedWithIssues\", + \"Stopped\", and \"Failed\".""" + result_type: Literal["MigrationDatabaseLevelValidationOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationDatabaseLevelValidationOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationDatabaseLevelValidationOutput" # type: ignore + + +class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput, discriminator="ErrorOutput"): + """MigrateSqlServerSqlDbTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateSqlServerSqlDbTaskOutputMigrationLevel( + MigrateSqlServerSqlDbTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar duration_in_seconds: Duration of task execution in seconds. + :vartype duration_in_seconds: int + :ivar status: Current status of migration. Known values are: "Default", "Connecting", + "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", + "Completed", and "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar status_message: Migration status message. + :vartype status_message: str + :ivar message: Migration progress message. + :vartype message: str + :ivar databases: Selected databases as a map from database name to database id. + :vartype databases: str + :ivar database_summary: Summary of database results in the migration. + :vartype database_summary: str + :ivar migration_validation_result: Migration Validation Results. + :vartype migration_validation_result: + ~azure.mgmt.datamigration.models.MigrationValidationResult + :ivar migration_report_result: Migration Report Result, provides unique url for downloading + your migration report. + :vartype migration_report_result: ~azure.mgmt.datamigration.models.MigrationReportResult + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + duration_in_seconds: Optional[int] = rest_field(name="durationInSeconds", visibility=["read"]) + """Duration of task execution in seconds.""" + status: Optional[Union[str, "_models.MigrationStatus"]] = rest_field(visibility=["read"]) + """Current status of migration. Known values are: \"Default\", \"Connecting\", + \"SourceAndTargetSelected\", \"SelectLogins\", \"Configured\", \"Running\", \"Error\", + \"Stopped\", \"Completed\", and \"CompletedWithWarnings\".""" + status_message: Optional[str] = rest_field(name="statusMessage", visibility=["read"]) + """Migration status message.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + databases: Optional[str] = rest_field(visibility=["read"]) + """Selected databases as a map from database name to database id.""" + database_summary: Optional[str] = rest_field(name="databaseSummary", visibility=["read"]) + """Summary of database results in the migration.""" + migration_validation_result: Optional["_models.MigrationValidationResult"] = rest_field( + name="migrationValidationResult", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration Validation Results.""" + migration_report_result: Optional["_models.MigrationReportResult"] = rest_field( + name="migrationReportResult", visibility=["read", "create", "update", "delete", "query"] + ) + """Migration Report Result, provides unique url for downloading your migration report.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + *, + migration_validation_result: Optional["_models.MigrationValidationResult"] = None, + migration_report_result: Optional["_models.MigrationReportResult"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateSqlServerSqlDbTaskOutputTableLevel( + MigrateSqlServerSqlDbTaskOutput, discriminator="TableLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbTaskOutputTableLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar object_name: Name of the item. + :vartype object_name: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar status_message: Status message. + :vartype status_message: str + :ivar items_count: Number of items. + :vartype items_count: int + :ivar items_completed_count: Number of successfully completed items. + :vartype items_completed_count: int + :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. + :vartype error_prefix: str + :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the + item. + :vartype result_prefix: str + :ivar result_type: Result type. Required. Default value is "TableLevelOutput". + :vartype result_type: str + """ + + object_name: Optional[str] = rest_field(name="objectName", visibility=["read"]) + """Name of the item.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + status_message: Optional[str] = rest_field(name="statusMessage", visibility=["read"]) + """Status message.""" + items_count: Optional[int] = rest_field(name="itemsCount", visibility=["read"]) + """Number of items.""" + items_completed_count: Optional[int] = rest_field(name="itemsCompletedCount", visibility=["read"]) + """Number of successfully completed items.""" + error_prefix: Optional[str] = rest_field(name="errorPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all errors of the item.""" + result_prefix: Optional[str] = rest_field(name="resultPrefix", visibility=["read"]) + """Wildcard string prefix to use for querying all sub-tem results of the item.""" + result_type: Literal["TableLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"TableLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "TableLevelOutput" # type: ignore + + +class MigrateSqlServerSqlDbTaskOutputValidationResult( + MigrateSqlServerSqlDbTaskOutput, discriminator="MigrationValidationOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlDbTaskOutputValidationResult. + + :ivar id: Migration validation result identifier. + :vartype id: str + :ivar migration_id: Migration Identifier. + :vartype migration_id: str + :ivar summary_results: Validation summary results for each database. + :vartype summary_results: dict[str, + ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] + :ivar status: Current status of validation at the migration level. Status from the database + validation result status will be aggregated here. Known values are: "Default", "NotStarted", + "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and "Failed". + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + :ivar result_type: Result type. Required. Default value is "MigrationValidationOutput". + :vartype result_type: str + """ + + migration_id: Optional[str] = rest_field(name="migrationId", visibility=["read"]) + """Migration Identifier.""" + summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = rest_field( + name="summaryResults", visibility=["read", "create", "update", "delete", "query"] + ) + """Validation summary results for each database.""" + status: Optional[Union[str, "_models.ValidationStatus"]] = rest_field(visibility=["read"]) + """Current status of validation at the migration level. Status from the database validation result + status will be aggregated here. Known values are: \"Default\", \"NotStarted\", \"Initialized\", + \"InProgress\", \"Completed\", \"CompletedWithIssues\", \"Stopped\", and \"Failed\".""" + result_type: Literal["MigrationValidationOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationValidationOutput\".""" + + @overload + def __init__( + self, + *, + summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationValidationOutput" # type: ignore + + +class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties, discriminator="Migrate.SqlServer.SqlDb"): + """Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput] + :ivar task_id: task id. + :vartype task_id: str + :ivar is_cloneable: whether the task can be cloned or not. + :vartype is_cloneable: bool + :ivar created_on: DateTime in UTC when the task was created. + :vartype created_on: str + :ivar task_type: Task type. Required. Migrate.SqlServer.SqlDb. + :vartype task_type: str or ~azure.mgmt.datamigration.models.MIGRATE_SQL_SERVER_SQL_DB + """ + + input: Optional["_models.MigrateSqlServerSqlDbTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateSqlServerSqlDbTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """task id.""" + is_cloneable: Optional[bool] = rest_field( + name="isCloneable", visibility=["read", "create", "update", "delete", "query"] + ) + """whether the task can be cloned or not.""" + created_on: Optional[str] = rest_field(name="createdOn", visibility=["read", "create", "update", "delete", "query"]) + """DateTime in UTC when the task was created.""" + task_type: Literal[TaskType.MIGRATE_SQL_SERVER_SQL_DB] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.SqlServer.SqlDb.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateSqlServerSqlDbTaskInput"] = None, + task_id: Optional[str] = None, + is_cloneable: Optional[bool] = None, + created_on: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_SQL_SERVER_SQL_DB # type: ignore + + +class MigrateSqlServerSqlMIDatabaseInput(_Model): + """Database specific information for SQL to Azure SQL DB Managed Instance migration task inputs. + + :ivar name: Name of the database. Required. + :vartype name: str + :ivar restore_database_name: Name of the database at destination. Required. + :vartype restore_database_name: str + :ivar backup_file_share: Backup file share information for backing up this database. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar backup_file_paths: The list of backup files to be used in case of existing backups. + :vartype backup_file_paths: list[str] + :ivar id: id of the database. + :vartype id: str + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the database. Required.""" + restore_database_name: str = rest_field( + name="restoreDatabaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the database at destination. Required.""" + backup_file_share: Optional["_models.FileShare"] = rest_field( + name="backupFileShare", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup file share information for backing up this database.""" + backup_file_paths: Optional[list[str]] = rest_field( + name="backupFilePaths", visibility=["read", "create", "update", "delete", "query"] + ) + """The list of backup files to be used in case of existing backups.""" + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """id of the database.""" + + @overload + def __init__( + self, + *, + name: str, + restore_database_name: str, + backup_file_share: Optional["_models.FileShare"] = None, + backup_file_paths: Optional[list[str]] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlServerSqlMISyncTaskInput(_Model): + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online + scenario. + + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :ivar backup_file_share: Backup file share information for all selected databases. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar storage_resource_id: Fully qualified resourceId of storage. Required. + :vartype storage_resource_id: str + :ivar source_connection_info: Connection information for source SQL Server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to + connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage + Account. Required. + :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + backup_file_share: Optional["_models.FileShare"] = rest_field( + name="backupFileShare", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup file share information for all selected databases.""" + storage_resource_id: str = rest_field( + name="storageResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Fully qualified resourceId of storage. Required.""" + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for source SQL Server. Required.""" + target_connection_info: "_models.MiSqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Connection information for Azure SQL Database Managed Instance. Required.""" + azure_app: "_models.AzureActiveDirectoryApp" = rest_field( + name="azureApp", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Active Directory Application the DMS (classic) instance will use to connect to the target + instance of Azure SQL Database Managed Instance and the Azure Storage Account. Required.""" + + @overload + def __init__( + self, + *, + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], + storage_resource_id: str, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.MiSqlConnectionInfo", + azure_app: "_models.AzureActiveDirectoryApp", + backup_file_share: Optional["_models.FileShare"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online + scenario. + + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :ivar backup_file_share: Backup file share information for all selected databases. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar storage_resource_id: Fully qualified resourceId of storage. Required. + :vartype storage_resource_id: str + :ivar source_connection_info: Connection information for source SQL Server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to + connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage + Account. Required. + :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + :ivar number_of_parallel_database_migrations: Number of database migrations to start in + parallel. + :vartype number_of_parallel_database_migrations: float + """ + + number_of_parallel_database_migrations: Optional[float] = rest_field( + name="numberOfParallelDatabaseMigrations", visibility=["read", "create", "update", "delete", "query"] + ) + """Number of database migrations to start in parallel.""" + + @overload + def __init__( + self, + *, + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], + storage_resource_id: str, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.MiSqlConnectionInfo", + azure_app: "_models.AzureActiveDirectoryApp", + backup_file_share: Optional["_models.FileShare"] = None, + number_of_parallel_database_migrations: Optional[float] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlMISyncTaskOutput(_Model): + """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, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel( + MigrateSqlServerSqlMISyncTaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar source_database_name: Name of the database. + :vartype source_database_name: str + :ivar migration_state: Current state of database. Known values are: "UNDEFINED", "INITIAL", + "FULL_BACKUP_UPLOAD_START", "LOG_SHIPPING_START", "UPLOAD_LOG_FILES_START", "CUTOVER_START", + "POST_CUTOVER_COMPLETE", "COMPLETED", "CANCELLED", and "FAILED". + :vartype migration_state: str or ~azure.mgmt.datamigration.models.DatabaseMigrationState + :ivar started_on: Database migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Database migration end time. + :vartype ended_on: ~datetime.datetime + :ivar full_backup_set_info: Details of full backup set. + :vartype full_backup_set_info: ~azure.mgmt.datamigration.models.BackupSetInfo + :ivar last_restored_backup_set_info: Last applied backup set information. + :vartype last_restored_backup_set_info: ~azure.mgmt.datamigration.models.BackupSetInfo + :ivar active_backup_sets: Backup sets that are currently active (Either being uploaded or + getting restored). + :vartype active_backup_sets: list[~azure.mgmt.datamigration.models.BackupSetInfo] + :ivar container_name: Name of container created in the Azure Storage account where backups are + copied to. + :vartype container_name: str + :ivar error_prefix: prefix string to use for querying errors for this database. + :vartype error_prefix: str + :ivar is_full_backup_restored: Whether full backup has been applied to the target database or + not. + :vartype is_full_backup_restored: bool + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + source_database_name: Optional[str] = rest_field(name="sourceDatabaseName", visibility=["read"]) + """Name of the database.""" + migration_state: Optional[Union[str, "_models.DatabaseMigrationState"]] = rest_field( + name="migrationState", visibility=["read"] + ) + """Current state of database. Known values are: \"UNDEFINED\", \"INITIAL\", + \"FULL_BACKUP_UPLOAD_START\", \"LOG_SHIPPING_START\", \"UPLOAD_LOG_FILES_START\", + \"CUTOVER_START\", \"POST_CUTOVER_COMPLETE\", \"COMPLETED\", \"CANCELLED\", and \"FAILED\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Database migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Database migration end time.""" + full_backup_set_info: Optional["_models.BackupSetInfo"] = rest_field(name="fullBackupSetInfo", visibility=["read"]) + """Details of full backup set.""" + last_restored_backup_set_info: Optional["_models.BackupSetInfo"] = rest_field( + name="lastRestoredBackupSetInfo", visibility=["read"] + ) + """Last applied backup set information.""" + active_backup_sets: Optional[list["_models.BackupSetInfo"]] = rest_field( + name="activeBackupSets", visibility=["read"] + ) + """Backup sets that are currently active (Either being uploaded or getting restored).""" + container_name: Optional[str] = rest_field(name="containerName", visibility=["read"]) + """Name of container created in the Azure Storage account where backups are copied to.""" + error_prefix: Optional[str] = rest_field(name="errorPrefix", visibility=["read"]) + """prefix string to use for querying errors for this database.""" + is_full_backup_restored: Optional[bool] = rest_field(name="isFullBackupRestored", visibility=["read"]) + """Whether full backup has been applied to the target database or not.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput, discriminator="ErrorOutput"): + """MigrateSqlServerSqlMISyncTaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel( + MigrateSqlServerSqlMISyncTaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_count: Count of databases. + :vartype database_count: int + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar source_server_name: Source server name. + :vartype source_server_name: str + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar target_server_name: Target server name. + :vartype target_server_name: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar database_error_count: Number of database level errors. + :vartype database_error_count: int + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + database_count: Optional[int] = rest_field(name="databaseCount", visibility=["read"]) + """Count of databases.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + source_server_name: Optional[str] = rest_field(name="sourceServerName", visibility=["read"]) + """Source server name.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + target_server_name: Optional[str] = rest_field(name="targetServerName", visibility=["read"]) + """Target server name.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + database_error_count: Optional[int] = rest_field(name="databaseErrorCount", visibility=["read"]) + """Number of database level errors.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateSqlServerSqlMISyncTaskProperties( + ProjectTaskProperties, discriminator="Migrate.SqlServer.AzureSqlDbMI.Sync.LRS" +): + """Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance + sync scenario. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput] + :ivar created_on: DateTime in UTC when the task was created. + :vartype created_on: str + :ivar task_type: Task type. Required. Migrate.SqlServer.AzureSqlDbMI.Sync.LRS. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS + """ + + input: Optional["_models.MigrateSqlServerSqlMISyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateSqlServerSqlMISyncTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + created_on: Optional[str] = rest_field(name="createdOn", visibility=["read", "create", "update", "delete", "query"]) + """DateTime in UTC when the task was created.""" + task_type: Literal[TaskType.MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.SqlServer.AzureSqlDbMI.Sync.LRS.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateSqlServerSqlMISyncTaskInput"] = None, + created_on: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS # type: ignore + + +class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :ivar started_on: Date and time relative to UTC when the migration was started on. + :vartype started_on: str + :ivar selected_logins: Logins to migrate. + :vartype selected_logins: list[str] + :ivar selected_agent_jobs: Agent Jobs to migrate. + :vartype selected_agent_jobs: list[str] + :ivar backup_file_share: Backup file share information for all selected databases. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar backup_blob_share: SAS URI of Azure Storage Account Container to be used for storing + backup files. Required. + :vartype backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare + :ivar backup_mode: Backup Mode to specify whether to use existing backup or create new backup. + If using existing backups, backup file paths are required to be provided in selectedDatabases. + Known values are: "CreateBackup" and "ExistingBackup". + :vartype backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode + :ivar aad_domain_name: Azure Active Directory domain name in the format of 'contoso.com' for + federated Azure AD or 'contoso.onmicrosoft.com' for managed domain, required if and only if + Windows logins are selected. + :vartype aad_domain_name: str + :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. + :vartype encrypted_key_for_secure_fields: str + """ + + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + started_on: Optional[str] = rest_field(name="startedOn", visibility=["read", "create", "update", "delete", "query"]) + """Date and time relative to UTC when the migration was started on.""" + selected_logins: Optional[list[str]] = rest_field( + name="selectedLogins", visibility=["read", "create", "update", "delete", "query"] + ) + """Logins to migrate.""" + selected_agent_jobs: Optional[list[str]] = rest_field( + name="selectedAgentJobs", visibility=["read", "create", "update", "delete", "query"] + ) + """Agent Jobs to migrate.""" + backup_file_share: Optional["_models.FileShare"] = rest_field( + name="backupFileShare", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup file share information for all selected databases.""" + backup_blob_share: "_models.BlobShare" = rest_field( + name="backupBlobShare", visibility=["read", "create", "update", "delete", "query"] + ) + """SAS URI of Azure Storage Account Container to be used for storing backup files. Required.""" + backup_mode: Optional[Union[str, "_models.BackupMode"]] = rest_field( + name="backupMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup Mode to specify whether to use existing backup or create new backup. If using existing + backups, backup file paths are required to be provided in selectedDatabases. Known values are: + \"CreateBackup\" and \"ExistingBackup\".""" + aad_domain_name: Optional[str] = rest_field( + name="aadDomainName", visibility=["read", "create", "update", "delete", "query"] + ) + """Azure Active Directory domain name in the format of 'contoso.com' for federated Azure AD or + 'contoso.onmicrosoft.com' for managed domain, required if and only if Windows logins are + selected.""" + encrypted_key_for_secure_fields: Optional[str] = rest_field( + name="encryptedKeyForSecureFields", visibility=["read", "create", "update", "delete", "query"] + ) + """encrypted key for secure fields.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], + backup_blob_share: "_models.BlobShare", + started_on: Optional[str] = None, + selected_logins: Optional[list[str]] = None, + selected_agent_jobs: Optional[list[str]] = None, + backup_file_share: Optional["_models.FileShare"] = None, + backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, + aad_domain_name: Optional[str] = None, + encrypted_key_for_secure_fields: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlMITaskOutput(_Model): + """Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + MigrateSqlServerSqlMITaskOutputAgentJobLevel, MigrateSqlServerSqlMITaskOutputDatabaseLevel, + MigrateSqlServerSqlMITaskOutputError, MigrateSqlServerSqlMITaskOutputLoginLevel, + MigrateSqlServerSqlMITaskOutputMigrationLevel + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSqlServerSqlMITaskOutputAgentJobLevel( + MigrateSqlServerSqlMITaskOutput, discriminator="AgentJobLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlMITaskOutputAgentJobLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar name: Agent Job name. + :vartype name: str + :ivar is_enabled: The state of the original Agent Job. + :vartype is_enabled: bool + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar message: Migration progress message. + :vartype message: str + :ivar exceptions_and_warnings: Migration errors and warnings per job. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "AgentJobLevelOutput". + :vartype result_type: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """Agent Job name.""" + is_enabled: Optional[bool] = rest_field(name="isEnabled", visibility=["read"]) + """The state of the original Agent Job.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration errors and warnings per job.""" + result_type: Literal["AgentJobLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"AgentJobLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "AgentJobLevelOutput" # type: ignore + + +class MigrateSqlServerSqlMITaskOutputDatabaseLevel( + MigrateSqlServerSqlMITaskOutput, discriminator="DatabaseLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlMITaskOutputDatabaseLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar size_mb: Size of the database in megabytes. + :vartype size_mb: float + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of migration. Known values are: "None", "Initialize", "Backup", + "FileCopy", "Restore", and "Completed". + :vartype stage: str or ~azure.mgmt.datamigration.models.DatabaseMigrationStage + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar message: Migration progress message. + :vartype message: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "DatabaseLevelOutput". + :vartype result_type: str + """ + + database_name: Optional[str] = rest_field(name="databaseName", visibility=["read"]) + """Name of the database.""" + size_mb: Optional[float] = rest_field(name="sizeMB", visibility=["read"]) + """Size of the database in megabytes.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + stage: Optional[Union[str, "_models.DatabaseMigrationStage"]] = rest_field(visibility=["read"]) + """Current stage of migration. Known values are: \"None\", \"Initialize\", \"Backup\", + \"FileCopy\", \"Restore\", and \"Completed\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + result_type: Literal["DatabaseLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"DatabaseLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "DatabaseLevelOutput" # type: ignore + + +class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput, discriminator="ErrorOutput"): + """MigrateSqlServerSqlMITaskOutputError. + + :ivar id: Result identifier. + :vartype id: str + :ivar error: Migration error. + :vartype error: ~azure.mgmt.datamigration.models.ReportableException + :ivar result_type: Result type. Required. Default value is "ErrorOutput". + :vartype result_type: str + """ + + error: Optional["_models.ReportableException"] = rest_field(visibility=["read"]) + """Migration error.""" + result_type: Literal["ErrorOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"ErrorOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "ErrorOutput" # type: ignore + + +class MigrateSqlServerSqlMITaskOutputLoginLevel( + MigrateSqlServerSqlMITaskOutput, discriminator="LoginLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlMITaskOutputLoginLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar login_name: Login name. + :vartype login_name: str + :ivar state: Current state of login. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Current stage of login. Known values are: "None", "Initialize", "LoginMigration", + "EstablishUserMapping", "AssignRoleMembership", "AssignRoleOwnership", + "EstablishServerPermissions", "EstablishObjectPermissions", and "Completed". + :vartype stage: str or ~azure.mgmt.datamigration.models.LoginMigrationStage + :ivar started_on: Login migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Login migration end time. + :vartype ended_on: ~datetime.datetime + :ivar message: Login migration progress message. + :vartype message: str + :ivar exceptions_and_warnings: Login migration errors and warnings per login. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "LoginLevelOutput". + :vartype result_type: str + """ + + login_name: Optional[str] = rest_field(name="loginName", visibility=["read"]) + """Login name.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of login. Known values are: \"None\", \"InProgress\", \"Failed\", \"Warning\", + \"Completed\", \"Skipped\", and \"Stopped\".""" + stage: Optional[Union[str, "_models.LoginMigrationStage"]] = rest_field(visibility=["read"]) + """Current stage of login. Known values are: \"None\", \"Initialize\", \"LoginMigration\", + \"EstablishUserMapping\", \"AssignRoleMembership\", \"AssignRoleOwnership\", + \"EstablishServerPermissions\", \"EstablishObjectPermissions\", and \"Completed\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Login migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Login migration end time.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Login migration progress message.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Login migration errors and warnings per login.""" + result_type: Literal["LoginLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"LoginLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "LoginLevelOutput" # type: ignore + + +class MigrateSqlServerSqlMITaskOutputMigrationLevel( + MigrateSqlServerSqlMITaskOutput, discriminator="MigrationLevelOutput" +): # pylint: disable=name-too-long + """MigrateSqlServerSqlMITaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar status: Current status of migration. Known values are: "Default", "Connecting", + "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", + "Completed", and "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar agent_jobs: Selected agent jobs as a map from name to id. + :vartype agent_jobs: str + :ivar logins: Selected logins as a map from name to id. + :vartype logins: str + :ivar message: Migration progress message. + :vartype message: str + :ivar server_role_results: Map of server role migration results. + :vartype server_role_results: str + :ivar orphaned_users_info: List of orphaned users. + :vartype orphaned_users_info: list[~azure.mgmt.datamigration.models.OrphanedUserInfo] + :ivar databases: Selected databases as a map from database name to database id. + :vartype databases: str + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + status: Optional[Union[str, "_models.MigrationStatus"]] = rest_field(visibility=["read"]) + """Current status of migration. Known values are: \"Default\", \"Connecting\", + \"SourceAndTargetSelected\", \"SelectLogins\", \"Configured\", \"Running\", \"Error\", + \"Stopped\", \"Completed\", and \"CompletedWithWarnings\".""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + agent_jobs: Optional[str] = rest_field(name="agentJobs", visibility=["read"]) + """Selected agent jobs as a map from name to id.""" + logins: Optional[str] = rest_field(visibility=["read"]) + """Selected logins as a map from name to id.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + server_role_results: Optional[str] = rest_field(name="serverRoleResults", visibility=["read"]) + """Map of server role migration results.""" + orphaned_users_info: Optional[list["_models.OrphanedUserInfo"]] = rest_field( + name="orphanedUsersInfo", visibility=["read"] + ) + """List of orphaned users.""" + databases: Optional[str] = rest_field(visibility=["read"]) + """Selected databases as a map from database name to database id.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties, discriminator="Migrate.SqlServer.AzureSqlDbMI"): + """Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput] + :ivar task_id: task id. + :vartype task_id: str + :ivar created_on: DateTime in UTC when the task was created. + :vartype created_on: str + :ivar parent_task_id: parent task id. + :vartype parent_task_id: str + :ivar is_cloneable: whether the task can be cloned or not. + :vartype is_cloneable: bool + :ivar task_type: Task type. Required. Migrate.SqlServer.AzureSqlDbMI. + :vartype task_type: str or ~azure.mgmt.datamigration.models.MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI + """ + + input: Optional["_models.MigrateSqlServerSqlMITaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateSqlServerSqlMITaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_id: Optional[str] = rest_field(name="taskId", visibility=["read", "create", "update", "delete", "query"]) + """task id.""" + created_on: Optional[str] = rest_field(name="createdOn", visibility=["read", "create", "update", "delete", "query"]) + """DateTime in UTC when the task was created.""" + parent_task_id: Optional[str] = rest_field( + name="parentTaskId", visibility=["read", "create", "update", "delete", "query"] + ) + """parent task id.""" + is_cloneable: Optional[bool] = rest_field( + name="isCloneable", visibility=["read", "create", "update", "delete", "query"] + ) + """whether the task can be cloned or not.""" + task_type: Literal[TaskType.MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.SqlServer.AzureSqlDbMI.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateSqlServerSqlMITaskInput"] = None, + task_id: Optional[str] = None, + created_on: Optional[str] = None, + parent_task_id: Optional[str] = None, + is_cloneable: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI # type: ignore + + +class MigrateSsisTaskInput(SqlMigrationTaskInput): + """Input for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed + Instance. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar ssis_migration_info: SSIS package migration information. Required. + :vartype ssis_migration_info: ~azure.mgmt.datamigration.models.SsisMigrationInfo + """ + + ssis_migration_info: "_models.SsisMigrationInfo" = rest_field( + name="ssisMigrationInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """SSIS package migration information. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + ssis_migration_info: "_models.SsisMigrationInfo", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSsisTaskOutput(_Model): + """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 + + :ivar id: Result identifier. + :vartype id: str + :ivar result_type: Result type. Required. Default value is None. + :vartype result_type: str + """ + + __mapping__: dict[str, _Model] = {} + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """Result type. Required. Default value is None.""" + + @overload + def __init__( + self, + *, + result_type: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSsisTaskOutputMigrationLevel(MigrateSsisTaskOutput, discriminator="MigrationLevelOutput"): + """MigrateSsisTaskOutputMigrationLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar status: Current status of migration. Known values are: "Default", "Connecting", + "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", + "Completed", and "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus + :ivar message: Migration progress message. + :vartype message: str + :ivar source_server_version: Source server version. + :vartype source_server_version: str + :ivar source_server_brand_version: Source server brand version. + :vartype source_server_brand_version: str + :ivar target_server_version: Target server version. + :vartype target_server_version: str + :ivar target_server_brand_version: Target server brand version. + :vartype target_server_brand_version: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar stage: Stage of SSIS migration. Known values are: "None", "Initialize", "InProgress", and + "Completed". + :vartype stage: str or ~azure.mgmt.datamigration.models.SsisMigrationStage + :ivar result_type: Result type. Required. Default value is "MigrationLevelOutput". + :vartype result_type: str + """ + + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + status: Optional[Union[str, "_models.MigrationStatus"]] = rest_field(visibility=["read"]) + """Current status of migration. Known values are: \"Default\", \"Connecting\", + \"SourceAndTargetSelected\", \"SelectLogins\", \"Configured\", \"Running\", \"Error\", + \"Stopped\", \"Completed\", and \"CompletedWithWarnings\".""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + source_server_version: Optional[str] = rest_field(name="sourceServerVersion", visibility=["read"]) + """Source server version.""" + source_server_brand_version: Optional[str] = rest_field(name="sourceServerBrandVersion", visibility=["read"]) + """Source server brand version.""" + target_server_version: Optional[str] = rest_field(name="targetServerVersion", visibility=["read"]) + """Target server version.""" + target_server_brand_version: Optional[str] = rest_field(name="targetServerBrandVersion", visibility=["read"]) + """Target server brand version.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + stage: Optional[Union[str, "_models.SsisMigrationStage"]] = rest_field(visibility=["read"]) + """Stage of SSIS migration. Known values are: \"None\", \"Initialize\", \"InProgress\", and + \"Completed\".""" + result_type: Literal["MigrationLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"MigrationLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "MigrationLevelOutput" # type: ignore + + +class MigrateSsisTaskOutputProjectLevel(MigrateSsisTaskOutput, discriminator="SsisProjectLevelOutput"): + """MigrateSsisTaskOutputProjectLevel. + + :ivar id: Result identifier. + :vartype id: str + :ivar folder_name: Name of the folder. + :vartype folder_name: str + :ivar project_name: Name of the project. + :vartype project_name: str + :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", + "Warning", "Completed", "Skipped", and "Stopped". + :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState + :ivar stage: Stage of SSIS migration. Known values are: "None", "Initialize", "InProgress", and + "Completed". + :vartype stage: str or ~azure.mgmt.datamigration.models.SsisMigrationStage + :ivar started_on: Migration start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Migration end time. + :vartype ended_on: ~datetime.datetime + :ivar message: Migration progress message. + :vartype message: str + :ivar exceptions_and_warnings: Migration exceptions and warnings. + :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar result_type: Result type. Required. Default value is "SsisProjectLevelOutput". + :vartype result_type: str + """ + + folder_name: Optional[str] = rest_field(name="folderName", visibility=["read"]) + """Name of the folder.""" + project_name: Optional[str] = rest_field(name="projectName", visibility=["read"]) + """Name of the project.""" + state: Optional[Union[str, "_models.MigrationState"]] = rest_field(visibility=["read"]) + """Current state of migration. Known values are: \"None\", \"InProgress\", \"Failed\", + \"Warning\", \"Completed\", \"Skipped\", and \"Stopped\".""" + stage: Optional[Union[str, "_models.SsisMigrationStage"]] = rest_field(visibility=["read"]) + """Stage of SSIS migration. Known values are: \"None\", \"Initialize\", \"InProgress\", and + \"Completed\".""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Migration start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Migration end time.""" + message: Optional[str] = rest_field(visibility=["read"]) + """Migration progress message.""" + exceptions_and_warnings: Optional[list["_models.ReportableException"]] = rest_field( + name="exceptionsAndWarnings", visibility=["read"] + ) + """Migration exceptions and warnings.""" + result_type: Literal["SsisProjectLevelOutput"] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Result type. Required. Default value is \"SsisProjectLevelOutput\".""" + + @overload + def __init__( + self, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = "SsisProjectLevelOutput" # type: ignore + + +class MigrateSsisTaskProperties(ProjectTaskProperties, discriminator="Migrate.Ssis"): + """Properties for task that migrates SSIS packages from SQL Server databases to Azure SQL Database + Managed Instance. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSsisTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.MigrateSsisTaskOutput] + :ivar task_type: Task type. Required. Migrate.Ssis. + :vartype task_type: str or ~azure.mgmt.datamigration.models.MIGRATE_SSIS + """ + + input: Optional["_models.MigrateSsisTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.MigrateSsisTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.MIGRATE_SSIS] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Migrate.Ssis.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateSsisTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.MIGRATE_SSIS # type: ignore + + +class MigrateSyncCompleteCommandInput(_Model): + """Input for command that completes sync migration for a database. + + :ivar database_name: Name of database. Required. + :vartype database_name: str + :ivar commit_time_stamp: Time stamp to complete. + :vartype commit_time_stamp: ~datetime.datetime + """ + + database_name: str = rest_field(name="databaseName", visibility=["read", "create", "update", "delete", "query"]) + """Name of database. Required.""" + commit_time_stamp: Optional[datetime.datetime] = rest_field( + name="commitTimeStamp", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """Time stamp to complete.""" + + @overload + def __init__( + self, + *, + database_name: str, + commit_time_stamp: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrateSyncCompleteCommandOutput(_Model): + """Output for command that completes sync migration for a database. + + :ivar id: Result identifier. + :vartype id: str + :ivar errors: List of errors that happened during the command execution. + :vartype errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + errors: Optional[list["_models.ReportableException"]] = rest_field(visibility=["read"]) + """List of errors that happened during the command execution.""" + + +class MigrateSyncCompleteCommandProperties(CommandProperties, discriminator="Migrate.Sync.Complete.Database"): + """Properties for the command that completes sync migration for a database. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. Known values are: + "Unknown", "Accepted", "Running", "Succeeded", and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :ivar input: Command input. + :vartype input: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput + :ivar output: Command output. This is ignored if submitted. + :vartype output: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput + :ivar command_id: Command id. + :vartype command_id: str + :ivar command_type: Command type. Required. Migrate.Sync.Complete.Database. + :vartype command_type: str or ~azure.mgmt.datamigration.models.MIGRATE_SYNC_COMPLETE_DATABASE + """ + + input: Optional["_models.MigrateSyncCompleteCommandInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Command input.""" + output: Optional["_models.MigrateSyncCompleteCommandOutput"] = rest_field(visibility=["read"]) + """Command output. This is ignored if submitted.""" + command_id: Optional[str] = rest_field(name="commandId", visibility=["read", "create", "update", "delete", "query"]) + """Command id.""" + command_type: Literal[CommandType.MIGRATE_SYNC_COMPLETE_DATABASE] = rest_discriminator(name="commandType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Command type. Required. Migrate.Sync.Complete.Database.""" + + @overload + def __init__( + self, + *, + input: Optional["_models.MigrateSyncCompleteCommandInput"] = None, + command_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.command_type = CommandType.MIGRATE_SYNC_COMPLETE_DATABASE # type: ignore + + +class MigrationEligibilityInfo(_Model): + """Information about migration eligibility of a server object. + + :ivar is_eligible_for_migration: Whether object is eligible for migration or not. + :vartype is_eligible_for_migration: bool + :ivar validation_messages: Information about eligibility failure for the server object. + :vartype validation_messages: list[str] + """ + + is_eligible_for_migration: Optional[bool] = rest_field(name="isEligibleForMigration", visibility=["read"]) + """Whether object is eligible for migration or not.""" + validation_messages: Optional[list[str]] = rest_field(name="validationMessages", visibility=["read"]) + """Information about eligibility failure for the server object.""" + + +class MigrationOperationInput(_Model): + """Migration Operation Input. + + :ivar migration_operation_id: ID tracking migration operation. + :vartype migration_operation_id: str + """ + + migration_operation_id: Optional[str] = rest_field( + name="migrationOperationId", visibility=["read", "create", "update", "delete", "query"] + ) + """ID tracking migration operation.""" + + @overload + def __init__( + self, + *, + migration_operation_id: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrationReportResult(_Model): + """Migration validation report result, contains the url for downloading the generated report. + + :ivar id: Migration validation result identifier. + :vartype id: str + :ivar report_url: The url of the report. + :vartype report_url: str + """ + + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Migration validation result identifier.""" + report_url: Optional[str] = rest_field(name="reportUrl", visibility=["read", "create", "update", "delete", "query"]) + """The url of the report.""" + + @overload + def __init__( + self, + *, + id: Optional[str] = None, # pylint: disable=redefined-builtin + report_url: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TrackedResource(Resource): + """Tracked Resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives. Required.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrationService(TrackedResource): + """A Migration Service. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The Migration Service properties. + :vartype properties: ~azure.mgmt.datamigration.models.MigrationServiceProperties + """ + + properties: Optional["_models.MigrationServiceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The Migration Service properties.""" + + __flattened_items = ["provisioning_state", "integration_runtime_state"] + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[dict[str, str]] = None, + properties: Optional["_models.MigrationServiceProperties"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class MigrationServiceProperties(_Model): + """The Migration Service properties. + + :ivar provisioning_state: Provisioning state to track the async operation status. Known values + are: "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState + :ivar integration_runtime_state: Current state of the Integration runtime. + :vartype integration_runtime_state: str + """ + + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """Provisioning state to track the async operation status. Known values are: \"Provisioning\", + \"Updating\", \"Succeeded\", \"Failed\", and \"Canceled\".""" + integration_runtime_state: Optional[str] = rest_field(name="integrationRuntimeState", visibility=["read"]) + """Current state of the Integration runtime.""" + + +class MigrationServiceUpdate(_Model): + """An update to a Migration Service. + + :ivar tags: Dictionary of . + :vartype tags: dict[str, str] + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dictionary of .""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrationStatusDetails(_Model): + """Detailed status of current migration. + + :ivar migration_state: Current State of Migration. + :vartype migration_state: str + :ivar full_backup_set_info: Details of full backup set. + :vartype full_backup_set_info: ~azure.mgmt.datamigration.models.SqlBackupSetInfo + :ivar last_restored_backup_set_info: Last applied backup set information. + :vartype last_restored_backup_set_info: ~azure.mgmt.datamigration.models.SqlBackupSetInfo + :ivar active_backup_sets: Backup sets that are currently active. + :vartype active_backup_sets: list[~azure.mgmt.datamigration.models.SqlBackupSetInfo] + :ivar invalid_files: Files that are not valid backup files. + :vartype invalid_files: list[str] + :ivar blob_container_name: Name of blob container. + :vartype blob_container_name: str + :ivar is_full_backup_restored: Whether full backup has been applied to the target database or + not. + :vartype is_full_backup_restored: bool + :ivar restore_blocking_reason: Restore blocking reason, if any. + :vartype restore_blocking_reason: str + :ivar complete_restore_error_message: Complete restore error message, if any. + :vartype complete_restore_error_message: str + :ivar file_upload_blocking_errors: File upload blocking errors, if any. + :vartype file_upload_blocking_errors: list[str] + :ivar current_restoring_filename: File name that is currently being restored. + :vartype current_restoring_filename: str + :ivar last_restored_filename: Last restored file name. + :vartype last_restored_filename: str + :ivar pending_log_backups_count: Total pending log backups. + :vartype pending_log_backups_count: int + """ + + migration_state: Optional[str] = rest_field(name="migrationState", visibility=["read"]) + """Current State of Migration.""" + full_backup_set_info: Optional["_models.SqlBackupSetInfo"] = rest_field( + name="fullBackupSetInfo", visibility=["read"] + ) + """Details of full backup set.""" + last_restored_backup_set_info: Optional["_models.SqlBackupSetInfo"] = rest_field( + name="lastRestoredBackupSetInfo", visibility=["read"] + ) + """Last applied backup set information.""" + active_backup_sets: Optional[list["_models.SqlBackupSetInfo"]] = rest_field( + name="activeBackupSets", visibility=["read"] + ) + """Backup sets that are currently active.""" + invalid_files: Optional[list[str]] = rest_field(name="invalidFiles", visibility=["read"]) + """Files that are not valid backup files.""" + blob_container_name: Optional[str] = rest_field(name="blobContainerName", visibility=["read"]) + """Name of blob container.""" + is_full_backup_restored: Optional[bool] = rest_field(name="isFullBackupRestored", visibility=["read"]) + """Whether full backup has been applied to the target database or not.""" + restore_blocking_reason: Optional[str] = rest_field(name="restoreBlockingReason", visibility=["read"]) + """Restore blocking reason, if any.""" + complete_restore_error_message: Optional[str] = rest_field(name="completeRestoreErrorMessage", visibility=["read"]) + """Complete restore error message, if any.""" + file_upload_blocking_errors: Optional[list[str]] = rest_field(name="fileUploadBlockingErrors", visibility=["read"]) + """File upload blocking errors, if any.""" + current_restoring_filename: Optional[str] = rest_field(name="currentRestoringFilename", visibility=["read"]) + """File name that is currently being restored.""" + last_restored_filename: Optional[str] = rest_field(name="lastRestoredFilename", visibility=["read"]) + """Last restored file name.""" + pending_log_backups_count: Optional[int] = rest_field(name="pendingLogBackupsCount", visibility=["read"]) + """Total pending log backups.""" + + +class MigrationValidationDatabaseSummaryResult(_Model): + """Migration Validation Database level summary result. + + :ivar id: Result identifier. + :vartype id: str + :ivar migration_id: Migration Identifier. + :vartype migration_id: str + :ivar source_database_name: Name of the source database. + :vartype source_database_name: str + :ivar target_database_name: Name of the target database. + :vartype target_database_name: str + :ivar started_on: Validation start time. + :vartype started_on: ~datetime.datetime + :ivar ended_on: Validation end time. + :vartype ended_on: ~datetime.datetime + :ivar status: Current status of validation at the database level. Known values are: "Default", + "NotStarted", "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and + "Failed". + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + migration_id: Optional[str] = rest_field(name="migrationId", visibility=["read"]) + """Migration Identifier.""" + source_database_name: Optional[str] = rest_field(name="sourceDatabaseName", visibility=["read"]) + """Name of the source database.""" + target_database_name: Optional[str] = rest_field(name="targetDatabaseName", visibility=["read"]) + """Name of the target database.""" + started_on: Optional[datetime.datetime] = rest_field(name="startedOn", visibility=["read"], format="rfc3339") + """Validation start time.""" + ended_on: Optional[datetime.datetime] = rest_field(name="endedOn", visibility=["read"], format="rfc3339") + """Validation end time.""" + status: Optional[Union[str, "_models.ValidationStatus"]] = rest_field(visibility=["read"]) + """Current status of validation at the database level. Known values are: \"Default\", + \"NotStarted\", \"Initialized\", \"InProgress\", \"Completed\", \"CompletedWithIssues\", + \"Stopped\", and \"Failed\".""" + + +class MigrationValidationOptions(_Model): + """Types of validations to run after the migration. + + :ivar enable_schema_validation: Allows to compare the schema information between source and + target. + :vartype enable_schema_validation: bool + :ivar enable_data_integrity_validation: Allows to perform a checksum based data integrity + validation between source and target for the selected database / tables . + :vartype enable_data_integrity_validation: bool + :ivar enable_query_analysis_validation: Allows to perform a quick and intelligent query + analysis by retrieving queries from the source database and executes them in the target. The + result will have execution statistics for executions in source and target databases for the + extracted queries. + :vartype enable_query_analysis_validation: bool + """ + + enable_schema_validation: Optional[bool] = rest_field( + name="enableSchemaValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Allows to compare the schema information between source and target.""" + enable_data_integrity_validation: Optional[bool] = rest_field( + name="enableDataIntegrityValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Allows to perform a checksum based data integrity validation between source and target for the + selected database / tables .""" + enable_query_analysis_validation: Optional[bool] = rest_field( + name="enableQueryAnalysisValidation", visibility=["read", "create", "update", "delete", "query"] + ) + """Allows to perform a quick and intelligent query analysis by retrieving queries from the source + database and executes them in the target. The result will have execution statistics for + executions in source and target databases for the extracted queries.""" + + @overload + def __init__( + self, + *, + enable_schema_validation: Optional[bool] = None, + enable_data_integrity_validation: Optional[bool] = None, + enable_query_analysis_validation: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MigrationValidationResult(_Model): + """Migration Validation Result. + + :ivar id: Migration validation result identifier. + :vartype id: str + :ivar migration_id: Migration Identifier. + :vartype migration_id: str + :ivar summary_results: Validation summary results for each database. + :vartype summary_results: dict[str, + ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] + :ivar status: Current status of validation at the migration level. Status from the database + validation result status will be aggregated here. Known values are: "Default", "NotStarted", + "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and "Failed". + :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Migration validation result identifier.""" + migration_id: Optional[str] = rest_field(name="migrationId", visibility=["read"]) + """Migration Identifier.""" + summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = rest_field( + name="summaryResults", visibility=["read", "create", "update", "delete", "query"] + ) + """Validation summary results for each database.""" + status: Optional[Union[str, "_models.ValidationStatus"]] = rest_field(visibility=["read"]) + """Current status of validation at the migration level. Status from the database validation result + status will be aggregated here. Known values are: \"Default\", \"NotStarted\", \"Initialized\", + \"InProgress\", \"Completed\", \"CompletedWithIssues\", \"Stopped\", and \"Failed\".""" + + @overload + def __init__( + self, + *, + summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MiSqlConnectionInfo(ConnectionInfo, discriminator="MiSqlConnectionInfo"): + """Properties required to create a connection to Azure SQL database Managed instance. + + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + :ivar managed_instance_resource_id: Resource id for Azure SQL database Managed instance. + Required. + :vartype managed_instance_resource_id: str + :ivar type: Type of connection info. Required. Default value is "MiSqlConnectionInfo". + :vartype type: str + """ + + managed_instance_resource_id: str = rest_field( + name="managedInstanceResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource id for Azure SQL database Managed instance. Required.""" + type: Literal["MiSqlConnectionInfo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of connection info. Required. Default value is \"MiSqlConnectionInfo\".""" + + @overload + def __init__( + self, + *, + managed_instance_resource_id: str, + user_name: Optional[str] = None, + password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MiSqlConnectionInfo" # type: ignore + + +class MongoConnectionInformation(_Model): + """Mongo Connection. + + :ivar host: Host of mongo connection. + :vartype host: str + :ivar port: Port of mongo connection. + :vartype port: int + :ivar user_name: User name to connect to Mongo. + :vartype user_name: str + :ivar password: Password to connect to Mongo. + :vartype password: str + :ivar use_ssl: Whether to UseSsl or UseTls to connect to Mongo. Default is true. + :vartype use_ssl: bool + :ivar connection_string: ConnectionString to connect to Mongo. + :vartype connection_string: str + """ + + host: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Host of mongo connection.""" + port: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Port of mongo connection.""" + user_name: Optional[str] = rest_field(name="userName", visibility=["create", "update"]) + """User name to connect to Mongo.""" + password: Optional[str] = rest_field(visibility=["create", "update"]) + """Password to connect to Mongo.""" + use_ssl: Optional[bool] = rest_field(name="useSsl", visibility=["create", "update"]) + """Whether to UseSsl or UseTls to connect to Mongo. Default is true.""" + connection_string: Optional[str] = rest_field(name="connectionString", visibility=["create", "update"]) + """ConnectionString to connect to Mongo.""" + + @overload + def __init__( + self, + *, + host: Optional[str] = None, + port: Optional[int] = None, + user_name: Optional[str] = None, + password: Optional[str] = None, + use_ssl: Optional[bool] = None, + connection_string: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbCancelCommand(CommandProperties, discriminator="cancel"): + """Properties for the command that cancels a migration in whole or in part. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. Known values are: + "Unknown", "Accepted", "Running", "Succeeded", and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :ivar input: Command input. + :vartype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput + :ivar command_type: Command type. Required. cancel. + :vartype command_type: str or ~azure.mgmt.datamigration.models.CANCEL + """ + + input: Optional["_models.MongoDbCommandInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Command input.""" + command_type: Literal[CommandType.CANCEL] = rest_discriminator(name="commandType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Command type. Required. cancel.""" + + @overload + def __init__( + self, + *, + input: Optional["_models.MongoDbCommandInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.command_type = CommandType.CANCEL # type: ignore + + +class MongoDbClusterInfo(_Model): + """Describes a MongoDB data source. + + :ivar databases: A list of non-system databases in the cluster. Required. + :vartype databases: list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] + :ivar supports_sharding: Whether the cluster supports sharded collections. Required. + :vartype supports_sharding: bool + :ivar type: The type of data source. Required. Known values are: "BlobContainer", "CosmosDb", + and "MongoDb". + :vartype type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType + :ivar version: The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if Type + is BlobContainer. Required. + :vartype version: str + """ + + databases: list["_models.MongoDbDatabaseInfo"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """A list of non-system databases in the cluster. Required.""" + supports_sharding: bool = rest_field( + name="supportsSharding", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the cluster supports sharded collections. Required.""" + type: Union[str, "_models.MongoDbClusterType"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of data source. Required. Known values are: \"BlobContainer\", \"CosmosDb\", and + \"MongoDb\".""" + version: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if Type is + BlobContainer. Required.""" + + @overload + def __init__( + self, + *, + databases: list["_models.MongoDbDatabaseInfo"], + supports_sharding: bool, + type: Union[str, "_models.MongoDbClusterType"], + version: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbObjectInfo(_Model): + """Describes a database or collection within a MongoDB data source. + + :ivar average_document_size: The average document size, or -1 if the average size is unknown. + Required. + :vartype average_document_size: int + :ivar data_size: The estimated total data size, in bytes, or -1 if the size is unknown. + Required. + :vartype data_size: int + :ivar document_count: The estimated total number of documents, or -1 if the document count is + unknown. Required. + :vartype document_count: int + :ivar name: The unqualified name of the database or collection. Required. + :vartype name: str + :ivar qualified_name: The qualified name of the database or collection. For a collection, this + is the database-qualified name. Required. + :vartype qualified_name: str + """ + + average_document_size: int = rest_field( + name="averageDocumentSize", visibility=["read", "create", "update", "delete", "query"] + ) + """The average document size, or -1 if the average size is unknown. Required.""" + data_size: int = rest_field(name="dataSize", visibility=["read", "create", "update", "delete", "query"]) + """The estimated total data size, in bytes, or -1 if the size is unknown. Required.""" + document_count: int = rest_field(name="documentCount", visibility=["read", "create", "update", "delete", "query"]) + """The estimated total number of documents, or -1 if the document count is unknown. Required.""" + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The unqualified name of the database or collection. Required.""" + qualified_name: str = rest_field(name="qualifiedName", visibility=["read", "create", "update", "delete", "query"]) + """The qualified name of the database or collection. For a collection, this is the + database-qualified name. Required.""" + + @overload + def __init__( + self, + *, + average_document_size: int, + data_size: int, + document_count: int, + name: str, + qualified_name: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbCollectionInfo(MongoDbObjectInfo): + """Describes a supported collection within a MongoDB database. + + :ivar average_document_size: The average document size, or -1 if the average size is unknown. + Required. + :vartype average_document_size: int + :ivar data_size: The estimated total data size, in bytes, or -1 if the size is unknown. + Required. + :vartype data_size: int + :ivar document_count: The estimated total number of documents, or -1 if the document count is + unknown. Required. + :vartype document_count: int + :ivar name: The unqualified name of the database or collection. Required. + :vartype name: str + :ivar qualified_name: The qualified name of the database or collection. For a collection, this + is the database-qualified name. Required. + :vartype qualified_name: str + :ivar database_name: The name of the database containing the collection. Required. + :vartype database_name: str + :ivar is_capped: Whether the collection is a capped collection (i.e. whether it has a fixed + size and acts like a circular buffer). Required. + :vartype is_capped: bool + :ivar is_system_collection: Whether the collection is system collection. Required. + :vartype is_system_collection: bool + :ivar is_view: Whether the collection is a view of another collection. Required. + :vartype is_view: bool + :ivar shard_key: The shard key on the collection, or null if the collection is not sharded. + :vartype shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo + :ivar supports_sharding: Whether the database has sharding enabled. Note that the migration + task will enable sharding on the target if necessary. Required. + :vartype supports_sharding: bool + :ivar view_of: The name of the collection that this is a view of, if IsView is true. + :vartype view_of: str + """ + + database_name: str = rest_field(name="databaseName", visibility=["read", "create", "update", "delete", "query"]) + """The name of the database containing the collection. Required.""" + is_capped: bool = rest_field(name="isCapped", visibility=["read", "create", "update", "delete", "query"]) + """Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a + circular buffer). Required.""" + is_system_collection: bool = rest_field( + name="isSystemCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the collection is system collection. Required.""" + is_view: bool = rest_field(name="isView", visibility=["read", "create", "update", "delete", "query"]) + """Whether the collection is a view of another collection. Required.""" + shard_key: Optional["_models.MongoDbShardKeyInfo"] = rest_field( + name="shardKey", visibility=["read", "create", "update", "delete", "query"] + ) + """The shard key on the collection, or null if the collection is not sharded.""" + supports_sharding: bool = rest_field( + name="supportsSharding", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the database has sharding enabled. Note that the migration task will enable sharding on + the target if necessary. Required.""" + view_of: Optional[str] = rest_field(name="viewOf", visibility=["read", "create", "update", "delete", "query"]) + """The name of the collection that this is a view of, if IsView is true.""" + + @overload + def __init__( + self, + *, + average_document_size: int, + data_size: int, + document_count: int, + name: str, + qualified_name: str, + database_name: str, + is_capped: bool, + is_system_collection: bool, + is_view: bool, + supports_sharding: bool, + shard_key: Optional["_models.MongoDbShardKeyInfo"] = None, + view_of: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbProgress(_Model): + """Base class for MongoDB migration outputs. + + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + MongoDbCollectionProgress, MongoDbDatabaseProgress, MongoDbMigrationProgress + + :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. + :vartype bytes_copied: int + :ivar documents_copied: The number of documents copied during the Copying stage. Required. + :vartype documents_copied: int + :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + format). Required. + :vartype elapsed_time: str + :ivar errors: The errors and warnings that have occurred for the current object. The keys are + the error codes. Required. + :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :ivar events_pending: The number of oplog events awaiting replay. Required. + :vartype events_pending: int + :ivar events_replayed: The number of oplog events replayed so far. Required. + :vartype events_replayed: int + :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog + event has been received yet. + :vartype last_event_time: ~datetime.datetime + :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog + event has been replayed yet. + :vartype last_replay_time: ~datetime.datetime + :ivar name: The name of the progress object. For a collection, this is the unqualified + collection name. For a database, this is the database name. For the overall migration, this is + null. + :vartype name: str + :ivar qualified_name: The qualified name of the progress object. For a collection, this is the + database-qualified name. For a database, this is the database name. For the overall migration, + this is null. + :vartype qualified_name: str + :ivar result_type: The type of progress object. Required. Known values are: "Migration", + "Database", and "Collection". + :vartype result_type: str or ~azure.mgmt.datamigration.models.MongoDbProgressResultType + :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", + "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", + and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :ivar total_bytes: The total number of document bytes on the source at the beginning of the + Copying stage, or -1 if the total size was unknown. Required. + :vartype total_bytes: int + :ivar total_documents: The total number of documents on the source at the beginning of the + Copying stage, or -1 if the total count was unknown. Required. + :vartype total_documents: int + """ + + __mapping__: dict[str, _Model] = {} + bytes_copied: int = rest_field(name="bytesCopied", visibility=["read", "create", "update", "delete", "query"]) + """The number of document bytes copied during the Copying stage. Required.""" + documents_copied: int = rest_field( + name="documentsCopied", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of documents copied during the Copying stage. Required.""" + elapsed_time: str = rest_field(name="elapsedTime", visibility=["read", "create", "update", "delete", "query"]) + """The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format). Required.""" + errors: dict[str, "_models.MongoDbError"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The errors and warnings that have occurred for the current object. The keys are the error + codes. Required.""" + events_pending: int = rest_field(name="eventsPending", visibility=["read", "create", "update", "delete", "query"]) + """The number of oplog events awaiting replay. Required.""" + events_replayed: int = rest_field(name="eventsReplayed", visibility=["read", "create", "update", "delete", "query"]) + """The number of oplog events replayed so far. Required.""" + last_event_time: Optional[datetime.datetime] = rest_field( + name="lastEventTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of the last oplog event received, or null if no oplog event has been received + yet.""" + last_replay_time: Optional[datetime.datetime] = rest_field( + name="lastReplayTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of the last oplog event replayed, or null if no oplog event has been replayed + yet.""" + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the progress object. For a collection, this is the unqualified collection name. For + a database, this is the database name. For the overall migration, this is null.""" + qualified_name: Optional[str] = rest_field( + name="qualifiedName", visibility=["read", "create", "update", "delete", "query"] + ) + """The qualified name of the progress object. For a collection, this is the database-qualified + name. For a database, this is the database name. For the overall migration, this is null.""" + result_type: str = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) + """The type of progress object. Required. Known values are: \"Migration\", \"Database\", and + \"Collection\".""" + state: Union[str, "_models.MongoDbMigrationState"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Required. Known values are: \"NotStarted\", \"ValidatingInput\", \"Initializing\", + \"Restarting\", \"Copying\", \"InitialReplay\", \"Replaying\", \"Finalizing\", \"Complete\", + \"Canceled\", and \"Failed\".""" + total_bytes: int = rest_field(name="totalBytes", visibility=["read", "create", "update", "delete", "query"]) + """The total number of document bytes on the source at the beginning of the Copying stage, or -1 + if the total size was unknown. Required.""" + total_documents: int = rest_field(name="totalDocuments", visibility=["read", "create", "update", "delete", "query"]) + """The total number of documents on the source at the beginning of the Copying stage, or -1 if the + total count was unknown. Required.""" + + @overload + def __init__( + self, + *, + bytes_copied: int, + documents_copied: int, + elapsed_time: str, + errors: dict[str, "_models.MongoDbError"], + events_pending: int, + events_replayed: int, + result_type: str, + state: Union[str, "_models.MongoDbMigrationState"], + total_bytes: int, + total_documents: int, + last_event_time: Optional[datetime.datetime] = None, + last_replay_time: Optional[datetime.datetime] = None, + name: Optional[str] = None, + qualified_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbCollectionProgress(MongoDbProgress, discriminator="Collection"): + """Describes the progress of a collection. + + :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. + :vartype bytes_copied: int + :ivar documents_copied: The number of documents copied during the Copying stage. Required. + :vartype documents_copied: int + :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + format). Required. + :vartype elapsed_time: str + :ivar errors: The errors and warnings that have occurred for the current object. The keys are + the error codes. Required. + :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :ivar events_pending: The number of oplog events awaiting replay. Required. + :vartype events_pending: int + :ivar events_replayed: The number of oplog events replayed so far. Required. + :vartype events_replayed: int + :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog + event has been received yet. + :vartype last_event_time: ~datetime.datetime + :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog + event has been replayed yet. + :vartype last_replay_time: ~datetime.datetime + :ivar name: The name of the progress object. For a collection, this is the unqualified + collection name. For a database, this is the database name. For the overall migration, this is + null. + :vartype name: str + :ivar qualified_name: The qualified name of the progress object. For a collection, this is the + database-qualified name. For a database, this is the database name. For the overall migration, + this is null. + :vartype qualified_name: str + :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", + "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", + and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :ivar total_bytes: The total number of document bytes on the source at the beginning of the + Copying stage, or -1 if the total size was unknown. Required. + :vartype total_bytes: int + :ivar total_documents: The total number of documents on the source at the beginning of the + Copying stage, or -1 if the total count was unknown. Required. + :vartype total_documents: int + :ivar result_type: The type of progress object. Required. Collection. + :vartype result_type: str or ~azure.mgmt.datamigration.models.COLLECTION + """ + + result_type: Literal[MongoDbProgressResultType.COLLECTION] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of progress object. Required. Collection.""" + + @overload + def __init__( + self, + *, + bytes_copied: int, + documents_copied: int, + elapsed_time: str, + errors: dict[str, "_models.MongoDbError"], + events_pending: int, + events_replayed: int, + state: Union[str, "_models.MongoDbMigrationState"], + total_bytes: int, + total_documents: int, + last_event_time: Optional[datetime.datetime] = None, + last_replay_time: Optional[datetime.datetime] = None, + name: Optional[str] = None, + qualified_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = MongoDbProgressResultType.COLLECTION # type: ignore + + +class MongoDbCollectionSettings(_Model): + """Describes how an individual MongoDB collection should be migrated. + + :ivar can_delete: Whether the migrator is allowed to drop the target collection in the course + of performing a migration. The default is true. + :vartype can_delete: bool + :ivar shard_key: Describes a MongoDB shard key. + :vartype shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting + :ivar target_r_us: The RUs that should be configured on a CosmosDB target, or null to use the + default. This has no effect on non-CosmosDB targets. + :vartype target_r_us: int + """ + + can_delete: Optional[bool] = rest_field( + name="canDelete", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the migrator is allowed to drop the target collection in the course of performing a + migration. The default is true.""" + shard_key: Optional["_models.MongoDbShardKeySetting"] = rest_field( + name="shardKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Describes a MongoDB shard key.""" + target_r_us: Optional[int] = rest_field( + name="targetRUs", visibility=["read", "create", "update", "delete", "query"] + ) + """The RUs that should be configured on a CosmosDB target, or null to use the default. This has no + effect on non-CosmosDB targets.""" + + @overload + def __init__( + self, + *, + can_delete: Optional[bool] = None, + shard_key: Optional["_models.MongoDbShardKeySetting"] = None, + target_r_us: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbCommandInput(_Model): + """Describes the input to the 'cancel' and 'restart' MongoDB migration commands. + + :ivar object_name: The qualified name of a database or collection to act upon, or null to act + upon the entire migration. + :vartype object_name: str + """ + + object_name: Optional[str] = rest_field( + name="objectName", visibility=["read", "create", "update", "delete", "query"] + ) + """The qualified name of a database or collection to act upon, or null to act upon the entire + migration.""" + + @overload + def __init__( + self, + *, + object_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbConnectionInfo(ConnectionInfo, discriminator="MongoDbConnectionInfo"): + """Describes a connection to a MongoDB data source. + + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + :ivar connection_string: A MongoDB connection string or blob container URL. The user name and + password can be specified here or in the userName and password properties. Required. + :vartype connection_string: str + :ivar data_source: Data source. + :vartype data_source: str + :ivar encrypt_connection: Whether to encrypt the connection. + :vartype encrypt_connection: bool + :ivar server_brand_version: server brand version. + :vartype server_brand_version: str + :ivar server_version: server version. + :vartype server_version: str + :ivar server_name: name of the server. + :vartype server_name: str + :ivar trust_server_certificate: Whether to trust the server certificate. + :vartype trust_server_certificate: bool + :ivar enforce_ssl: + :vartype enforce_ssl: bool + :ivar port: port for server. + :vartype port: int + :ivar additional_settings: Additional connection settings. + :vartype additional_settings: str + :ivar authentication: Authentication type to use for connection. Known values are: "None", + "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and + "ActiveDirectoryPassword". + :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType + :ivar type: Type of connection info. Required. Default value is "MongoDbConnectionInfo". + :vartype type: str + """ + + connection_string: str = rest_field( + name="connectionString", visibility=["read", "create", "update", "delete", "query"] + ) + """A MongoDB connection string or blob container URL. The user name and password can be specified + here or in the userName and password properties. Required.""" + data_source: Optional[str] = rest_field( + name="dataSource", visibility=["read", "create", "update", "delete", "query"] + ) + """Data source.""" + encrypt_connection: Optional[bool] = rest_field( + name="encryptConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to encrypt the connection.""" + server_brand_version: Optional[str] = rest_field( + name="serverBrandVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server brand version.""" + server_version: Optional[str] = rest_field( + name="serverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server version.""" + server_name: Optional[str] = rest_field( + name="serverName", visibility=["read", "create", "update", "delete", "query"] + ) + """name of the server.""" + trust_server_certificate: Optional[bool] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to trust the server certificate.""" + enforce_ssl: Optional[bool] = rest_field( + name="enforceSSL", visibility=["read", "create", "update", "delete", "query"] + ) + port: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """port for server.""" + additional_settings: Optional[str] = rest_field( + name="additionalSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional connection settings.""" + authentication: Optional[Union[str, "_models.AuthenticationType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type to use for connection. Known values are: \"None\", + \"WindowsAuthentication\", \"SqlAuthentication\", \"ActiveDirectoryIntegrated\", and + \"ActiveDirectoryPassword\".""" + type: Literal["MongoDbConnectionInfo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of connection info. Required. Default value is \"MongoDbConnectionInfo\".""" + + @overload + def __init__( + self, + *, + connection_string: str, + user_name: Optional[str] = None, + password: Optional[str] = None, + data_source: Optional[str] = None, + encrypt_connection: Optional[bool] = None, + server_brand_version: Optional[str] = None, + server_version: Optional[str] = None, + server_name: Optional[str] = None, + trust_server_certificate: Optional[bool] = None, + enforce_ssl: Optional[bool] = None, + port: Optional[int] = None, + additional_settings: Optional[str] = None, + authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MongoDbConnectionInfo" # type: ignore + + +class MongoDbDatabaseInfo(MongoDbObjectInfo): + """Describes a database within a MongoDB data source. + + :ivar average_document_size: The average document size, or -1 if the average size is unknown. + Required. + :vartype average_document_size: int + :ivar data_size: The estimated total data size, in bytes, or -1 if the size is unknown. + Required. + :vartype data_size: int + :ivar document_count: The estimated total number of documents, or -1 if the document count is + unknown. Required. + :vartype document_count: int + :ivar name: The unqualified name of the database or collection. Required. + :vartype name: str + :ivar qualified_name: The qualified name of the database or collection. For a collection, this + is the database-qualified name. Required. + :vartype qualified_name: str + :ivar collections: A list of supported collections in a MongoDB database. Required. + :vartype collections: list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] + :ivar supports_sharding: Whether the database has sharding enabled. Note that the migration + task will enable sharding on the target if necessary. Required. + :vartype supports_sharding: bool + """ + + collections: list["_models.MongoDbCollectionInfo"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """A list of supported collections in a MongoDB database. Required.""" + supports_sharding: bool = rest_field( + name="supportsSharding", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether the database has sharding enabled. Note that the migration task will enable sharding on + the target if necessary. Required.""" + + @overload + def __init__( + self, + *, + average_document_size: int, + data_size: int, + document_count: int, + name: str, + qualified_name: str, + collections: list["_models.MongoDbCollectionInfo"], + supports_sharding: bool, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbDatabaseProgress(MongoDbProgress, discriminator="Database"): + """Describes the progress of a database. + + :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. + :vartype bytes_copied: int + :ivar documents_copied: The number of documents copied during the Copying stage. Required. + :vartype documents_copied: int + :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + format). Required. + :vartype elapsed_time: str + :ivar errors: The errors and warnings that have occurred for the current object. The keys are + the error codes. Required. + :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :ivar events_pending: The number of oplog events awaiting replay. Required. + :vartype events_pending: int + :ivar events_replayed: The number of oplog events replayed so far. Required. + :vartype events_replayed: int + :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog + event has been received yet. + :vartype last_event_time: ~datetime.datetime + :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog + event has been replayed yet. + :vartype last_replay_time: ~datetime.datetime + :ivar name: The name of the progress object. For a collection, this is the unqualified + collection name. For a database, this is the database name. For the overall migration, this is + null. + :vartype name: str + :ivar qualified_name: The qualified name of the progress object. For a collection, this is the + database-qualified name. For a database, this is the database name. For the overall migration, + this is null. + :vartype qualified_name: str + :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", + "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", + and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :ivar total_bytes: The total number of document bytes on the source at the beginning of the + Copying stage, or -1 if the total size was unknown. Required. + :vartype total_bytes: int + :ivar total_documents: The total number of documents on the source at the beginning of the + Copying stage, or -1 if the total count was unknown. Required. + :vartype total_documents: int + :ivar collections: The progress of the collections in the database. The keys are the + unqualified names of the collections. + :vartype collections: dict[str, ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] + :ivar result_type: The type of progress object. Required. Database. + :vartype result_type: str or ~azure.mgmt.datamigration.models.DATABASE + """ + + collections: Optional[dict[str, "_models.MongoDbCollectionProgress"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The progress of the collections in the database. The keys are the unqualified names of the + collections.""" + result_type: Literal[MongoDbProgressResultType.DATABASE] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of progress object. Required. Database.""" + + @overload + def __init__( + self, + *, + bytes_copied: int, + documents_copied: int, + elapsed_time: str, + errors: dict[str, "_models.MongoDbError"], + events_pending: int, + events_replayed: int, + state: Union[str, "_models.MongoDbMigrationState"], + total_bytes: int, + total_documents: int, + last_event_time: Optional[datetime.datetime] = None, + last_replay_time: Optional[datetime.datetime] = None, + name: Optional[str] = None, + qualified_name: Optional[str] = None, + collections: Optional[dict[str, "_models.MongoDbCollectionProgress"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = MongoDbProgressResultType.DATABASE # type: ignore + + +class MongoDbDatabaseSettings(_Model): + """Describes how an individual MongoDB database should be migrated. + + :ivar collections: The collections on the source database to migrate to the target. The keys + are the unqualified names of the collections. Required. + :vartype collections: dict[str, ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] + :ivar target_r_us: The RUs that should be configured on a CosmosDB target, or null to use the + default, or 0 if throughput should not be provisioned for the database. This has no effect on + non-CosmosDB targets. + :vartype target_r_us: int + """ + + collections: dict[str, "_models.MongoDbCollectionSettings"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The collections on the source database to migrate to the target. The keys are the unqualified + names of the collections. Required.""" + target_r_us: Optional[int] = rest_field( + name="targetRUs", visibility=["read", "create", "update", "delete", "query"] + ) + """The RUs that should be configured on a CosmosDB target, or null to use the default, or 0 if + throughput should not be provisioned for the database. This has no effect on non-CosmosDB + targets.""" + + @overload + def __init__( + self, + *, + collections: dict[str, "_models.MongoDbCollectionSettings"], + target_r_us: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbError(_Model): + """Describes an error or warning that occurred during a MongoDB migration. + + :ivar code: The non-localized, machine-readable code that describes the error or warning. + :vartype code: str + :ivar count: The number of times the error or warning has occurred. + :vartype count: int + :ivar message: The localized, human-readable message that describes the error or warning. + :vartype message: str + :ivar type: The type of error or warning. Known values are: "Error", "ValidationError", and + "Warning". + :vartype type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType + """ + + code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The non-localized, machine-readable code that describes the error or warning.""" + count: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The number of times the error or warning has occurred.""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The localized, human-readable message that describes the error or warning.""" + type: Optional[Union[str, "_models.MongoDbErrorType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The type of error or warning. Known values are: \"Error\", \"ValidationError\", and + \"Warning\".""" + + @overload + def __init__( + self, + *, + code: Optional[str] = None, + count: Optional[int] = None, + message: Optional[str] = None, + type: Optional[Union[str, "_models.MongoDbErrorType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbFinishCommand(CommandProperties, discriminator="finish"): + """Properties for the command that finishes a migration in whole or in part. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. Known values are: + "Unknown", "Accepted", "Running", "Succeeded", and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :ivar input: Command input. + :vartype input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput + :ivar command_type: Command type. Required. finish. + :vartype command_type: str or ~azure.mgmt.datamigration.models.FINISH + """ + + input: Optional["_models.MongoDbFinishCommandInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Command input.""" + command_type: Literal[CommandType.FINISH] = rest_discriminator(name="commandType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Command type. Required. finish.""" + + @overload + def __init__( + self, + *, + input: Optional["_models.MongoDbFinishCommandInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.command_type = CommandType.FINISH # type: ignore + + +class MongoDbFinishCommandInput(MongoDbCommandInput): + """Describes the input to the 'finish' MongoDB migration command. + + :ivar object_name: The qualified name of a database or collection to act upon, or null to act + upon the entire migration. + :vartype object_name: str + :ivar immediate: If true, replication for the affected objects will be stopped immediately. If + false, the migrator will finish replaying queued events before finishing the replication. + Required. + :vartype immediate: bool + """ + + immediate: bool = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """If true, replication for the affected objects will be stopped immediately. If false, the + migrator will finish replaying queued events before finishing the replication. Required.""" + + @overload + def __init__( + self, + *, + immediate: bool, + object_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbMigrationProgress(MongoDbProgress, discriminator="Migration"): + """Describes the progress of the overall migration. + + :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. + :vartype bytes_copied: int + :ivar documents_copied: The number of documents copied during the Copying stage. Required. + :vartype documents_copied: int + :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan + format). Required. + :vartype elapsed_time: str + :ivar errors: The errors and warnings that have occurred for the current object. The keys are + the error codes. Required. + :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] + :ivar events_pending: The number of oplog events awaiting replay. Required. + :vartype events_pending: int + :ivar events_replayed: The number of oplog events replayed so far. Required. + :vartype events_replayed: int + :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog + event has been received yet. + :vartype last_event_time: ~datetime.datetime + :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog + event has been replayed yet. + :vartype last_replay_time: ~datetime.datetime + :ivar name: The name of the progress object. For a collection, this is the unqualified + collection name. For a database, this is the database name. For the overall migration, this is + null. + :vartype name: str + :ivar qualified_name: The qualified name of the progress object. For a collection, this is the + database-qualified name. For a database, this is the database name. For the overall migration, + this is null. + :vartype qualified_name: str + :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", + "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", + and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState + :ivar total_bytes: The total number of document bytes on the source at the beginning of the + Copying stage, or -1 if the total size was unknown. Required. + :vartype total_bytes: int + :ivar total_documents: The total number of documents on the source at the beginning of the + Copying stage, or -1 if the total count was unknown. Required. + :vartype total_documents: int + :ivar databases: The progress of the databases in the migration. The keys are the names of the + databases. + :vartype databases: dict[str, ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] + :ivar result_type: The type of progress object. Required. Migration. + :vartype result_type: str or ~azure.mgmt.datamigration.models.MIGRATION + """ + + databases: Optional[dict[str, "_models.MongoDbDatabaseProgress"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The progress of the databases in the migration. The keys are the names of the databases.""" + result_type: Literal[MongoDbProgressResultType.MIGRATION] = rest_discriminator(name="resultType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """The type of progress object. Required. Migration.""" + + @overload + def __init__( + self, + *, + bytes_copied: int, + documents_copied: int, + elapsed_time: str, + errors: dict[str, "_models.MongoDbError"], + events_pending: int, + events_replayed: int, + state: Union[str, "_models.MongoDbMigrationState"], + total_bytes: int, + total_documents: int, + last_event_time: Optional[datetime.datetime] = None, + last_replay_time: Optional[datetime.datetime] = None, + name: Optional[str] = None, + qualified_name: Optional[str] = None, + databases: Optional[dict[str, "_models.MongoDbDatabaseProgress"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.result_type = MongoDbProgressResultType.MIGRATION # type: ignore + + +class MongoDbMigrationSettings(_Model): + """Describes how a MongoDB data migration should be performed. + + :ivar 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 + to use the default boost (which is generally the maximum), or null to not boost the RUs. This + setting has no effect on non-CosmosDB targets. + :vartype boost_r_us: int + :ivar databases: The databases on the source cluster to migrate to the target. The keys are the + names of the databases. Required. + :vartype databases: dict[str, ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] + :ivar replication: Describes how changes will be replicated from the source to the target. The + default is OneTime. Known values are: "Disabled", "OneTime", and "Continuous". + :vartype replication: str or ~azure.mgmt.datamigration.models.MongoDbReplication + :ivar source: Settings used to connect to the source cluster. Required. + :vartype source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :ivar target: Settings used to connect to the target cluster. Required. + :vartype target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo + :ivar throttling: Settings used to limit the resource usage of the migration. + :vartype throttling: ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings + """ + + boost_r_us: Optional[int] = rest_field(name="boostRUs", visibility=["read", "create", "update", "delete", "query"]) + """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 to use the default boost + (which is generally the maximum), or null to not boost the RUs. This setting has no effect on + non-CosmosDB targets.""" + databases: dict[str, "_models.MongoDbDatabaseSettings"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The databases on the source cluster to migrate to the target. The keys are the names of the + databases. Required.""" + replication: Optional[Union[str, "_models.MongoDbReplication"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes how changes will be replicated from the source to the target. The default is OneTime. + Known values are: \"Disabled\", \"OneTime\", and \"Continuous\".""" + source: "_models.MongoDbConnectionInfo" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Settings used to connect to the source cluster. Required.""" + target: "_models.MongoDbConnectionInfo" = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Settings used to connect to the target cluster. Required.""" + throttling: Optional["_models.MongoDbThrottlingSettings"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Settings used to limit the resource usage of the migration.""" + + @overload + def __init__( + self, + *, + databases: dict[str, "_models.MongoDbDatabaseSettings"], + source: "_models.MongoDbConnectionInfo", + target: "_models.MongoDbConnectionInfo", + boost_r_us: Optional[int] = None, + replication: Optional[Union[str, "_models.MongoDbReplication"]] = None, + throttling: Optional["_models.MongoDbThrottlingSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbRestartCommand(CommandProperties, discriminator="restart"): + """Properties for the command that restarts a migration in whole or in part. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the command. This is ignored if submitted. Known values are: + "Unknown", "Accepted", "Running", "Succeeded", and "Failed". + :vartype state: str or ~azure.mgmt.datamigration.models.CommandState + :ivar input: Command input. + :vartype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput + :ivar command_type: Command type. Required. restart. + :vartype command_type: str or ~azure.mgmt.datamigration.models.RESTART + """ + + input: Optional["_models.MongoDbCommandInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Command input.""" + command_type: Literal[CommandType.RESTART] = rest_discriminator(name="commandType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Command type. Required. restart.""" + + @overload + def __init__( + self, + *, + input: Optional["_models.MongoDbCommandInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.command_type = CommandType.RESTART # type: ignore + + +class MongoDbShardKeyField(_Model): + """Describes a field reference within a MongoDB shard key. + + :ivar name: The name of the field. Required. + :vartype name: str + :ivar order: The field ordering. Required. Known values are: "Forward", "Reverse", and + "Hashed". + :vartype order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder + """ + + name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the field. Required.""" + order: Union[str, "_models.MongoDbShardKeyOrder"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The field ordering. Required. Known values are: \"Forward\", \"Reverse\", and \"Hashed\".""" + + @overload + def __init__( + self, + *, + name: str, + order: Union[str, "_models.MongoDbShardKeyOrder"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbShardKeyInfo(_Model): + """Describes a MongoDB shard key. + + :ivar fields: The fields within the shard key. Required. + :vartype fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] + :ivar is_unique: Whether the shard key is unique. Required. + :vartype is_unique: bool + """ + + fields: list["_models.MongoDbShardKeyField"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The fields within the shard key. Required.""" + is_unique: bool = rest_field(name="isUnique", visibility=["read", "create", "update", "delete", "query"]) + """Whether the shard key is unique. Required.""" + + @overload + def __init__( + self, + *, + fields: list["_models.MongoDbShardKeyField"], + is_unique: bool, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbShardKeySetting(_Model): + """Describes a MongoDB shard key. + + :ivar fields: The fields within the shard key. Required. + :vartype fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] + :ivar is_unique: Whether the shard key is unique. + :vartype is_unique: bool + """ + + fields: list["_models.MongoDbShardKeyField"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The fields within the shard key. Required.""" + is_unique: Optional[bool] = rest_field(name="isUnique", visibility=["read", "create", "update", "delete", "query"]) + """Whether the shard key is unique.""" + + @overload + def __init__( + self, + *, + fields: list["_models.MongoDbShardKeyField"], + is_unique: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoDbThrottlingSettings(_Model): + """Specifies resource limits for the migration. + + :ivar min_free_cpu: The percentage of CPU time that the migrator will try to avoid using, from + 0 to 100. + :vartype min_free_cpu: int + :ivar min_free_memory_mb: The number of megabytes of RAM that the migrator will try to avoid + using. + :vartype min_free_memory_mb: int + :ivar max_parallelism: The maximum number of work items (e.g. collection copies) that will be + processed in parallel. + :vartype max_parallelism: int + """ + + min_free_cpu: Optional[int] = rest_field( + name="minFreeCpu", visibility=["read", "create", "update", "delete", "query"] + ) + """The percentage of CPU time that the migrator will try to avoid using, from 0 to 100.""" + min_free_memory_mb: Optional[int] = rest_field( + name="minFreeMemoryMb", visibility=["read", "create", "update", "delete", "query"] + ) + """The number of megabytes of RAM that the migrator will try to avoid using.""" + max_parallelism: Optional[int] = rest_field( + name="maxParallelism", visibility=["read", "create", "update", "delete", "query"] + ) + """The maximum number of work items (e.g. collection copies) that will be processed in parallel.""" + + @overload + def __init__( + self, + *, + min_free_cpu: Optional[int] = None, + min_free_memory_mb: Optional[int] = None, + max_parallelism: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoMigrationCollection(_Model): + """Mongo source and target database and collection details. + + :ivar source_database: Source database name. + :vartype source_database: str + :ivar source_collection: Source collection name. + :vartype source_collection: str + :ivar target_database: Target database name. + :vartype target_database: str + :ivar target_collection: Target collection name. + :vartype target_collection: str + :ivar migration_progress_details: Detailed migration status. Not included by default. + :vartype migration_progress_details: + ~azure.mgmt.datamigration.models.MongoMigrationProgressDetails + """ + + source_database: Optional[str] = rest_field( + name="sourceDatabase", visibility=["read", "create", "update", "delete", "query"] + ) + """Source database name.""" + source_collection: Optional[str] = rest_field( + name="sourceCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """Source collection name.""" + target_database: Optional[str] = rest_field( + name="targetDatabase", visibility=["read", "create", "update", "delete", "query"] + ) + """Target database name.""" + target_collection: Optional[str] = rest_field( + name="targetCollection", visibility=["read", "create", "update", "delete", "query"] + ) + """Target collection name.""" + migration_progress_details: Optional["_models.MongoMigrationProgressDetails"] = rest_field( + name="migrationProgressDetails", visibility=["read"] + ) + """Detailed migration status. Not included by default.""" + + @overload + def __init__( + self, + *, + source_database: Optional[str] = None, + source_collection: Optional[str] = None, + target_database: Optional[str] = None, + target_collection: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MongoMigrationProgressDetails(_Model): + """Detailed status of collection migration. + + :ivar migration_status: Migration Status. Known values are: "NotStarted", "InProgress", + "Completed", "Failed", and "Canceled". + :vartype migration_status: str or ~azure.mgmt.datamigration.models.MongoMigrationStatus + :ivar migration_error: Migration Error. + :vartype migration_error: str + :ivar source_document_count: Source Document Count. + :vartype source_document_count: int + :ivar processed_document_count: Processed Document Count. + :vartype processed_document_count: int + :ivar duration_in_seconds: Migration duration. + :vartype duration_in_seconds: int + """ + + migration_status: Optional[Union[str, "_models.MongoMigrationStatus"]] = rest_field( + name="migrationStatus", visibility=["read"] + ) + """Migration Status. Known values are: \"NotStarted\", \"InProgress\", \"Completed\", \"Failed\", + and \"Canceled\".""" + migration_error: Optional[str] = rest_field(name="migrationError", visibility=["read"]) + """Migration Error.""" + source_document_count: Optional[int] = rest_field(name="sourceDocumentCount", visibility=["read"]) + """Source Document Count.""" + processed_document_count: Optional[int] = rest_field(name="processedDocumentCount", visibility=["read"]) + """Processed Document Count.""" + duration_in_seconds: Optional[int] = rest_field(name="durationInSeconds", visibility=["read"]) + """Migration duration.""" + + +class MySqlConnectionInfo(ConnectionInfo, discriminator="MySqlConnectionInfo"): + """Information for connecting to MySQL server. + + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + :ivar server_name: Name of the server. Required. + :vartype server_name: str + :ivar data_source: Data source. + :vartype data_source: str + :ivar port: Port for Server. Required. + :vartype port: int + :ivar encrypt_connection: Whether to encrypt the connection. + :vartype encrypt_connection: bool + :ivar authentication: Authentication type to use for connection. Known values are: "None", + "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and + "ActiveDirectoryPassword". + :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType + :ivar additional_settings: Additional connection settings. + :vartype additional_settings: str + :ivar type: Type of connection info. Required. Default value is "MySqlConnectionInfo". + :vartype type: str + """ + + server_name: str = rest_field(name="serverName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the server. Required.""" + data_source: Optional[str] = rest_field( + name="dataSource", visibility=["read", "create", "update", "delete", "query"] + ) + """Data source.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Port for Server. Required.""" + encrypt_connection: Optional[bool] = rest_field( + name="encryptConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to encrypt the connection.""" + authentication: Optional[Union[str, "_models.AuthenticationType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type to use for connection. Known values are: \"None\", + \"WindowsAuthentication\", \"SqlAuthentication\", \"ActiveDirectoryIntegrated\", and + \"ActiveDirectoryPassword\".""" + additional_settings: Optional[str] = rest_field( + name="additionalSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional connection settings.""" + type: Literal["MySqlConnectionInfo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of connection info. Required. Default value is \"MySqlConnectionInfo\".""" + + @overload + def __init__( + self, + *, + server_name: str, + port: int, + user_name: Optional[str] = None, + password: Optional[str] = None, + data_source: Optional[str] = None, + encrypt_connection: Optional[bool] = None, + authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, + additional_settings: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "MySqlConnectionInfo" # type: ignore + + +class NameAvailabilityRequest(_Model): + """A resource type and proposed name. + + :ivar name: The proposed resource name. + :vartype name: str + :ivar type: The resource type chain (e.g. virtualMachines/extensions). + :vartype type: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The proposed resource name.""" + type: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource type chain (e.g. virtualMachines/extensions).""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NameAvailabilityResponse(_Model): + """Indicates whether a proposed resource name is available. + + :ivar name_available: If true, the name is valid and available. If false, 'reason' describes + why not. + :vartype name_available: bool + :ivar reason: The reason why the name is not available, if nameAvailable is false. Known values + are: "AlreadyExists" and "Invalid". + :vartype reason: str or ~azure.mgmt.datamigration.models.NameCheckFailureReason + :ivar message: The localized reason why the name is not available, if nameAvailable is false. + :vartype message: str + """ + + name_available: Optional[bool] = rest_field( + name="nameAvailable", visibility=["read", "create", "update", "delete", "query"] + ) + """If true, the name is valid and available. If false, 'reason' describes why not.""" + reason: Optional[Union[str, "_models.NameCheckFailureReason"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The reason why the name is not available, if nameAvailable is false. Known values are: + \"AlreadyExists\" and \"Invalid\".""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The localized reason why the name is not available, if nameAvailable is false.""" + + @overload + def __init__( + self, + *, + name_available: Optional[bool] = None, + reason: Optional[Union[str, "_models.NameCheckFailureReason"]] = None, + message: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class NodeMonitoringData(_Model): + """NodeMonitoringData. + + :ivar additional_properties: Unmatched properties from the message are deserialized in this + collection. + :vartype additional_properties: dict[str, any] + :ivar node_name: Name of the integration runtime node. + :vartype node_name: str + :ivar available_memory_in_mb: Available memory (MB) on the integration runtime node. + :vartype available_memory_in_mb: int + :ivar cpu_utilization: CPU percentage on the integration runtime node. + :vartype cpu_utilization: int + :ivar concurrent_jobs_limit: Maximum concurrent jobs on the integration runtime node. + :vartype concurrent_jobs_limit: int + :ivar concurrent_jobs_running: The number of jobs currently running on the integration runtime + node. + :vartype concurrent_jobs_running: int + :ivar max_concurrent_jobs: The maximum concurrent jobs in this integration runtime. + :vartype max_concurrent_jobs: int + :ivar sent_bytes: Sent bytes on the integration runtime node. + :vartype sent_bytes: float + :ivar received_bytes: Received bytes on the integration runtime node. + :vartype received_bytes: float + """ + + additional_properties: Optional[dict[str, Any]] = rest_field(name="additionalProperties", visibility=["read"]) + """Unmatched properties from the message are deserialized in this collection.""" + node_name: Optional[str] = rest_field(name="nodeName", visibility=["read"]) + """Name of the integration runtime node.""" + available_memory_in_mb: Optional[int] = rest_field(name="availableMemoryInMB", visibility=["read"]) + """Available memory (MB) on the integration runtime node.""" + cpu_utilization: Optional[int] = rest_field(name="cpuUtilization", visibility=["read"]) + """CPU percentage on the integration runtime node.""" + concurrent_jobs_limit: Optional[int] = rest_field(name="concurrentJobsLimit", visibility=["read"]) + """Maximum concurrent jobs on the integration runtime node.""" + concurrent_jobs_running: Optional[int] = rest_field(name="concurrentJobsRunning", visibility=["read"]) + """The number of jobs currently running on the integration runtime node.""" + max_concurrent_jobs: Optional[int] = rest_field(name="maxConcurrentJobs", visibility=["read"]) + """The maximum concurrent jobs in this integration runtime.""" + sent_bytes: Optional[float] = rest_field(name="sentBytes", visibility=["read"]) + """Sent bytes on the integration runtime node.""" + received_bytes: Optional[float] = rest_field(name="receivedBytes", visibility=["read"]) + """Received bytes on the integration runtime node.""" + + +class ODataError(_Model): + """Error information in OData format. + + :ivar code: The machine-readable description of the error, such as 'InvalidRequest' or + 'InternalServerError'. + :vartype code: str + :ivar message: The human-readable description of the error. + :vartype message: str + :ivar details: Inner errors that caused this error. + :vartype details: list[~azure.mgmt.datamigration.models.ODataError] + """ + + code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The machine-readable description of the error, such as 'InvalidRequest' or + 'InternalServerError'.""" + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The human-readable description of the error.""" + details: Optional[list["_models.ODataError"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Inner errors that caused this error.""" + + @overload + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + details: Optional[list["_models.ODataError"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OfflineConfiguration(_Model): + """Offline configuration. + + :ivar offline: Offline migration. + :vartype offline: bool + :ivar last_backup_name: Last backup name for offline migration. This is optional for migrations + from file share. If it is not provided, then the service will determine the last backup file + name based on latest backup files present in file share. + :vartype last_backup_name: str + """ + + offline: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Offline migration.""" + last_backup_name: Optional[str] = rest_field( + name="lastBackupName", visibility=["read", "create", "update", "delete", "query"] + ) + """Last backup name for offline migration. This is optional for migrations from file share. If it + is not provided, then the service will determine the last backup file name based on latest + backup files present in file share.""" + + @overload + def __init__( + self, + *, + offline: Optional[bool] = None, + last_backup_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationsDefinition(_Model): + """OperationsDefinition. + + :ivar name: + :vartype name: str + :ivar is_data_action: Indicates whether the operation is a data action. + :vartype is_data_action: bool + :ivar display: + :vartype display: ~azure.mgmt.datamigration.models.OperationsDisplayDefinition + :ivar origin: Known values are: "user" and "system". + :vartype origin: str or ~azure.mgmt.datamigration.models.OperationOrigin + :ivar properties: Dictionary of . + :vartype properties: dict[str, any] + """ + + name: Optional[str] = rest_field(visibility=["read"]) + is_data_action: Optional[bool] = rest_field( + name="isDataAction", visibility=["read", "create", "update", "delete", "query"] + ) + """Indicates whether the operation is a data action.""" + display: Optional["_models.OperationsDisplayDefinition"] = rest_field(visibility=["read"]) + origin: Optional[Union[str, "_models.OperationOrigin"]] = rest_field(visibility=["read"]) + """Known values are: \"user\" and \"system\".""" + properties: Optional[dict[str, Any]] = rest_field(visibility=["read"]) + """Dictionary of .""" + + @overload + def __init__( + self, + *, + is_data_action: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class OperationsDisplayDefinition(_Model): + """OperationsDisplayDefinition. + + :ivar provider: + :vartype provider: str + :ivar resource: + :vartype resource: str + :ivar operation: + :vartype operation: str + :ivar description: + :vartype description: str + """ + + provider: Optional[str] = rest_field(visibility=["read"]) + resource: Optional[str] = rest_field(visibility=["read"]) + operation: Optional[str] = rest_field(visibility=["read"]) + description: Optional[str] = rest_field(visibility=["read"]) + + +class OracleConnectionInfo(ConnectionInfo, discriminator="OracleConnectionInfo"): + """Information for connecting to Oracle server. + + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + :ivar data_source: EZConnect or TNSName connection string. Required. + :vartype data_source: str + :ivar server_name: name of the server. + :vartype server_name: str + :ivar server_version: server version. + :vartype server_version: str + :ivar port: port for server. + :vartype port: int + :ivar authentication: Authentication type to use for connection. Known values are: "None", + "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and + "ActiveDirectoryPassword". + :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType + :ivar type: Type of connection info. Required. Default value is "OracleConnectionInfo". + :vartype type: str + """ + + data_source: str = rest_field(name="dataSource", visibility=["read", "create", "update", "delete", "query"]) + """EZConnect or TNSName connection string. Required.""" + server_name: Optional[str] = rest_field( + name="serverName", visibility=["read", "create", "update", "delete", "query"] + ) + """name of the server.""" + server_version: Optional[str] = rest_field( + name="serverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server version.""" + port: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """port for server.""" + authentication: Optional[Union[str, "_models.AuthenticationType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type to use for connection. Known values are: \"None\", + \"WindowsAuthentication\", \"SqlAuthentication\", \"ActiveDirectoryIntegrated\", and + \"ActiveDirectoryPassword\".""" + type: Literal["OracleConnectionInfo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of connection info. Required. Default value is \"OracleConnectionInfo\".""" + + @overload + def __init__( + self, + *, + data_source: str, + user_name: Optional[str] = None, + password: Optional[str] = None, + server_name: Optional[str] = None, + server_version: Optional[str] = None, + port: Optional[int] = None, + authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "OracleConnectionInfo" # type: ignore + + +class OracleOCIDriverInfo(_Model): + """Information about an Oracle OCI driver. + + :ivar driver_name: The name of the driver package. + :vartype driver_name: str + :ivar driver_size: The size in bytes of the driver package. + :vartype driver_size: str + :ivar archive_checksum: The MD5 Base64 encoded checksum for the driver package. + :vartype archive_checksum: str + :ivar oracle_checksum: The checksum for the driver package provided by Oracle. + :vartype oracle_checksum: str + :ivar assembly_version: Version listed in the OCI assembly 'oci.dll'. + :vartype assembly_version: str + :ivar supported_oracle_versions: List of Oracle database versions supported by this driver. + Only major minor of the version is listed. + :vartype supported_oracle_versions: list[str] + """ + + driver_name: Optional[str] = rest_field(name="driverName", visibility=["read"]) + """The name of the driver package.""" + driver_size: Optional[str] = rest_field(name="driverSize", visibility=["read"]) + """The size in bytes of the driver package.""" + archive_checksum: Optional[str] = rest_field(name="archiveChecksum", visibility=["read"]) + """The MD5 Base64 encoded checksum for the driver package.""" + oracle_checksum: Optional[str] = rest_field(name="oracleChecksum", visibility=["read"]) + """The checksum for the driver package provided by Oracle.""" + assembly_version: Optional[str] = rest_field(name="assemblyVersion", visibility=["read"]) + """Version listed in the OCI assembly 'oci.dll'.""" + supported_oracle_versions: Optional[list[str]] = rest_field(name="supportedOracleVersions", visibility=["read"]) + """List of Oracle database versions supported by this driver. Only major minor of the version is + listed.""" + + +class OrphanedUserInfo(_Model): + """Information of orphaned users on the SQL server database. + + :ivar name: Name of the orphaned user. + :vartype name: str + :ivar database_name: Parent database of the user. + :vartype database_name: str + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Name of the orphaned user.""" + database_name: Optional[str] = rest_field( + name="databaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Parent database of the user.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + database_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class PostgreSqlConnectionInfo(ConnectionInfo, discriminator="PostgreSqlConnectionInfo"): + """Information for connecting to PostgreSQL server. + + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + :ivar server_name: Name of the server. Required. + :vartype server_name: str + :ivar data_source: Data source. + :vartype data_source: str + :ivar server_version: server version. + :vartype server_version: str + :ivar database_name: Name of the database. + :vartype database_name: str + :ivar port: Port for Server. Required. + :vartype port: int + :ivar encrypt_connection: Whether to encrypt the connection. + :vartype encrypt_connection: bool + :ivar trust_server_certificate: Whether to trust the server certificate. + :vartype trust_server_certificate: bool + :ivar additional_settings: Additional connection settings. + :vartype additional_settings: str + :ivar server_brand_version: server brand version. + :vartype server_brand_version: str + :ivar authentication: Authentication type to use for connection. Known values are: "None", + "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and + "ActiveDirectoryPassword". + :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType + :ivar type: Type of connection info. Required. Default value is "PostgreSqlConnectionInfo". + :vartype type: str + """ + + server_name: str = rest_field(name="serverName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the server. Required.""" + data_source: Optional[str] = rest_field( + name="dataSource", visibility=["read", "create", "update", "delete", "query"] + ) + """Data source.""" + server_version: Optional[str] = rest_field( + name="serverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server version.""" + database_name: Optional[str] = rest_field( + name="databaseName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the database.""" + port: int = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Port for Server. Required.""" + encrypt_connection: Optional[bool] = rest_field( + name="encryptConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to encrypt the connection.""" + trust_server_certificate: Optional[bool] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to trust the server certificate.""" + additional_settings: Optional[str] = rest_field( + name="additionalSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional connection settings.""" + server_brand_version: Optional[str] = rest_field( + name="serverBrandVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server brand version.""" + authentication: Optional[Union[str, "_models.AuthenticationType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type to use for connection. Known values are: \"None\", + \"WindowsAuthentication\", \"SqlAuthentication\", \"ActiveDirectoryIntegrated\", and + \"ActiveDirectoryPassword\".""" + type: Literal["PostgreSqlConnectionInfo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of connection info. Required. Default value is \"PostgreSqlConnectionInfo\".""" + + @overload + def __init__( + self, + *, + server_name: str, + port: int, + user_name: Optional[str] = None, + password: Optional[str] = None, + data_source: Optional[str] = None, + server_version: Optional[str] = None, + database_name: Optional[str] = None, + encrypt_connection: Optional[bool] = None, + trust_server_certificate: Optional[bool] = None, + additional_settings: Optional[str] = None, + server_brand_version: Optional[str] = None, + authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "PostgreSqlConnectionInfo" # type: ignore + + +class Project(Resource): + """A project resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Project properties. + :vartype properties: ~azure.mgmt.datamigration.models.ProjectProperties + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + :ivar etag: HTTP strong entity tag value. This is ignored if submitted. + :vartype etag: str + """ + + properties: Optional["_models.ProjectProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Project properties.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: Optional[str] = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives.""" + etag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """HTTP strong entity tag value. This is ignored if submitted.""" + + __flattened_items = [ + "source_platform", + "azure_authentication_info", + "target_platform", + "creation_time", + "source_connection_info", + "target_connection_info", + "databases_info", + "provisioning_state", + ] + + @overload + def __init__( + self, + *, + properties: Optional["_models.ProjectProperties"] = None, + tags: Optional[dict[str, str]] = None, + location: Optional[str] = None, + etag: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class ProjectFile(ProxyResource): + """A file resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Custom file properties. + :vartype properties: ~azure.mgmt.datamigration.models.ProjectFileProperties + :ivar etag: HTTP strong entity tag value. This is ignored if submitted. + :vartype etag: str + """ + + properties: Optional["_models.ProjectFileProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Custom file properties.""" + etag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """HTTP strong entity tag value. This is ignored if submitted.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ProjectFileProperties"] = None, + etag: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ProjectFileProperties(_Model): + """Base class for file properties. + + :ivar extension: Optional File extension. If submitted it should not have a leading period and + must match the extension from filePath. + :vartype extension: str + :ivar file_path: Relative path of this file resource. This property can be set when creating or + updating the file resource. + :vartype file_path: str + :ivar last_modified: Modification DateTime. + :vartype last_modified: ~datetime.datetime + :ivar media_type: File content type. This property can be modified to reflect the file content + type. + :vartype media_type: str + :ivar size: File size. + :vartype size: int + """ + + extension: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Optional File extension. If submitted it should not have a leading period and must match the + extension from filePath.""" + file_path: Optional[str] = rest_field(name="filePath", visibility=["read", "create", "update", "delete", "query"]) + """Relative path of this file resource. This property can be set when creating or updating the + file resource.""" + last_modified: Optional[datetime.datetime] = rest_field(name="lastModified", visibility=["read"], format="rfc3339") + """Modification DateTime.""" + media_type: Optional[str] = rest_field(name="mediaType", visibility=["read", "create", "update", "delete", "query"]) + """File content type. This property can be modified to reflect the file content type.""" + size: Optional[int] = rest_field(visibility=["read"]) + """File size.""" + + @overload + def __init__( + self, + *, + extension: Optional[str] = None, + file_path: Optional[str] = None, + media_type: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ProjectProperties(_Model): + """Project-specific properties. + + :ivar source_platform: Source platform for the project. Required. Known values are: "SQL", + "MySQL", "PostgreSql", "MongoDb", and "Unknown". + :vartype source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform + :ivar azure_authentication_info: Field that defines the Azure active directory application + info, used to connect to the target Azure resource. + :vartype azure_authentication_info: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + :ivar target_platform: Target platform for the project. Required. Known values are: "SQLDB", + "SQLMI", "AzureDbForMySql", "AzureDbForPostgreSql", "MongoDb", and "Unknown". + :vartype target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform + :ivar creation_time: UTC Date and time when project was created. + :vartype creation_time: ~datetime.datetime + :ivar source_connection_info: Information for connecting to source. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.ConnectionInfo + :ivar target_connection_info: Information for connecting to target. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.ConnectionInfo + :ivar databases_info: List of DatabaseInfo. + :vartype databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] + :ivar provisioning_state: The project's provisioning state. Known values are: "Deleting" and + "Succeeded". + :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProjectProvisioningState + """ + + source_platform: Union[str, "_models.ProjectSourcePlatform"] = rest_field( + name="sourcePlatform", visibility=["read", "create", "update", "delete", "query"] + ) + """Source platform for the project. Required. Known values are: \"SQL\", \"MySQL\", + \"PostgreSql\", \"MongoDb\", and \"Unknown\".""" + azure_authentication_info: Optional["_models.AzureActiveDirectoryApp"] = rest_field( + name="azureAuthenticationInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Field that defines the Azure active directory application info, used to connect to the target + Azure resource.""" + target_platform: Union[str, "_models.ProjectTargetPlatform"] = rest_field( + name="targetPlatform", visibility=["read", "create", "update", "delete", "query"] + ) + """Target platform for the project. Required. Known values are: \"SQLDB\", \"SQLMI\", + \"AzureDbForMySql\", \"AzureDbForPostgreSql\", \"MongoDb\", and \"Unknown\".""" + creation_time: Optional[datetime.datetime] = rest_field(name="creationTime", visibility=["read"], format="rfc3339") + """UTC Date and time when project was created.""" + source_connection_info: Optional["_models.ConnectionInfo"] = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to source.""" + target_connection_info: Optional["_models.ConnectionInfo"] = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to target.""" + databases_info: Optional[list["_models.DatabaseInfo"]] = rest_field( + name="databasesInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """List of DatabaseInfo.""" + provisioning_state: Optional[Union[str, "_models.ProjectProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The project's provisioning state. Known values are: \"Deleting\" and \"Succeeded\".""" + + @overload + def __init__( + self, + *, + source_platform: Union[str, "_models.ProjectSourcePlatform"], + target_platform: Union[str, "_models.ProjectTargetPlatform"], + azure_authentication_info: Optional["_models.AzureActiveDirectoryApp"] = None, + source_connection_info: Optional["_models.ConnectionInfo"] = None, + target_connection_info: Optional["_models.ConnectionInfo"] = None, + databases_info: Optional[list["_models.DatabaseInfo"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ProjectTask(ProxyResource): + """A task resource. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: Custom task properties. + :vartype properties: ~azure.mgmt.datamigration.models.ProjectTaskProperties + :ivar etag: HTTP strong entity tag value. This is ignored if submitted. + :vartype etag: str + """ + + properties: Optional["_models.ProjectTaskProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Custom task properties.""" + etag: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """HTTP strong entity tag value. This is ignored if submitted.""" + + @overload + def __init__( + self, + *, + properties: Optional["_models.ProjectTaskProperties"] = None, + etag: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QueryAnalysisValidationResult(_Model): + """Results for query analysis comparison between the source and target. + + :ivar query_results: List of queries executed and it's execution results in source and target. + :vartype query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult + :ivar validation_errors: Errors that are part of the execution. + :vartype validation_errors: ~azure.mgmt.datamigration.models.ValidationError + """ + + query_results: Optional["_models.QueryExecutionResult"] = rest_field( + name="queryResults", visibility=["read", "create", "update", "delete", "query"] + ) + """List of queries executed and it's execution results in source and target.""" + validation_errors: Optional["_models.ValidationError"] = rest_field( + name="validationErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """Errors that are part of the execution.""" + + @overload + def __init__( + self, + *, + query_results: Optional["_models.QueryExecutionResult"] = None, + validation_errors: Optional["_models.ValidationError"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QueryExecutionResult(_Model): + """Describes query analysis results for execution in source and target. + + :ivar query_text: Query text retrieved from the source server. + :vartype query_text: str + :ivar statements_in_batch: Total no. of statements in the batch. + :vartype statements_in_batch: int + :ivar source_result: Query analysis result from the source. + :vartype source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics + :ivar target_result: Query analysis result from the target. + :vartype target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics + """ + + query_text: Optional[str] = rest_field(name="queryText", visibility=["read", "create", "update", "delete", "query"]) + """Query text retrieved from the source server.""" + statements_in_batch: Optional[int] = rest_field( + name="statementsInBatch", visibility=["read", "create", "update", "delete", "query"] + ) + """Total no. of statements in the batch.""" + source_result: Optional["_models.ExecutionStatistics"] = rest_field( + name="sourceResult", visibility=["read", "create", "update", "delete", "query"] + ) + """Query analysis result from the source.""" + target_result: Optional["_models.ExecutionStatistics"] = rest_field( + name="targetResult", visibility=["read", "create", "update", "delete", "query"] + ) + """Query analysis result from the target.""" + + @overload + def __init__( + self, + *, + query_text: Optional[str] = None, + statements_in_batch: Optional[int] = None, + source_result: Optional["_models.ExecutionStatistics"] = None, + target_result: Optional["_models.ExecutionStatistics"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Quota(_Model): + """Describes a quota for or usage details about a resource. + + :ivar current_value: The current value of the quota. If null or missing, the current value + cannot be determined in the context of the request. + :vartype current_value: float + :ivar id: The resource ID of the quota object. + :vartype id: str + :ivar limit: The maximum value of the quota. If null or missing, the quota has no maximum, in + which case it merely tracks usage. + :vartype limit: float + :ivar name: The name of the quota. + :vartype name: ~azure.mgmt.datamigration.models.QuotaName + :ivar unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc. + :vartype unit: str + """ + + current_value: Optional[float] = rest_field( + name="currentValue", visibility=["read", "create", "update", "delete", "query"] + ) + """The current value of the quota. If null or missing, the current value cannot be determined in + the context of the request.""" + id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The resource ID of the quota object.""" + limit: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The maximum value of the quota. If null or missing, the quota has no maximum, in which case it + merely tracks usage.""" + name: Optional["_models.QuotaName"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The name of the quota.""" + unit: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The unit for the quota, such as Count, Bytes, BytesPerSecond, etc.""" + + @overload + def __init__( + self, + *, + current_value: Optional[float] = None, + id: Optional[str] = None, # pylint: disable=redefined-builtin + limit: Optional[float] = None, + name: Optional["_models.QuotaName"] = None, + unit: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class QuotaName(_Model): + """The name of the quota. + + :ivar localized_value: The localized name of the quota. + :vartype localized_value: str + :ivar value: The unlocalized name (or ID) of the quota. + :vartype value: str + """ + + localized_value: Optional[str] = rest_field( + name="localizedValue", visibility=["read", "create", "update", "delete", "query"] + ) + """The localized name of the quota.""" + value: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The unlocalized name (or ID) of the quota.""" + + @overload + def __init__( + self, + *, + localized_value: Optional[str] = None, + value: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class RegenAuthKeys(_Model): + """An authentication key to regenerate. + + :ivar key_name: The name of authentication key to generate. + :vartype key_name: str + :ivar auth_key1: The first authentication key. + :vartype auth_key1: str + :ivar auth_key2: The second authentication key. + :vartype auth_key2: str + """ + + key_name: Optional[str] = rest_field(name="keyName", visibility=["read", "create"]) + """The name of authentication key to generate.""" + auth_key1: Optional[str] = rest_field(name="authKey1", visibility=["read", "create"]) + """The first authentication key.""" + auth_key2: Optional[str] = rest_field(name="authKey2", visibility=["read", "create"]) + """The second authentication key.""" + + @overload + def __init__( + self, + *, + key_name: Optional[str] = None, + auth_key1: Optional[str] = None, + auth_key2: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ReportableException(_Model): + """Exception object for all custom exceptions. + + :ivar message: Error message. + :vartype message: str + :ivar actionable_message: Actionable steps for this exception. + :vartype actionable_message: str + :ivar file_path: The path to the file where exception occurred. + :vartype file_path: str + :ivar line_number: The line number where exception occurred. + :vartype line_number: str + :ivar h_result: Coded numerical value that is assigned to a specific exception. + :vartype h_result: int + :ivar stack_trace: Stack trace. + :vartype stack_trace: str + """ + + message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error message.""" + actionable_message: Optional[str] = rest_field( + name="actionableMessage", visibility=["read", "create", "update", "delete", "query"] + ) + """Actionable steps for this exception.""" + file_path: Optional[str] = rest_field(name="filePath", visibility=["read", "create", "update", "delete", "query"]) + """The path to the file where exception occurred.""" + line_number: Optional[str] = rest_field( + name="lineNumber", visibility=["read", "create", "update", "delete", "query"] + ) + """The line number where exception occurred.""" + h_result: Optional[int] = rest_field(name="hResult", visibility=["read", "create", "update", "delete", "query"]) + """Coded numerical value that is assigned to a specific exception.""" + stack_trace: Optional[str] = rest_field( + name="stackTrace", visibility=["read", "create", "update", "delete", "query"] + ) + """Stack trace.""" + + @overload + def __init__( + self, + *, + message: Optional[str] = None, + actionable_message: Optional[str] = None, + file_path: Optional[str] = None, + line_number: Optional[str] = None, + h_result: Optional[int] = None, + stack_trace: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ResourceSku(_Model): + """Describes an available DMS (classic) SKU. + + :ivar resource_type: The type of resource the SKU applies to. + :vartype resource_type: str + :ivar name: The name of SKU. + :vartype name: str + :ivar tier: Specifies the tier of DMS (classic) in a scale set. + :vartype tier: str + :ivar size: The Size of the SKU. + :vartype size: str + :ivar family: The Family of this particular SKU. + :vartype family: str + :ivar kind: The Kind of resources that are supported in this SKU. + :vartype kind: str + :ivar capacity: Not used. + :vartype capacity: ~azure.mgmt.datamigration.models.ResourceSkuCapacity + :ivar locations: The set of locations that the SKU is available. + :vartype locations: list[str] + :ivar api_versions: The api versions that support this SKU. + :vartype api_versions: list[str] + :ivar costs: Metadata for retrieving price info. + :vartype costs: list[~azure.mgmt.datamigration.models.ResourceSkuCosts] + :ivar capabilities: A name value pair to describe the capability. + :vartype capabilities: list[~azure.mgmt.datamigration.models.ResourceSkuCapabilities] + :ivar restrictions: The restrictions because of which SKU cannot be used. This is empty if + there are no restrictions. + :vartype restrictions: list[~azure.mgmt.datamigration.models.ResourceSkuRestrictions] + """ + + resource_type: Optional[str] = rest_field(name="resourceType", visibility=["read"]) + """The type of resource the SKU applies to.""" + name: Optional[str] = rest_field(visibility=["read"]) + """The name of SKU.""" + tier: Optional[str] = rest_field(visibility=["read"]) + """Specifies the tier of DMS (classic) in a scale set.""" + size: Optional[str] = rest_field(visibility=["read"]) + """The Size of the SKU.""" + family: Optional[str] = rest_field(visibility=["read"]) + """The Family of this particular SKU.""" + kind: Optional[str] = rest_field(visibility=["read"]) + """The Kind of resources that are supported in this SKU.""" + capacity: Optional["_models.ResourceSkuCapacity"] = rest_field(visibility=["read"]) + """Not used.""" + locations: Optional[list[str]] = rest_field(visibility=["read"]) + """The set of locations that the SKU is available.""" + api_versions: Optional[list[str]] = rest_field(name="apiVersions", visibility=["read"]) + """The api versions that support this SKU.""" + costs: Optional[list["_models.ResourceSkuCosts"]] = rest_field(visibility=["read"]) + """Metadata for retrieving price info.""" + capabilities: Optional[list["_models.ResourceSkuCapabilities"]] = rest_field(visibility=["read"]) + """A name value pair to describe the capability.""" + restrictions: Optional[list["_models.ResourceSkuRestrictions"]] = rest_field(visibility=["read"]) + """The restrictions because of which SKU cannot be used. This is empty if there are no + restrictions.""" + + +class ResourceSkuCapabilities(_Model): + """Describes The SKU capabilities object. + + :ivar name: An invariant to describe the feature. + :vartype name: str + :ivar value: An invariant if the feature is measured by quantity. + :vartype value: str + """ + + name: Optional[str] = rest_field(visibility=["read"]) + """An invariant to describe the feature.""" + value: Optional[str] = rest_field(visibility=["read"]) + """An invariant if the feature is measured by quantity.""" + + +class ResourceSkuCapacity(_Model): + """Describes scaling information of a SKU. + + :ivar minimum: The minimum capacity. + :vartype minimum: int + :ivar maximum: The maximum capacity. + :vartype maximum: int + :ivar default: The default capacity. + :vartype default: int + :ivar scale_type: The scale type applicable to the SKU. Known values are: "Automatic", + "Manual", and "None". + :vartype scale_type: str or ~azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType + """ + + minimum: Optional[int] = rest_field(visibility=["read"]) + """The minimum capacity.""" + maximum: Optional[int] = rest_field(visibility=["read"]) + """The maximum capacity.""" + default: Optional[int] = rest_field(visibility=["read"]) + """The default capacity.""" + scale_type: Optional[Union[str, "_models.ResourceSkuCapacityScaleType"]] = rest_field( + name="scaleType", visibility=["read"] + ) + """The scale type applicable to the SKU. Known values are: \"Automatic\", \"Manual\", and + \"None\".""" + + +class ResourceSkuCosts(_Model): + """Describes metadata for retrieving price info. + + :ivar meter_id: Used for querying price from commerce. + :vartype meter_id: str + :ivar quantity: The multiplier is needed to extend the base metered cost. + :vartype quantity: int + :ivar extended_unit: An invariant to show the extended unit. + :vartype extended_unit: str + """ + + meter_id: Optional[str] = rest_field(name="meterID", visibility=["read"]) + """Used for querying price from commerce.""" + quantity: Optional[int] = rest_field(visibility=["read"]) + """The multiplier is needed to extend the base metered cost.""" + extended_unit: Optional[str] = rest_field(name="extendedUnit", visibility=["read"]) + """An invariant to show the extended unit.""" + + +class ResourceSkuRestrictions(_Model): + """Describes scaling information of a SKU. + + :ivar type: The type of restrictions. "location" + :vartype type: str or ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsType + :ivar values_property: The value of restrictions. If the restriction type is set to location. + This would be different locations where the SKU is restricted. + :vartype values_property: list[str] + :ivar reason_code: The reason code for restriction. Known values are: "QuotaId" and + "NotAvailableForSubscription". + :vartype reason_code: str or ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode + """ + + type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = rest_field(visibility=["read"]) + """The type of restrictions. \"location\"""" + values_property: Optional[list[str]] = rest_field(name="values", visibility=["read"], original_tsp_name="values") + """The value of restrictions. If the restriction type is set to location. This would be different + locations where the SKU is restricted.""" + reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = rest_field( + name="reasonCode", visibility=["read"] + ) + """The reason code for restriction. Known values are: \"QuotaId\" and + \"NotAvailableForSubscription\".""" + + +class SchemaComparisonValidationResult(_Model): + """Results for schema comparison between the source and target. + + :ivar schema_differences: List of schema differences between the source and target databases. + :vartype schema_differences: + ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType + :ivar validation_errors: List of errors that happened while performing schema compare + validation. + :vartype validation_errors: ~azure.mgmt.datamigration.models.ValidationError + :ivar source_database_object_count: Count of source database objects. + :vartype source_database_object_count: dict[str, int] + :ivar target_database_object_count: Count of target database objects. + :vartype target_database_object_count: dict[str, int] + """ + + schema_differences: Optional["_models.SchemaComparisonValidationResultType"] = rest_field( + name="schemaDifferences", visibility=["read", "create", "update", "delete", "query"] + ) + """List of schema differences between the source and target databases.""" + validation_errors: Optional["_models.ValidationError"] = rest_field( + name="validationErrors", visibility=["read", "create", "update", "delete", "query"] + ) + """List of errors that happened while performing schema compare validation.""" + source_database_object_count: Optional[dict[str, int]] = rest_field( + name="sourceDatabaseObjectCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Count of source database objects.""" + target_database_object_count: Optional[dict[str, int]] = rest_field( + name="targetDatabaseObjectCount", visibility=["read", "create", "update", "delete", "query"] + ) + """Count of target database objects.""" + + @overload + def __init__( + self, + *, + schema_differences: Optional["_models.SchemaComparisonValidationResultType"] = None, + validation_errors: Optional["_models.ValidationError"] = None, + source_database_object_count: Optional[dict[str, int]] = None, + target_database_object_count: Optional[dict[str, int]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SchemaComparisonValidationResultType(_Model): + """Description about the errors happen while performing migration validation. + + :ivar object_name: Name of the object that has the difference. + :vartype object_name: str + :ivar object_type: Type of the object that has the difference. e.g + (Table/View/StoredProcedure). Known values are: "StoredProcedures", "Table", "User", "View", + and "Function". + :vartype object_type: str or ~azure.mgmt.datamigration.models.ObjectType + :ivar update_action: Update action type with respect to target. Known values are: + "DeletedOnTarget", "ChangedOnTarget", and "AddedOnTarget". + :vartype update_action: str or ~azure.mgmt.datamigration.models.UpdateActionType + """ + + object_name: Optional[str] = rest_field( + name="objectName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of the object that has the difference.""" + object_type: Optional[Union[str, "_models.ObjectType"]] = rest_field( + name="objectType", visibility=["read", "create", "update", "delete", "query"] + ) + """Type of the object that has the difference. e.g (Table/View/StoredProcedure). Known values are: + \"StoredProcedures\", \"Table\", \"User\", \"View\", and \"Function\".""" + update_action: Optional[Union[str, "_models.UpdateActionType"]] = rest_field( + name="updateAction", visibility=["read", "create", "update", "delete", "query"] + ) + """Update action type with respect to target. Known values are: \"DeletedOnTarget\", + \"ChangedOnTarget\", and \"AddedOnTarget\".""" + + @overload + def __init__( + self, + *, + object_name: Optional[str] = None, + object_type: Optional[Union[str, "_models.ObjectType"]] = None, + update_action: Optional[Union[str, "_models.UpdateActionType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SchemaMigrationSetting(_Model): + """Settings for migrating schema from source to target. + + :ivar schema_option: Option on how to migrate the schema. Known values are: "None", + "ExtractFromSource", and "UseStorageFile". + :vartype schema_option: str or ~azure.mgmt.datamigration.models.SchemaMigrationOption + :ivar file_id: Resource Identifier of a file resource containing the uploaded schema file. + :vartype file_id: str + :ivar file_name: Name of the file resource containing the uploaded schema file. + :vartype file_name: str + """ + + schema_option: Optional[Union[str, "_models.SchemaMigrationOption"]] = rest_field( + name="schemaOption", visibility=["read", "create", "update", "delete", "query"] + ) + """Option on how to migrate the schema. Known values are: \"None\", \"ExtractFromSource\", and + \"UseStorageFile\".""" + file_id: Optional[str] = rest_field(name="fileId", visibility=["read", "create", "update", "delete", "query"]) + """Resource Identifier of a file resource containing the uploaded schema file.""" + file_name: Optional[str] = rest_field(name="fileName", visibility=["read", "create", "update", "delete", "query"]) + """Name of the file resource containing the uploaded schema file.""" + + @overload + def __init__( + self, + *, + schema_option: Optional[Union[str, "_models.SchemaMigrationOption"]] = None, + file_id: Optional[str] = None, + file_name: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SelectedCertificateInput(_Model): + """Info for certificate to be exported for TDE enabled databases. + + :ivar certificate_name: Name of certificate to be exported. Required. + :vartype certificate_name: str + :ivar password: Password to use for encrypting the exported certificate. Required. + :vartype password: str + """ + + certificate_name: str = rest_field( + name="certificateName", visibility=["read", "create", "update", "delete", "query"] + ) + """Name of certificate to be exported. Required.""" + password: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to use for encrypting the exported certificate. Required.""" + + @overload + def __init__( + self, + *, + certificate_name: str, + password: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ServerProperties(_Model): + """Server properties for MySQL type source. + + :ivar server_platform: Name of the server platform. + :vartype server_platform: str + :ivar server_name: Name of the server. + :vartype server_name: str + :ivar server_version: Version of the database server. + :vartype server_version: str + :ivar server_edition: Edition of the database server. + :vartype server_edition: str + :ivar server_operating_system_version: Version of the operating system. + :vartype server_operating_system_version: str + :ivar server_database_count: Number of databases in the server. + :vartype server_database_count: int + """ + + server_platform: Optional[str] = rest_field(name="serverPlatform", visibility=["read"]) + """Name of the server platform.""" + server_name: Optional[str] = rest_field(name="serverName", visibility=["read"]) + """Name of the server.""" + server_version: Optional[str] = rest_field(name="serverVersion", visibility=["read"]) + """Version of the database server.""" + server_edition: Optional[str] = rest_field(name="serverEdition", visibility=["read"]) + """Edition of the database server.""" + server_operating_system_version: Optional[str] = rest_field( + name="serverOperatingSystemVersion", visibility=["read"] + ) + """Version of the operating system.""" + server_database_count: Optional[int] = rest_field(name="serverDatabaseCount", visibility=["read"]) + """Number of databases in the server.""" + + +class ServiceSku(_Model): + """An Azure SKU instance. + + :ivar name: The unique name of the SKU, such as 'P3'. + :vartype name: str + :ivar tier: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'. + :vartype tier: str + :ivar family: The SKU family, used when the service has multiple performance classes within a + tier, such as 'A', 'D', etc. for virtual machines. + :vartype family: str + :ivar size: The size of the SKU, used when the name alone does not denote a service size or + when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines. + :vartype size: str + :ivar capacity: The capacity of the SKU, if it supports scaling. + :vartype capacity: int + """ + + name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The unique name of the SKU, such as 'P3'.""" + tier: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'.""" + family: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The SKU family, used when the service has multiple performance classes within a tier, such as + 'A', 'D', etc. for virtual machines.""" + size: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The size of the SKU, used when the name alone does not denote a service size or when a SKU has + multiple performance classes within a family, e.g. 'A1' for virtual machines.""" + capacity: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The capacity of the SKU, if it supports scaling.""" + + @overload + def __init__( + self, + *, + name: Optional[str] = None, + tier: Optional[str] = None, + family: Optional[str] = None, + size: Optional[str] = None, + capacity: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SourceLocation(_Model): + """Source Location details of backups. + + :ivar file_share: Source File share. + :vartype file_share: ~azure.mgmt.datamigration.models.SqlFileShare + :ivar azure_blob: Source Azure Blob. + :vartype azure_blob: ~azure.mgmt.datamigration.models.AzureBlob + :ivar file_storage_type: Backup storage Type. + :vartype file_storage_type: str + """ + + file_share: Optional["_models.SqlFileShare"] = rest_field( + name="fileShare", visibility=["read", "create", "update", "delete", "query"] + ) + """Source File share.""" + azure_blob: Optional["_models.AzureBlob"] = rest_field( + name="azureBlob", visibility=["read", "create", "update", "delete", "query"] + ) + """Source Azure Blob.""" + file_storage_type: Optional[str] = rest_field(name="fileStorageType", visibility=["read"]) + """Backup storage Type.""" + + @overload + def __init__( + self, + *, + file_share: Optional["_models.SqlFileShare"] = None, + azure_blob: Optional["_models.AzureBlob"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlBackupFileInfo(_Model): + """Information of backup file. + + :ivar file_name: File name. + :vartype file_name: str + :ivar status: Status of the file. (Initial, Uploading, Uploaded, Restoring, Restored or + Skipped). + :vartype status: str + :ivar total_size: File size in bytes. + :vartype total_size: int + :ivar data_read: Bytes read. + :vartype data_read: int + :ivar data_written: Bytes written. + :vartype data_written: int + :ivar copy_throughput: Copy throughput in KBps. + :vartype copy_throughput: float + :ivar copy_duration: Copy Duration in seconds. + :vartype copy_duration: int + :ivar family_sequence_number: Media family sequence number. + :vartype family_sequence_number: int + """ + + file_name: Optional[str] = rest_field(name="fileName", visibility=["read"]) + """File name.""" + status: Optional[str] = rest_field(visibility=["read"]) + """Status of the file. (Initial, Uploading, Uploaded, Restoring, Restored or Skipped).""" + total_size: Optional[int] = rest_field(name="totalSize", visibility=["read"]) + """File size in bytes.""" + data_read: Optional[int] = rest_field(name="dataRead", visibility=["read"]) + """Bytes read.""" + data_written: Optional[int] = rest_field(name="dataWritten", visibility=["read"]) + """Bytes written.""" + copy_throughput: Optional[float] = rest_field(name="copyThroughput", visibility=["read"]) + """Copy throughput in KBps.""" + copy_duration: Optional[int] = rest_field(name="copyDuration", visibility=["read"]) + """Copy Duration in seconds.""" + family_sequence_number: Optional[int] = rest_field(name="familySequenceNumber", visibility=["read"]) + """Media family sequence number.""" + + +class SqlBackupSetInfo(_Model): + """Information of backup set. + + :ivar backup_set_id: Backup set id. + :vartype backup_set_id: str + :ivar first_lsn: First LSN of the backup set. + :vartype first_lsn: str + :ivar last_lsn: Last LSN of the backup set. + :vartype last_lsn: str + :ivar backup_type: Backup type. + :vartype backup_type: str + :ivar list_of_backup_files: List of files in the backup set. + :vartype list_of_backup_files: list[~azure.mgmt.datamigration.models.SqlBackupFileInfo] + :ivar backup_start_date: Backup start date. + :vartype backup_start_date: ~datetime.datetime + :ivar backup_finish_date: Backup end time. + :vartype backup_finish_date: ~datetime.datetime + :ivar is_backup_restored: Whether this backup set has been restored or not. + :vartype is_backup_restored: bool + :ivar has_backup_checksums: Has Backup Checksums. + :vartype has_backup_checksums: bool + :ivar family_count: Media family count. + :vartype family_count: int + :ivar ignore_reasons: The reasons why the backup set is ignored. + :vartype ignore_reasons: list[str] + """ + + backup_set_id: Optional[str] = rest_field(name="backupSetId", visibility=["read"]) + """Backup set id.""" + first_lsn: Optional[str] = rest_field(name="firstLSN", visibility=["read"]) + """First LSN of the backup set.""" + last_lsn: Optional[str] = rest_field(name="lastLSN", visibility=["read"]) + """Last LSN of the backup set.""" + backup_type: Optional[str] = rest_field(name="backupType", visibility=["read"]) + """Backup type.""" + list_of_backup_files: Optional[list["_models.SqlBackupFileInfo"]] = rest_field( + name="listOfBackupFiles", visibility=["read"] + ) + """List of files in the backup set.""" + backup_start_date: Optional[datetime.datetime] = rest_field( + name="backupStartDate", visibility=["read"], format="rfc3339" + ) + """Backup start date.""" + backup_finish_date: Optional[datetime.datetime] = rest_field( + name="backupFinishDate", visibility=["read"], format="rfc3339" + ) + """Backup end time.""" + is_backup_restored: Optional[bool] = rest_field(name="isBackupRestored", visibility=["read"]) + """Whether this backup set has been restored or not.""" + has_backup_checksums: Optional[bool] = rest_field(name="hasBackupChecksums", visibility=["read"]) + """Has Backup Checksums.""" + family_count: Optional[int] = rest_field(name="familyCount", visibility=["read"]) + """Media family count.""" + ignore_reasons: Optional[list[str]] = rest_field(name="ignoreReasons", visibility=["read"]) + """The reasons why the backup set is ignored.""" + + +class SqlConnectionInfo(ConnectionInfo, discriminator="SqlConnectionInfo"): + """Information for connecting to SQL database server. + + :ivar user_name: User name. + :vartype user_name: str + :ivar password: Password credential. + :vartype password: str + :ivar data_source: Data source in the format + Protocol:MachineName\\SQLServerInstanceName,PortNumber. Required. + :vartype data_source: str + :ivar server_name: name of the server. + :vartype server_name: str + :ivar port: Port for Server. + :vartype port: int + :ivar server_version: server version. + :vartype server_version: str + :ivar server_brand_version: server brand version. + :vartype server_brand_version: str + :ivar resource_id: Represents the ID of an HTTP resource represented by an Azure resource + provider. + :vartype resource_id: str + :ivar authentication: Authentication type to use for connection. Known values are: "None", + "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and + "ActiveDirectoryPassword". + :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType + :ivar encrypt_connection: Whether to encrypt the connection. + :vartype encrypt_connection: bool + :ivar additional_settings: Additional connection settings. + :vartype additional_settings: str + :ivar trust_server_certificate: Whether to trust the server certificate. + :vartype trust_server_certificate: bool + :ivar platform: Server platform type for connection. "SqlOnPrem" + :vartype platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform + :ivar type: Type of connection info. Required. Default value is "SqlConnectionInfo". + :vartype type: str + """ + + data_source: str = rest_field(name="dataSource", visibility=["read", "create", "update", "delete", "query"]) + """Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber. Required.""" + server_name: Optional[str] = rest_field( + name="serverName", visibility=["read", "create", "update", "delete", "query"] + ) + """name of the server.""" + port: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Port for Server.""" + server_version: Optional[str] = rest_field( + name="serverVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server version.""" + server_brand_version: Optional[str] = rest_field( + name="serverBrandVersion", visibility=["read", "create", "update", "delete", "query"] + ) + """server brand version.""" + resource_id: Optional[str] = rest_field( + name="resourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Represents the ID of an HTTP resource represented by an Azure resource provider.""" + authentication: Optional[Union[str, "_models.AuthenticationType"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Authentication type to use for connection. Known values are: \"None\", + \"WindowsAuthentication\", \"SqlAuthentication\", \"ActiveDirectoryIntegrated\", and + \"ActiveDirectoryPassword\".""" + encrypt_connection: Optional[bool] = rest_field( + name="encryptConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to encrypt the connection.""" + additional_settings: Optional[str] = rest_field( + name="additionalSettings", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional connection settings.""" + trust_server_certificate: Optional[bool] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to trust the server certificate.""" + platform: Optional[Union[str, "_models.SqlSourcePlatform"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Server platform type for connection. \"SqlOnPrem\"""" + type: Literal["SqlConnectionInfo"] = rest_discriminator(name="type", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Type of connection info. Required. Default value is \"SqlConnectionInfo\".""" + + @overload + def __init__( + self, + *, + data_source: str, + user_name: Optional[str] = None, + password: Optional[str] = None, + server_name: Optional[str] = None, + port: Optional[int] = None, + server_version: Optional[str] = None, + server_brand_version: Optional[str] = None, + resource_id: Optional[str] = None, + authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, + encrypt_connection: Optional[bool] = None, + additional_settings: Optional[str] = None, + trust_server_certificate: Optional[bool] = None, + platform: Optional[Union[str, "_models.SqlSourcePlatform"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.type = "SqlConnectionInfo" # type: ignore + + +class SqlConnectionInformation(_Model): + """Source SQL Connection. + + :ivar data_source: Data source. + :vartype data_source: str + :ivar authentication: Authentication type. + :vartype authentication: str + :ivar user_name: User name to connect to source SQL. + :vartype user_name: str + :ivar password: Password to connect to source SQL. + :vartype password: str + :ivar encrypt_connection: Whether to encrypt connection or not. + :vartype encrypt_connection: bool + :ivar trust_server_certificate: Whether to trust server certificate or not. + :vartype trust_server_certificate: bool + """ + + data_source: Optional[str] = rest_field( + name="dataSource", visibility=["read", "create", "update", "delete", "query"] + ) + """Data source.""" + authentication: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Authentication type.""" + user_name: Optional[str] = rest_field(name="userName", visibility=["read", "create", "update", "delete", "query"]) + """User name to connect to source SQL.""" + password: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Password to connect to source SQL.""" + encrypt_connection: Optional[bool] = rest_field( + name="encryptConnection", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to encrypt connection or not.""" + trust_server_certificate: Optional[bool] = rest_field( + name="trustServerCertificate", visibility=["read", "create", "update", "delete", "query"] + ) + """Whether to trust server certificate or not.""" + + @overload + def __init__( + self, + *, + data_source: Optional[str] = None, + authentication: Optional[str] = None, + user_name: Optional[str] = None, + password: Optional[str] = None, + encrypt_connection: Optional[bool] = None, + trust_server_certificate: Optional[bool] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlDbMigrationStatusDetails(_Model): + """Detailed status of current Sql Db migration. + + :ivar migration_state: Current State of Migration. + :vartype migration_state: str + :ivar sql_data_copy_errors: Sql Data Copy errors, if any. + :vartype sql_data_copy_errors: list[str] + :ivar list_of_copy_progress_details: Details on progress of ADF copy activities. + :vartype list_of_copy_progress_details: + list[~azure.mgmt.datamigration.models.CopyProgressDetails] + """ + + migration_state: Optional[str] = rest_field(name="migrationState", visibility=["read"]) + """Current State of Migration.""" + sql_data_copy_errors: Optional[list[str]] = rest_field(name="sqlDataCopyErrors", visibility=["read"]) + """Sql Data Copy errors, if any.""" + list_of_copy_progress_details: Optional[list["_models.CopyProgressDetails"]] = rest_field( + name="listOfCopyProgressDetails", visibility=["read"] + ) + """Details on progress of ADF copy activities.""" + + +class SqlDbOfflineConfiguration(_Model): + """Offline configuration. + + :ivar offline: Offline migration. + :vartype offline: bool + """ + + offline: Optional[bool] = rest_field(visibility=["read"]) + """Offline migration.""" + + +class SqlFileShare(_Model): + """File share. + + :ivar path: Location as SMB share or local drive where backups are placed. + :vartype path: str + :ivar username: Username to access the file share location for backups. + :vartype username: str + :ivar password: Password for username to access file share location. + :vartype password: str + """ + + path: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Location as SMB share or local drive where backups are placed.""" + username: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Username to access the file share location for backups.""" + password: Optional[str] = rest_field(visibility=["create", "update"]) + """Password for username to access file share location.""" + + @overload + def __init__( + self, + *, + path: Optional[str] = None, + username: Optional[str] = None, + password: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SqlMigrationService(Resource): + """A SQL Migration Service. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.datamigration.models.SystemData + :ivar properties: The SQL Migration Service properties. + :vartype properties: ~azure.mgmt.datamigration.models.SqlMigrationServiceProperties + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. + :vartype location: str + """ + + properties: Optional["_models.SqlMigrationServiceProperties"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """The SQL Migration Service properties.""" + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Resource tags.""" + location: Optional[str] = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives.""" + + __flattened_items = ["provisioning_state", "integration_runtime_state"] + + @overload + def __init__( + self, + *, + properties: Optional["_models.SqlMigrationServiceProperties"] = None, + tags: Optional[dict[str, str]] = None, + location: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items} + super().__init__(*args, **kwargs) + for k, v in _flattened_input.items(): + setattr(self, k, v) + + def __getattr__(self, name: str) -> Any: + if name in self.__flattened_items: + if self.properties is None: + return None + return getattr(self.properties, name) + raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'") + + def __setattr__(self, key: str, value: Any) -> None: + if key in self.__flattened_items: + if self.properties is None: + self.properties = self._attr_to_rest_field["properties"]._class_type() + setattr(self.properties, key, value) + else: + super().__setattr__(key, value) + + +class SqlMigrationServiceProperties(_Model): + """The SQL Migration Service properties. + + :ivar provisioning_state: Provisioning state to track the async operation status. + :vartype provisioning_state: str + :ivar integration_runtime_state: Current state of the Integration runtime. + :vartype integration_runtime_state: str + """ + + provisioning_state: Optional[str] = rest_field(name="provisioningState", visibility=["read"]) + """Provisioning state to track the async operation status.""" + integration_runtime_state: Optional[str] = rest_field(name="integrationRuntimeState", visibility=["read"]) + """Current state of the Integration runtime.""" + + +class SqlMigrationServiceUpdate(_Model): + """An update to a SQL Migration Service. + + :ivar tags: Dictionary of . + :vartype tags: dict[str, str] + """ + + tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Dictionary of .""" + + @overload + def __init__( + self, + *, + tags: Optional[dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SsisMigrationInfo(_Model): + """SSIS migration info with SSIS store type, overwrite policy. + + :ivar ssis_store_type: The SSIS store type of source, only SSIS catalog is supported now in DMS + (classic). "SsisCatalog" + :vartype ssis_store_type: str or ~azure.mgmt.datamigration.models.SsisStoreType + :ivar project_overwrite_option: The overwrite option for the SSIS project migration. Known + values are: "Ignore" and "Overwrite". + :vartype project_overwrite_option: str or + ~azure.mgmt.datamigration.models.SsisMigrationOverwriteOption + :ivar environment_overwrite_option: The overwrite option for the SSIS environment migration. + Known values are: "Ignore" and "Overwrite". + :vartype environment_overwrite_option: str or + ~azure.mgmt.datamigration.models.SsisMigrationOverwriteOption + """ + + ssis_store_type: Optional[Union[str, "_models.SsisStoreType"]] = rest_field( + name="ssisStoreType", visibility=["read", "create", "update", "delete", "query"] + ) + """The SSIS store type of source, only SSIS catalog is supported now in DMS (classic). + \"SsisCatalog\"""" + project_overwrite_option: Optional[Union[str, "_models.SsisMigrationOverwriteOption"]] = rest_field( + name="projectOverwriteOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The overwrite option for the SSIS project migration. Known values are: \"Ignore\" and + \"Overwrite\".""" + environment_overwrite_option: Optional[Union[str, "_models.SsisMigrationOverwriteOption"]] = rest_field( + name="environmentOverwriteOption", visibility=["read", "create", "update", "delete", "query"] + ) + """The overwrite option for the SSIS environment migration. Known values are: \"Ignore\" and + \"Overwrite\".""" + + @overload + def __init__( + self, + *, + 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, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class SyncMigrationDatabaseErrorEvent(_Model): + """Database migration errors for online migration. + + :ivar timestamp_string: String value of timestamp. + :vartype timestamp_string: str + :ivar event_type_string: Event type. + :vartype event_type_string: str + :ivar event_text: Event text. + :vartype event_text: str + """ + + timestamp_string: Optional[str] = rest_field(name="timestampString", visibility=["read"]) + """String value of timestamp.""" + event_type_string: Optional[str] = rest_field(name="eventTypeString", visibility=["read"]) + """Event type.""" + event_text: Optional[str] = rest_field(name="eventText", visibility=["read"]) + """Event text.""" + + +class SystemData(_Model): + """Metadata pertaining to creation and last modification of the resource. + + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Known values are: + "User", "Application", "ManagedIdentity", and "Key". + :vartype created_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", and "Key". + :vartype last_modified_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime + """ + + created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"]) + """The identity that created the resource.""" + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="createdByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that created the resource. Known values are: \"User\", \"Application\", + \"ManagedIdentity\", and \"Key\".""" + created_at: Optional[datetime.datetime] = rest_field( + name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource creation (UTC).""" + last_modified_by: Optional[str] = rest_field( + name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"] + ) + """The identity that last modified the resource.""" + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field( + name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"] + ) + """The type of identity that last modified the resource. Known values are: \"User\", + \"Application\", \"ManagedIdentity\", and \"Key\".""" + last_modified_at: Optional[datetime.datetime] = rest_field( + name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" + ) + """The timestamp of resource last modification (UTC).""" + + @overload + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class TargetLocation(_Model): + """Target Location details for optional copy of backups. + + :ivar storage_account_resource_id: Resource Id of the storage account copying backups. + :vartype storage_account_resource_id: str + :ivar account_key: Storage Account Key. + :vartype account_key: str + """ + + storage_account_resource_id: Optional[str] = rest_field( + name="storageAccountResourceId", visibility=["read", "create", "update", "delete", "query"] + ) + """Resource Id of the storage account copying backups.""" + account_key: Optional[str] = rest_field( + name="accountKey", visibility=["read", "create", "update", "delete", "query"] + ) + """Storage Account Key.""" + + @overload + def __init__( + self, + *, + storage_account_resource_id: Optional[str] = None, + account_key: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UploadOCIDriverTaskInput(_Model): + """Input for the service task to upload an OCI driver. + + :ivar driver_share: File share information for the OCI driver archive. + :vartype driver_share: ~azure.mgmt.datamigration.models.FileShare + """ + + driver_share: Optional["_models.FileShare"] = rest_field( + name="driverShare", visibility=["read", "create", "update", "delete", "query"] + ) + """File share information for the OCI driver archive.""" + + @overload + def __init__( + self, + *, + driver_share: Optional["_models.FileShare"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class UploadOCIDriverTaskOutput(_Model): + """Output for the service task to upload an OCI driver. + + :ivar driver_package_name: The name of the driver package that was validated and uploaded. + :vartype driver_package_name: str + :ivar validation_errors: Validation errors. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + driver_package_name: Optional[str] = rest_field(name="driverPackageName", visibility=["read"]) + """The name of the driver package that was validated and uploaded.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Validation errors.""" + + +class UploadOCIDriverTaskProperties(ProjectTaskProperties, discriminator="Service.Upload.OCI"): + """Properties for the task that uploads an OCI driver. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Input for the service task to upload an OCI driver. + :vartype input: ~azure.mgmt.datamigration.models.UploadOCIDriverTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: list[~azure.mgmt.datamigration.models.UploadOCIDriverTaskOutput] + :ivar task_type: Task type. Required. Service.Upload.OCI. + :vartype task_type: str or ~azure.mgmt.datamigration.models.SERVICE_UPLOAD_OCI + """ + + input: Optional["_models.UploadOCIDriverTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Input for the service task to upload an OCI driver.""" + output: Optional[list["_models.UploadOCIDriverTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.SERVICE_UPLOAD_OCI] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Service.Upload.OCI.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.UploadOCIDriverTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.SERVICE_UPLOAD_OCI # type: ignore + + +class UserAssignedIdentity(_Model): + """User assigned identity properties. + + :ivar principal_id: The principal ID of the assigned identity. + :vartype principal_id: str + :ivar client_id: The client ID of the assigned identity. + :vartype client_id: str + """ + + principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"]) + """The principal ID of the assigned identity.""" + client_id: Optional[str] = rest_field(name="clientId", visibility=["read"]) + """The client ID of the assigned identity.""" + + +class ValidateMigrationInputSqlServerSqlDbSyncTaskProperties( + ProjectTaskProperties, discriminator="ValidateMigrationInput.SqlServer.SqlDb.Sync" +): # pylint: disable=name-too-long + """Properties for task that validates migration input for SQL to Azure SQL DB sync migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput] + :ivar task_type: Task type. Required. ValidateMigrationInput.SqlServer.SqlDb.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC + """ + + input: Optional["_models.ValidateSyncMigrationInputSqlServerTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ValidateSyncMigrationInputSqlServerTaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ValidateMigrationInput.SqlServer.SqlDb.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ValidateSyncMigrationInputSqlServerTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC # type: ignore + + +class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): # pylint: disable=name-too-long + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online + scenario. + + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :ivar backup_file_share: Backup file share information for all selected databases. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar storage_resource_id: Fully qualified resourceId of storage. Required. + :vartype storage_resource_id: str + :ivar source_connection_info: Connection information for source SQL Server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. + Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo + :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to + connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage + Account. Required. + :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp + """ + + @overload + def __init__( + self, + *, + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], + storage_resource_id: str, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.MiSqlConnectionInfo", + azure_app: "_models.AzureActiveDirectoryApp", + backup_file_share: Optional["_models.FileShare"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ValidateMigrationInputSqlServerSqlMISyncTaskOutput(_Model): # pylint: disable=name-too-long + """Output for task that validates migration input for Azure SQL Database Managed Instance online + migration. + + :ivar id: Database identifier. + :vartype id: str + :ivar name: Name of database. + :vartype name: str + :ivar validation_errors: Errors associated with a selected database object. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Database identifier.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Name of database.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Errors associated with a selected database object.""" + + +class ValidateMigrationInputSqlServerSqlMISyncTaskProperties( + ProjectTaskProperties, discriminator="ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS" +): # pylint: disable=name-too-long + """Properties for task that validates migration input for SQL to Azure SQL Database Managed + Instance sync scenario. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: + ~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput] + :ivar task_type: Task type. Required. ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS + """ + + input: Optional["_models.ValidateMigrationInputSqlServerSqlMISyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput"]] = rest_field( + visibility=["read"] + ) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ValidateMigrationInputSqlServerSqlMISyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS # type: ignore + + +class ValidateMigrationInputSqlServerSqlMITaskInput(_Model): # pylint: disable=name-too-long + """Input for task that validates migration input for SQL to Azure SQL Managed Instance. + + :ivar source_connection_info: Information for connecting to source. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] + :ivar selected_logins: Logins to migrate. + :vartype selected_logins: list[str] + :ivar backup_file_share: Backup file share information for all selected databases. + :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare + :ivar backup_blob_share: SAS URI of Azure Storage Account Container to be used for storing + backup files. Required. + :vartype backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare + :ivar backup_mode: Backup Mode to specify whether to use existing backup or create new backup. + Known values are: "CreateBackup" and "ExistingBackup". + :vartype backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode + """ + + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to source. Required.""" + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to target. Required.""" + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + selected_logins: Optional[list[str]] = rest_field( + name="selectedLogins", visibility=["read", "create", "update", "delete", "query"] + ) + """Logins to migrate.""" + backup_file_share: Optional["_models.FileShare"] = rest_field( + name="backupFileShare", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup file share information for all selected databases.""" + backup_blob_share: "_models.BlobShare" = rest_field( + name="backupBlobShare", visibility=["read", "create", "update", "delete", "query"] + ) + """SAS URI of Azure Storage Account Container to be used for storing backup files. Required.""" + backup_mode: Optional[Union[str, "_models.BackupMode"]] = rest_field( + name="backupMode", visibility=["read", "create", "update", "delete", "query"] + ) + """Backup Mode to specify whether to use existing backup or create new backup. Known values are: + \"CreateBackup\" and \"ExistingBackup\".""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], + backup_blob_share: "_models.BlobShare", + selected_logins: Optional[list[str]] = None, + backup_file_share: Optional["_models.FileShare"] = None, + backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ValidateMigrationInputSqlServerSqlMITaskOutput(_Model): # pylint: disable=name-too-long + """Output for task that validates migration input for SQL to Azure SQL Managed Instance + migrations. + + :ivar id: Result identifier. + :vartype id: str + :ivar name: Name of database. + :vartype name: str + :ivar restore_database_name_errors: Errors associated with the RestoreDatabaseName. + :vartype restore_database_name_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_folder_errors: Errors associated with the BackupFolder path. + :vartype backup_folder_errors: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_share_credentials_errors: Errors associated with backup share user name and + password credentials. + :vartype backup_share_credentials_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar backup_storage_account_errors: Errors associated with the storage account provided. + :vartype backup_storage_account_errors: + list[~azure.mgmt.datamigration.models.ReportableException] + :ivar existing_backup_errors: Errors associated with existing backup files. + :vartype existing_backup_errors: list[~azure.mgmt.datamigration.models.ReportableException] + :ivar database_backup_info: Information about backup files when existing backup mode is used. + :vartype database_backup_info: ~azure.mgmt.datamigration.models.DatabaseBackupInfo + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Result identifier.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Name of database.""" + restore_database_name_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="restoreDatabaseNameErrors", visibility=["read"] + ) + """Errors associated with the RestoreDatabaseName.""" + backup_folder_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="backupFolderErrors", visibility=["read"] + ) + """Errors associated with the BackupFolder path.""" + backup_share_credentials_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="backupShareCredentialsErrors", visibility=["read"] + ) + """Errors associated with backup share user name and password credentials.""" + backup_storage_account_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="backupStorageAccountErrors", visibility=["read"] + ) + """Errors associated with the storage account provided.""" + existing_backup_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="existingBackupErrors", visibility=["read"] + ) + """Errors associated with existing backup files.""" + database_backup_info: Optional["_models.DatabaseBackupInfo"] = rest_field( + name="databaseBackupInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information about backup files when existing backup mode is used.""" + + @overload + def __init__( + self, + *, + database_backup_info: Optional["_models.DatabaseBackupInfo"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ValidateMigrationInputSqlServerSqlMITaskProperties( + ProjectTaskProperties, discriminator="ValidateMigrationInput.SqlServer.AzureSqlDbMI" +): # pylint: disable=name-too-long + """Properties for task that validates migration input for SQL to Azure SQL Database Managed + Instance. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Task input. + :vartype input: ~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput + :ivar output: Task output. This is ignored if submitted. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput] + :ivar task_type: Task type. Required. ValidateMigrationInput.SqlServer.AzureSqlDbMI. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI + """ + + input: Optional["_models.ValidateMigrationInputSqlServerSqlMITaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Task input.""" + output: Optional[list["_models.ValidateMigrationInputSqlServerSqlMITaskOutput"]] = rest_field(visibility=["read"]) + """Task output. This is ignored if submitted.""" + task_type: Literal[TaskType.VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. ValidateMigrationInput.SqlServer.AzureSqlDbMI.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.ValidateMigrationInputSqlServerSqlMITaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI # type: ignore + + +class ValidateMongoDbTaskProperties(ProjectTaskProperties, discriminator="Validate.MongoDb"): + """Properties for the task that validates a migration between MongoDB data sources. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Describes how a MongoDB data migration should be performed. + :vartype input: ~azure.mgmt.datamigration.models.MongoDbMigrationSettings + :ivar output: An array containing a single MongoDbMigrationProgress object. + :vartype output: list[~azure.mgmt.datamigration.models.MongoDbMigrationProgress] + :ivar task_type: Task type. Required. Validate.MongoDb. + :vartype task_type: str or ~azure.mgmt.datamigration.models.VALIDATE_MONGO_DB + """ + + input: Optional["_models.MongoDbMigrationSettings"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Describes how a MongoDB data migration should be performed.""" + output: Optional[list["_models.MongoDbMigrationProgress"]] = rest_field(visibility=["read"]) + """An array containing a single MongoDbMigrationProgress object.""" + task_type: Literal[TaskType.VALIDATE_MONGO_DB] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Validate.MongoDb.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MongoDbMigrationSettings"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.VALIDATE_MONGO_DB # type: ignore + + +class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties( + ProjectTaskProperties, discriminator="Validate.Oracle.AzureDbPostgreSql.Sync" +): # pylint: disable=name-too-long + """Properties for the task that validates a migration for Oracle to Azure Database for PostgreSQL + for online migrations. + + :ivar errors: Array of errors. This is ignored if submitted. + :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] + :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", + "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". + :vartype state: str or ~azure.mgmt.datamigration.models.TaskState + :ivar commands: Array of command properties. + :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] + :ivar client_data: Key value pairs of client data to attach meta data information to task. + :vartype client_data: dict[str, str] + :ivar input: Input for the task that migrates Oracle databases to Azure Database for PostgreSQL + for online migrations. + :vartype input: ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput + :ivar output: An array containing a single validation error response object. + :vartype output: + list[~azure.mgmt.datamigration.models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput] + :ivar task_type: Task type. Required. Validate.Oracle.AzureDbPostgreSql.Sync. + :vartype task_type: str or + ~azure.mgmt.datamigration.models.VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC + """ + + input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online + migrations.""" + output: Optional[list["_models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput"]] = rest_field(visibility=["read"]) + """An array containing a single validation error response object.""" + task_type: Literal[TaskType.VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC] = rest_discriminator(name="taskType", visibility=["read", "create", "update", "delete", "query"]) # type: ignore + """Task type. Required. Validate.Oracle.AzureDbPostgreSql.Sync.""" + + @overload + def __init__( + self, + *, + client_data: Optional[dict[str, str]] = None, + input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + self.task_type = TaskType.VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC # type: ignore + + +class ValidateOracleAzureDbPostgreSqlSyncTaskOutput(_Model): # pylint: disable=name-too-long + """Output for task that validates migration input for Oracle to Azure Database for PostgreSQL for + online migrations. + + :ivar validation_errors: Errors associated with a selected database object. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Errors associated with a selected database object.""" + + +class ValidateSyncMigrationInputSqlServerTaskInput(_Model): # pylint: disable=name-too-long + """Input for task that validates migration input for SQL sync migrations. + + :ivar source_connection_info: Information for connecting to source SQL server. Required. + :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar target_connection_info: Information for connecting to target. Required. + :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo + :ivar selected_databases: Databases to migrate. Required. + :vartype selected_databases: + list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] + """ + + source_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="sourceConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to source SQL server. Required.""" + target_connection_info: "_models.SqlConnectionInfo" = rest_field( + name="targetConnectionInfo", visibility=["read", "create", "update", "delete", "query"] + ) + """Information for connecting to target. Required.""" + selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"] = rest_field( + name="selectedDatabases", visibility=["read", "create", "update", "delete", "query"] + ) + """Databases to migrate. Required.""" + + @overload + def __init__( + self, + *, + source_connection_info: "_models.SqlConnectionInfo", + target_connection_info: "_models.SqlConnectionInfo", + selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ValidateSyncMigrationInputSqlServerTaskOutput(_Model): # pylint: disable=name-too-long + """Output for task that validates migration input for SQL sync migrations. + + :ivar id: Database identifier. + :vartype id: str + :ivar name: Name of database. + :vartype name: str + :ivar validation_errors: Errors associated with a selected database object. + :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] + """ + + id: Optional[str] = rest_field(visibility=["read"]) + """Database identifier.""" + name: Optional[str] = rest_field(visibility=["read"]) + """Name of database.""" + validation_errors: Optional[list["_models.ReportableException"]] = rest_field( + name="validationErrors", visibility=["read"] + ) + """Errors associated with a selected database object.""" + + +class ValidationError(_Model): + """Description about the errors happen while performing migration validation. + + :ivar text: Error Text. + :vartype text: str + :ivar severity: Severity of the error. Known values are: "Message", "Warning", and "Error". + :vartype severity: str or ~azure.mgmt.datamigration.models.Severity + """ + + text: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """Error Text.""" + severity: Optional[Union[str, "_models.Severity"]] = rest_field( + visibility=["read", "create", "update", "delete", "query"] + ) + """Severity of the error. Known values are: \"Message\", \"Warning\", and \"Error\".""" + + @overload + def __init__( + self, + *, + text: Optional[str] = None, + severity: Optional[Union[str, "_models.Severity"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class WaitStatistics(_Model): + """Wait statistics gathered during query batch execution. + + :ivar wait_type: Type of the Wait. + :vartype wait_type: str + :ivar wait_time_ms: Total wait time in millisecond(s). + :vartype wait_time_ms: float + :ivar wait_count: Total no. of waits. + :vartype wait_count: int + """ + + wait_type: Optional[str] = rest_field(name="waitType", visibility=["read", "create", "update", "delete", "query"]) + """Type of the Wait.""" + wait_time_ms: Optional[float] = rest_field( + name="waitTimeMs", visibility=["read", "create", "update", "delete", "query"] + ) + """Total wait time in millisecond(s).""" + wait_count: Optional[int] = rest_field(name="waitCount", visibility=["read", "create", "update", "delete", "query"]) + """Total no. of waits.""" + + @overload + def __init__( + self, + *, + wait_type: Optional[str] = None, + wait_time_ms: Optional[float] = None, + wait_count: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) 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 deleted file mode 100644 index e55e5360f708..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py +++ /dev/null @@ -1,19590 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from collections.abc import MutableMapping -import datetime -from typing import Any, Optional, TYPE_CHECKING, Union - -from .._utils import serialization as _serialization - -if TYPE_CHECKING: - from .. import models as _models -JSON = MutableMapping[str, Any] - - -class ApiError(_serialization.Model): - """Error information. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar error: Error information in OData format. - :vartype error: ~azure.mgmt.datamigration.models.ODataError - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - """ - - _validation = { - "system_data": {"readonly": True}, - } - - _attribute_map = { - "error": {"key": "error", "type": "ODataError"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - } - - 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 - """ - super().__init__(**kwargs) - self.error = error - self.system_data: Optional["_models.SystemDataAutoGenerated"] = None - - -class AuthenticationKeys(_serialization.Model): - """An authentication key. - - :ivar auth_key1: The first authentication key. - :vartype auth_key1: str - :ivar auth_key2: The second authentication key. - :vartype auth_key2: str - """ - - _attribute_map = { - "auth_key1": {"key": "authKey1", "type": "str"}, - "auth_key2": {"key": "authKey2", "type": "str"}, - } - - 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 - :keyword auth_key2: The second authentication key. - :paramtype auth_key2: str - """ - super().__init__(**kwargs) - self.auth_key1 = auth_key1 - self.auth_key2 = auth_key2 - - -class AvailableServiceSku(_serialization.Model): - """Describes the available service SKU. - - :ivar resource_type: The resource type, including the provider namespace. - :vartype resource_type: str - :ivar sku: SKU name, tier, etc. - :vartype sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku - :ivar capacity: A description of the scaling capacities of the SKU. - :vartype capacity: ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "sku": {"key": "sku", "type": "AvailableServiceSkuSku"}, - "capacity": {"key": "capacity", "type": "AvailableServiceSkuCapacity"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - sku: Optional["_models.AvailableServiceSkuSku"] = None, - capacity: Optional["_models.AvailableServiceSkuCapacity"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: The resource type, including the provider namespace. - :paramtype resource_type: str - :keyword sku: SKU name, tier, etc. - :paramtype sku: ~azure.mgmt.datamigration.models.AvailableServiceSkuSku - :keyword capacity: A description of the scaling capacities of the SKU. - :paramtype capacity: ~azure.mgmt.datamigration.models.AvailableServiceSkuCapacity - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.sku = sku - self.capacity = capacity - - -class AvailableServiceSkuCapacity(_serialization.Model): - """A description of the scaling capacities of the SKU. - - :ivar minimum: The minimum capacity, usually 0 or 1. - :vartype minimum: int - :ivar maximum: The maximum capacity. - :vartype maximum: int - :ivar default: The default capacity. - :vartype default: int - :ivar scale_type: The scalability approach. Known values are: "none", "manual", and - "automatic". - :vartype scale_type: str or ~azure.mgmt.datamigration.models.ServiceScalability - """ - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: Optional[int] = None, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.ServiceScalability"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: The minimum capacity, usually 0 or 1. - :paramtype minimum: int - :keyword maximum: The maximum capacity. - :paramtype maximum: int - :keyword default: The default capacity. - :paramtype default: int - :keyword scale_type: The scalability approach. Known values are: "none", "manual", and - "automatic". - :paramtype scale_type: str or ~azure.mgmt.datamigration.models.ServiceScalability - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class AvailableServiceSkuSku(_serialization.Model): - """SKU name, tier, etc. - - :ivar name: The name of the SKU. - :vartype name: str - :ivar family: SKU family. - :vartype family: str - :ivar size: SKU size. - :vartype size: str - :ivar tier: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical". - :vartype tier: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "family": {"key": "family", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - family: Optional[str] = None, - size: Optional[str] = None, - tier: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the SKU. - :paramtype name: str - :keyword family: SKU family. - :paramtype family: str - :keyword size: SKU size. - :paramtype size: str - :keyword tier: The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical". - :paramtype tier: str - """ - super().__init__(**kwargs) - self.name = name - self.family = family - self.size = size - self.tier = tier - - -class AzureActiveDirectoryApp(_serialization.Model): - """Azure Active Directory Application. - - :ivar application_id: Application ID of the Azure Active Directory Application. - :vartype application_id: str - :ivar app_key: Key used to authenticate to the Azure Active Directory Application. - :vartype app_key: str - :ivar tenant_id: Tenant id of the customer. - :vartype tenant_id: str - :ivar ignore_azure_permissions: Ignore checking azure permissions on the AAD app. - :vartype ignore_azure_permissions: bool - """ - - _attribute_map = { - "application_id": {"key": "applicationId", "type": "str"}, - "app_key": {"key": "appKey", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "ignore_azure_permissions": {"key": "ignoreAzurePermissions", "type": "bool"}, - } - - def __init__( - self, - *, - application_id: Optional[str] = None, - app_key: Optional[str] = None, - tenant_id: Optional[str] = None, - ignore_azure_permissions: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_id: Application ID of the Azure Active Directory Application. - :paramtype application_id: str - :keyword app_key: Key used to authenticate to the Azure Active Directory Application. - :paramtype app_key: str - :keyword tenant_id: Tenant id of the customer. - :paramtype tenant_id: str - :keyword ignore_azure_permissions: Ignore checking azure permissions on the AAD app. - :paramtype ignore_azure_permissions: bool - """ - super().__init__(**kwargs) - self.application_id = application_id - self.app_key = app_key - self.tenant_id = tenant_id - self.ignore_azure_permissions = ignore_azure_permissions - - -class AzureBlob(_serialization.Model): - """Azure Blob Details. - - :ivar auth_type: Authentication type used for accessing Azure Blob Storage. Known values are: - "AccountKey" and "ManagedIdentity". - :vartype auth_type: str or ~azure.mgmt.datamigration.models.AuthType - :ivar identity: Identity details for authentication using a Managed Identity. - :vartype identity: ~azure.mgmt.datamigration.models.ManagedServiceIdentity - :ivar storage_account_resource_id: Resource Id of the storage account where backups are stored. - :vartype storage_account_resource_id: str - :ivar account_key: Storage Account Key. - :vartype account_key: str - :ivar blob_container_name: Blob container name where backups are stored. - :vartype blob_container_name: str - """ - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "identity": {"key": "identity", "type": "ManagedServiceIdentity"}, - "storage_account_resource_id": {"key": "storageAccountResourceId", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - "blob_container_name": {"key": "blobContainerName", "type": "str"}, - } - - def __init__( - self, - *, - auth_type: Optional[Union[str, "_models.AuthType"]] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, - storage_account_resource_id: Optional[str] = None, - account_key: Optional[str] = None, - blob_container_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword auth_type: Authentication type used for accessing Azure Blob Storage. Known values - are: "AccountKey" and "ManagedIdentity". - :paramtype auth_type: str or ~azure.mgmt.datamigration.models.AuthType - :keyword identity: Identity details for authentication using a Managed Identity. - :paramtype identity: ~azure.mgmt.datamigration.models.ManagedServiceIdentity - :keyword storage_account_resource_id: Resource Id of the storage account where backups are - stored. - :paramtype storage_account_resource_id: str - :keyword account_key: Storage Account Key. - :paramtype account_key: str - :keyword blob_container_name: Blob container name where backups are stored. - :paramtype blob_container_name: str - """ - super().__init__(**kwargs) - self.auth_type = auth_type - self.identity = identity - self.storage_account_resource_id = storage_account_resource_id - self.account_key = account_key - self.blob_container_name = blob_container_name - - -class BackupConfiguration(_serialization.Model): - """Backup Configuration. - - :ivar source_location: Source location of backups. - :vartype source_location: ~azure.mgmt.datamigration.models.SourceLocation - :ivar target_location: Target location for copying backups. - :vartype target_location: ~azure.mgmt.datamigration.models.TargetLocation - """ - - _attribute_map = { - "source_location": {"key": "sourceLocation", "type": "SourceLocation"}, - "target_location": {"key": "targetLocation", "type": "TargetLocation"}, - } - - def __init__( - self, - *, - source_location: Optional["_models.SourceLocation"] = None, - target_location: Optional["_models.TargetLocation"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_location: Source location of backups. - :paramtype source_location: ~azure.mgmt.datamigration.models.SourceLocation - :keyword target_location: Target location for copying backups. - :paramtype target_location: ~azure.mgmt.datamigration.models.TargetLocation - """ - super().__init__(**kwargs) - self.source_location = source_location - self.target_location = target_location - - -class BackupFileInfo(_serialization.Model): - """Information of the backup file. - - :ivar file_location: Location of the backup file in shared folder. - :vartype file_location: str - :ivar family_sequence_number: Sequence number of the backup file in the backup set. - :vartype family_sequence_number: int - :ivar status: Status of the backup file during migration. Known values are: "Arrived", - "Queued", "Uploading", "Uploaded", "Restoring", "Restored", and "Cancelled". - :vartype status: str or ~azure.mgmt.datamigration.models.BackupFileStatus - """ - - _attribute_map = { - "file_location": {"key": "fileLocation", "type": "str"}, - "family_sequence_number": {"key": "familySequenceNumber", "type": "int"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__( - self, - *, - file_location: Optional[str] = None, - family_sequence_number: Optional[int] = None, - status: Optional[Union[str, "_models.BackupFileStatus"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword file_location: Location of the backup file in shared folder. - :paramtype file_location: str - :keyword family_sequence_number: Sequence number of the backup file in the backup set. - :paramtype family_sequence_number: int - :keyword status: Status of the backup file during migration. Known values are: "Arrived", - "Queued", "Uploading", "Uploaded", "Restoring", "Restored", and "Cancelled". - :paramtype status: str or ~azure.mgmt.datamigration.models.BackupFileStatus - """ - super().__init__(**kwargs) - self.file_location = file_location - self.family_sequence_number = family_sequence_number - self.status = status - - -class BackupSetInfo(_serialization.Model): - """Information of backup set. - - :ivar backup_set_id: Id for the set of backup files. - :vartype backup_set_id: str - :ivar first_lsn: First log sequence number of the backup file. - :vartype first_lsn: str - :ivar last_lsn: Last log sequence number of the backup file. - :vartype last_lsn: str - :ivar last_modified_time: Last modified time of the backup file in share location. - :vartype last_modified_time: ~datetime.datetime - :ivar backup_type: Enum of the different backup types. Known values are: "Database", - "TransactionLog", "File", "DifferentialDatabase", "DifferentialFile", "Partial", and - "DifferentialPartial". - :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :ivar list_of_backup_files: List of files in the backup set. - :vartype list_of_backup_files: list[~azure.mgmt.datamigration.models.BackupFileInfo] - :ivar database_name: Name of the database to which the backup set belongs. - :vartype database_name: str - :ivar backup_start_date: Date and time that the backup operation began. - :vartype backup_start_date: ~datetime.datetime - :ivar backup_finished_date: Date and time that the backup operation finished. - :vartype backup_finished_date: ~datetime.datetime - :ivar is_backup_restored: Whether the backup set is restored or not. - :vartype is_backup_restored: bool - """ - - _attribute_map = { - "backup_set_id": {"key": "backupSetId", "type": "str"}, - "first_lsn": {"key": "firstLsn", "type": "str"}, - "last_lsn": {"key": "lastLsn", "type": "str"}, - "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, - "backup_type": {"key": "backupType", "type": "str"}, - "list_of_backup_files": {"key": "listOfBackupFiles", "type": "[BackupFileInfo]"}, - "database_name": {"key": "databaseName", "type": "str"}, - "backup_start_date": {"key": "backupStartDate", "type": "iso-8601"}, - "backup_finished_date": {"key": "backupFinishedDate", "type": "iso-8601"}, - "is_backup_restored": {"key": "isBackupRestored", "type": "bool"}, - } - - def __init__( - self, - *, - backup_set_id: Optional[str] = None, - first_lsn: Optional[str] = None, - last_lsn: Optional[str] = None, - last_modified_time: Optional[datetime.datetime] = None, - backup_type: Optional[Union[str, "_models.BackupType"]] = None, - list_of_backup_files: Optional[list["_models.BackupFileInfo"]] = None, - database_name: Optional[str] = None, - backup_start_date: Optional[datetime.datetime] = None, - backup_finished_date: Optional[datetime.datetime] = None, - is_backup_restored: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword backup_set_id: Id for the set of backup files. - :paramtype backup_set_id: str - :keyword first_lsn: First log sequence number of the backup file. - :paramtype first_lsn: str - :keyword last_lsn: Last log sequence number of the backup file. - :paramtype last_lsn: str - :keyword last_modified_time: Last modified time of the backup file in share location. - :paramtype last_modified_time: ~datetime.datetime - :keyword backup_type: Enum of the different backup types. Known values are: "Database", - "TransactionLog", "File", "DifferentialDatabase", "DifferentialFile", "Partial", and - "DifferentialPartial". - :paramtype backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :keyword list_of_backup_files: List of files in the backup set. - :paramtype list_of_backup_files: list[~azure.mgmt.datamigration.models.BackupFileInfo] - :keyword database_name: Name of the database to which the backup set belongs. - :paramtype database_name: str - :keyword backup_start_date: Date and time that the backup operation began. - :paramtype backup_start_date: ~datetime.datetime - :keyword backup_finished_date: Date and time that the backup operation finished. - :paramtype backup_finished_date: ~datetime.datetime - :keyword is_backup_restored: Whether the backup set is restored or not. - :paramtype is_backup_restored: bool - """ - super().__init__(**kwargs) - self.backup_set_id = backup_set_id - self.first_lsn = first_lsn - self.last_lsn = last_lsn - self.last_modified_time = last_modified_time - self.backup_type = backup_type - self.list_of_backup_files = list_of_backup_files - self.database_name = database_name - self.backup_start_date = backup_start_date - self.backup_finished_date = backup_finished_date - self.is_backup_restored = is_backup_restored - - -class BlobShare(_serialization.Model): - """Blob container storage information. - - :ivar sas_uri: SAS URI of Azure Storage Account Container. - :vartype sas_uri: str - """ - - _attribute_map = { - "sas_uri": {"key": "sasUri", "type": "str"}, - } - - 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 - """ - super().__init__(**kwargs) - self.sas_uri = sas_uri - - -class CheckOCIDriverTaskInput(_serialization.Model): - """Input for the service task to check for OCI drivers. - - :ivar server_version: Version of the source server to check against. Optional. - :vartype server_version: str - """ - - _attribute_map = { - "server_version": {"key": "serverVersion", "type": "str"}, - } - - 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 - """ - super().__init__(**kwargs) - self.server_version = server_version - - -class CheckOCIDriverTaskOutput(_serialization.Model): - """Output for the service task to check for OCI drivers. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar installed_driver: Information about the installed driver if found and valid. - :vartype installed_driver: ~azure.mgmt.datamigration.models.OracleOCIDriverInfo - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "installed_driver": {"key": "installedDriver", "type": "OracleOCIDriverInfo"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - 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 - """ - super().__init__(**kwargs) - self.installed_driver = installed_driver - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ProjectTaskProperties(_serialization.Model): - """Base class for all types of DMS (classic) 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, - ConnectToSourceOracleSyncTaskProperties, ConnectToSourcePostgreSqlSyncTaskProperties, - ConnectToSourceSqlServerTaskProperties, ConnectToSourceSqlServerSyncTaskProperties, - ConnectToTargetAzureDbForMySqlTaskProperties, - ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, ConnectToTargetSqlMITaskProperties, - ConnectToTargetSqlMISyncTaskProperties, - ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties, - ConnectToTargetSqlDbTaskProperties, ConnectToTargetSqlDbSyncTaskProperties, - GetTdeCertificatesSqlTaskProperties, GetUserTablesSqlSyncTaskProperties, - GetUserTablesSqlTaskProperties, GetUserTablesMySqlTaskProperties, - GetUserTablesOracleTaskProperties, GetUserTablesPostgreSqlTaskProperties, - MigrateMongoDbTaskProperties, MigrateMySqlAzureDbForMySqlOfflineTaskProperties, - MigrateMySqlAzureDbForMySqlSyncTaskProperties, - MigrateOracleAzureDbForPostgreSqlSyncTaskProperties, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, - MigrateSqlServerSqlDbSyncTaskProperties, MigrateSqlServerSqlMITaskProperties, - MigrateSqlServerSqlMISyncTaskProperties, MigrateSqlServerSqlDbTaskProperties, - MigrateSsisTaskProperties, MigrateSchemaSqlServerSqlDbTaskProperties, - CheckOCIDriverTaskProperties, InstallOCIDriverTaskProperties, UploadOCIDriverTaskProperties, - ValidateMongoDbTaskProperties, ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, - ValidateMigrationInputSqlServerSqlMITaskProperties, - ValidateMigrationInputSqlServerSqlMISyncTaskProperties, - ValidateMigrationInputSqlServerSqlDbSyncTaskProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - } - - _subtype_map = { - "task_type": { - "Connect.MongoDb": "ConnectToMongoDbTaskProperties", - "ConnectToSource.MySql": "ConnectToSourceMySqlTaskProperties", - "ConnectToSource.Oracle.Sync": "ConnectToSourceOracleSyncTaskProperties", - "ConnectToSource.PostgreSql.Sync": "ConnectToSourcePostgreSqlSyncTaskProperties", - "ConnectToSource.SqlServer": "ConnectToSourceSqlServerTaskProperties", - "ConnectToSource.SqlServer.Sync": "ConnectToSourceSqlServerSyncTaskProperties", - "ConnectToTarget.AzureDbForMySql": "ConnectToTargetAzureDbForMySqlTaskProperties", - "ConnectToTarget.AzureDbForPostgreSql.Sync": "ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties", - "ConnectToTarget.AzureSqlDbMI": "ConnectToTargetSqlMITaskProperties", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS": "ConnectToTargetSqlMISyncTaskProperties", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync": "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties", - "ConnectToTarget.SqlDb": "ConnectToTargetSqlDbTaskProperties", - "ConnectToTarget.SqlDb.Sync": "ConnectToTargetSqlDbSyncTaskProperties", - "GetTDECertificates.Sql": "GetTdeCertificatesSqlTaskProperties", - "GetUserTables.AzureSqlDb.Sync": "GetUserTablesSqlSyncTaskProperties", - "GetUserTables.Sql": "GetUserTablesSqlTaskProperties", - "GetUserTablesMySql": "GetUserTablesMySqlTaskProperties", - "GetUserTablesOracle": "GetUserTablesOracleTaskProperties", - "GetUserTablesPostgreSql": "GetUserTablesPostgreSqlTaskProperties", - "Migrate.MongoDb": "MigrateMongoDbTaskProperties", - "Migrate.MySql.AzureDbForMySql": "MigrateMySqlAzureDbForMySqlOfflineTaskProperties", - "Migrate.MySql.AzureDbForMySql.Sync": "MigrateMySqlAzureDbForMySqlSyncTaskProperties", - "Migrate.Oracle.AzureDbForPostgreSql.Sync": "MigrateOracleAzureDbForPostgreSqlSyncTaskProperties", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties", - "Migrate.SqlServer.AzureSqlDb.Sync": "MigrateSqlServerSqlDbSyncTaskProperties", - "Migrate.SqlServer.AzureSqlDbMI": "MigrateSqlServerSqlMITaskProperties", - "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS": "MigrateSqlServerSqlMISyncTaskProperties", - "Migrate.SqlServer.SqlDb": "MigrateSqlServerSqlDbTaskProperties", - "Migrate.Ssis": "MigrateSsisTaskProperties", - "MigrateSchemaSqlServerSqlDb": "MigrateSchemaSqlServerSqlDbTaskProperties", - "Service.Check.OCI": "CheckOCIDriverTaskProperties", - "Service.Install.OCI": "InstallOCIDriverTaskProperties", - "Service.Upload.OCI": "UploadOCIDriverTaskProperties", - "Validate.MongoDb": "ValidateMongoDbTaskProperties", - "Validate.Oracle.AzureDbPostgreSql.Sync": "ValidateOracleAzureDbForPostgreSqlSyncTaskProperties", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI": "ValidateMigrationInputSqlServerSqlMITaskProperties", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS": "ValidateMigrationInputSqlServerSqlMISyncTaskProperties", - "ValidateMigrationInput.SqlServer.SqlDb.Sync": "ValidateMigrationInputSqlServerSqlDbSyncTaskProperties", - } - } - - 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] - """ - super().__init__(**kwargs) - self.task_type: Optional[str] = None - self.errors: Optional[list["_models.ODataError"]] = None - self.state: Optional[Union[str, "_models.TaskState"]] = None - self.commands: Optional[list["_models.CommandProperties"]] = None - self.client_data = client_data - - -class CheckOCIDriverTaskProperties(ProjectTaskProperties): - """Properties for the task that checks for OCI drivers. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Input for the service task to check for OCI drivers. - :vartype input: ~azure.mgmt.datamigration.models.CheckOCIDriverTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.CheckOCIDriverTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "CheckOCIDriverTaskInput"}, - "output": {"key": "output", "type": "[CheckOCIDriverTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.CheckOCIDriverTaskInput"] = 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] - :keyword input: Input for the service task to check for OCI drivers. - :paramtype input: ~azure.mgmt.datamigration.models.CheckOCIDriverTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Service.Check.OCI" - self.input = input - self.output: Optional[list["_models.CheckOCIDriverTaskOutput"]] = None - - -class CommandProperties(_serialization.Model): - """Base class for all types of DMS (classic) 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, - MongoDbCancelCommand, MongoDbFinishCommand, MongoDbRestartCommand - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", - "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". - :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. Known values are: - "Unknown", "Accepted", "Running", "Succeeded", and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - """ - - _validation = { - "command_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "command_type": {"key": "commandType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - } - - _subtype_map = { - "command_type": { - "Migrate.SqlServer.AzureDbSqlMi.Complete": "MigrateMISyncCompleteCommandProperties", - "Migrate.Sync.Complete.Database": "MigrateSyncCompleteCommandProperties", - "cancel": "MongoDbCancelCommand", - "finish": "MongoDbFinishCommand", - "restart": "MongoDbRestartCommand", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.command_type: Optional[str] = None - self.errors: Optional[list["_models.ODataError"]] = None - self.state: Optional[Union[str, "_models.CommandState"]] = None - - -class ConnectionInfo(_serialization.Model): - """Defines the connection properties of a server. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - MiSqlConnectionInfo, MongoDbConnectionInfo, MySqlConnectionInfo, OracleConnectionInfo, - PostgreSqlConnectionInfo, SqlConnectionInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - _subtype_map = { - "type": { - "MiSqlConnectionInfo": "MiSqlConnectionInfo", - "MongoDbConnectionInfo": "MongoDbConnectionInfo", - "MySqlConnectionInfo": "MySqlConnectionInfo", - "OracleConnectionInfo": "OracleConnectionInfo", - "PostgreSqlConnectionInfo": "PostgreSqlConnectionInfo", - "SqlConnectionInfo": "SqlConnectionInfo", - } - } - - def __init__(self, *, user_name: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.user_name = user_name - self.password = password - - -class ConnectToMongoDbTaskProperties(ProjectTaskProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Describes a connection to a MongoDB data source. - :vartype input: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :ivar output: An array containing a single MongoDbClusterInfo object. - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbClusterInfo] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MongoDbConnectionInfo"}, - "output": {"key": "output", "type": "[MongoDbClusterInfo]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MongoDbConnectionInfo"] = 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] - :keyword input: Describes a connection to a MongoDB data source. - :paramtype input: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Connect.MongoDb" - self.input = input - self.output: Optional[list["_models.MongoDbClusterInfo"]] = None - - -class ConnectToSourceMySqlTaskInput(_serialization.Model): - """Input for the task that validates MySQL database connection. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to MySQL source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar target_platform: Target Platform for the migration. Known values are: "SqlServer" and - "AzureDbForMySQL". - :vartype target_platform: str or ~azure.mgmt.datamigration.models.MySqlTargetPlatformType - :ivar check_permissions_group: Permission group for validations. Known values are: "Default", - "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", - "MigrationFromMySQLToAzureDBForMySQL", and "MigrationFromSqlServerToAzureVM". - :vartype check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - :ivar is_offline_migration: Flag for whether or not the migration is offline. - :vartype is_offline_migration: bool - """ - - _validation = { - "source_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "MySqlConnectionInfo"}, - "target_platform": {"key": "targetPlatform", "type": "str"}, - "check_permissions_group": {"key": "checkPermissionsGroup", "type": "str"}, - "is_offline_migration": {"key": "isOfflineMigration", "type": "bool"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.MySqlConnectionInfo", - target_platform: Optional[Union[str, "_models.MySqlTargetPlatformType"]] = None, - check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = None, - is_offline_migration: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to MySQL source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword target_platform: Target Platform for the migration. Known values are: "SqlServer" and - "AzureDbForMySQL". - :paramtype target_platform: str or ~azure.mgmt.datamigration.models.MySqlTargetPlatformType - :keyword check_permissions_group: Permission group for validations. Known values are: - "Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", - "MigrationFromMySQLToAzureDBForMySQL", and "MigrationFromSqlServerToAzureVM". - :paramtype check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - :keyword is_offline_migration: Flag for whether or not the migration is offline. - :paramtype is_offline_migration: bool - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_platform = target_platform - self.check_permissions_group = check_permissions_group - self.is_offline_migration = is_offline_migration - - -class ConnectToSourceMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that validates MySQL database connection. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceNonSqlTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToSourceMySqlTaskInput"}, - "output": {"key": "output", "type": "[ConnectToSourceNonSqlTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToSourceMySqlTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToSourceMySqlTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToSource.MySql" - self.input = input - self.output: Optional[list["_models.ConnectToSourceNonSqlTaskOutput"]] = None - - -class ConnectToSourceNonSqlTaskOutput(_serialization.Model): - """Output for connect to MySQL type source. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar source_server_brand_version: Server brand version. - :vartype source_server_brand_version: str - :ivar server_properties: Server properties. - :vartype server_properties: ~azure.mgmt.datamigration.models.ServerProperties - :ivar databases: List of databases on the server. - :vartype databases: list[str] - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "server_properties": {"readonly": True}, - "databases": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "server_properties": {"key": "serverProperties", "type": "ServerProperties"}, - "databases": {"key": "databases", "type": "[str]"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.server_properties: Optional["_models.ServerProperties"] = None - self.databases: Optional[list[str]] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToSourceOracleSyncTaskInput(_serialization.Model): - """Input for the task that validates Oracle database connection. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to Oracle source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo - """ - - _validation = { - "source_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "OracleConnectionInfo"}, - } - - 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 - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - - -class ConnectToSourceOracleSyncTaskOutput(_serialization.Model): - """Output for the task that validates Oracle database connection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source_server_version: Version of the source server. - :vartype source_server_version: str - :ivar databases: List of schemas on source server. - :vartype databases: list[str] - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "source_server_version": {"readonly": True}, - "databases": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "databases": {"key": "databases", "type": "[str]"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.source_server_version: Optional[str] = None - self.databases: Optional[list[str]] = None - self.source_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToSourceOracleSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates Oracle database connection. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToSourceOracleSyncTaskInput"}, - "output": {"key": "output", "type": "[ConnectToSourceOracleSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToSourceOracleSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToSourceOracleSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToSource.Oracle.Sync" - self.input = input - self.output: Optional[list["_models.ConnectToSourceOracleSyncTaskOutput"]] = None - - -class ConnectToSourcePostgreSqlSyncTaskInput(_serialization.Model): - """Input for the task that validates connection to PostgreSQL and source server requirements. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Connection information for source PostgreSQL server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - "source_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - } - - 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 - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - - -class ConnectToSourcePostgreSqlSyncTaskOutput(_serialization.Model): - """Output for the task that validates connection to PostgreSQL and source server requirements. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar source_server_version: Version of the source server. - :vartype source_server_version: str - :ivar databases: List of databases on source server. - :vartype databases: list[str] - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "source_server_version": {"readonly": True}, - "databases": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "databases": {"key": "databases", "type": "[str]"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.source_server_version: Optional[str] = None - self.databases: Optional[list[str]] = None - self.source_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToSourcePostgreSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[ConnectToSourcePostgreSqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToSourcePostgreSqlSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToSourcePostgreSqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToSource.PostgreSql.Sync" - self.input = input - self.output: Optional[list["_models.ConnectToSourcePostgreSqlSyncTaskOutput"]] = None - - -class ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToSourceSqlServerTaskInput"}, - "output": {"key": "output", "type": "[ConnectToSourceSqlServerTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToSource.SqlServer.Sync" - self.input = input - self.output: Optional[list["_models.ConnectToSourceSqlServerTaskOutput"]] = None - - -class ConnectToSourceSqlServerTaskInput(_serialization.Model): - """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 server. - - :ivar source_connection_info: Connection information for Source SQL Server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar check_permissions_group: Permission group for validations. Known values are: "Default", - "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", - "MigrationFromMySQLToAzureDBForMySQL", and "MigrationFromSqlServerToAzureVM". - :vartype check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - :ivar collect_databases: Flag for whether to collect databases from source server. - :vartype collect_databases: bool - :ivar collect_logins: Flag for whether to collect logins from source server. - :vartype collect_logins: bool - :ivar collect_agent_jobs: Flag for whether to collect agent jobs from source server. - :vartype collect_agent_jobs: bool - :ivar collect_tde_certificate_info: Flag for whether to collect TDE Certificate names from - source server. - :vartype collect_tde_certificate_info: bool - :ivar validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on the - source server. - :vartype validate_ssis_catalog_only: bool - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - """ - - _validation = { - "source_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "check_permissions_group": {"key": "checkPermissionsGroup", "type": "str"}, - "collect_databases": {"key": "collectDatabases", "type": "bool"}, - "collect_logins": {"key": "collectLogins", "type": "bool"}, - "collect_agent_jobs": {"key": "collectAgentJobs", "type": "bool"}, - "collect_tde_certificate_info": {"key": "collectTdeCertificateInfo", "type": "bool"}, - "validate_ssis_catalog_only": {"key": "validateSsisCatalogOnly", "type": "bool"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = None, - collect_databases: bool = True, - collect_logins: bool = False, - collect_agent_jobs: bool = False, - collect_tde_certificate_info: bool = False, - validate_ssis_catalog_only: bool = False, - encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Connection information for Source SQL Server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword check_permissions_group: Permission group for validations. Known values are: - "Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", - "MigrationFromMySQLToAzureDBForMySQL", and "MigrationFromSqlServerToAzureVM". - :paramtype check_permissions_group: str or - ~azure.mgmt.datamigration.models.ServerLevelPermissionsGroup - :keyword collect_databases: Flag for whether to collect databases from source server. - :paramtype collect_databases: bool - :keyword collect_logins: Flag for whether to collect logins from source server. - :paramtype collect_logins: bool - :keyword collect_agent_jobs: Flag for whether to collect agent jobs from source server. - :paramtype collect_agent_jobs: bool - :keyword collect_tde_certificate_info: Flag for whether to collect TDE Certificate names from - source server. - :paramtype collect_tde_certificate_info: bool - :keyword validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on - the source server. - :paramtype validate_ssis_catalog_only: bool - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.check_permissions_group = check_permissions_group - self.collect_databases = collect_databases - self.collect_logins = collect_logins - self.collect_agent_jobs = collect_agent_jobs - self.collect_tde_certificate_info = collect_tde_certificate_info - self.validate_ssis_catalog_only = validate_ssis_catalog_only - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - - -class ConnectToSourceSqlServerTaskOutput(_serialization.Model): - """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, - ConnectToSourceSqlServerTaskOutputDatabaseLevel, ConnectToSourceSqlServerTaskOutputLoginLevel, - ConnectToSourceSqlServerTaskOutputTaskLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Type of result - database level or task level. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "AgentJobLevelOutput": "ConnectToSourceSqlServerTaskOutputAgentJobLevel", - "DatabaseLevelOutput": "ConnectToSourceSqlServerTaskOutputDatabaseLevel", - "LoginLevelOutput": "ConnectToSourceSqlServerTaskOutputLoginLevel", - "TaskLevelOutput": "ConnectToSourceSqlServerTaskOutputTaskLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class ConnectToSourceSqlServerTaskOutputAgentJobLevel( - ConnectToSourceSqlServerTaskOutput -): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Type of result - database level or task level. Required. - :vartype result_type: str - :ivar name: Agent Job name. - :vartype name: str - :ivar job_category: The type of Agent Job. - :vartype job_category: str - :ivar is_enabled: The state of the original Agent Job. - :vartype is_enabled: bool - :ivar job_owner: The owner of the Agent Job. - :vartype job_owner: str - :ivar last_executed_on: UTC Date and time when the Agent Job was last executed. - :vartype last_executed_on: ~datetime.datetime - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar migration_eligibility: Information about eligibility of agent job for migration. - :vartype migration_eligibility: ~azure.mgmt.datamigration.models.MigrationEligibilityInfo - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "name": {"readonly": True}, - "job_category": {"readonly": True}, - "is_enabled": {"readonly": True}, - "job_owner": {"readonly": True}, - "last_executed_on": {"readonly": True}, - "validation_errors": {"readonly": True}, - "migration_eligibility": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "job_category": {"key": "jobCategory", "type": "str"}, - "is_enabled": {"key": "isEnabled", "type": "bool"}, - "job_owner": {"key": "jobOwner", "type": "str"}, - "last_executed_on": {"key": "lastExecutedOn", "type": "iso-8601"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - "migration_eligibility": {"key": "migrationEligibility", "type": "MigrationEligibilityInfo"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "AgentJobLevelOutput" - self.name: Optional[str] = None - self.job_category: Optional[str] = None - self.is_enabled: Optional[bool] = None - self.job_owner: Optional[str] = None - self.last_executed_on: Optional[datetime.datetime] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - self.migration_eligibility: Optional["_models.MigrationEligibilityInfo"] = None - - -class ConnectToSourceSqlServerTaskOutputDatabaseLevel( - ConnectToSourceSqlServerTaskOutput -): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Type of result - database level or task level. Required. - :vartype result_type: str - :ivar name: Database name. - :vartype name: str - :ivar size_mb: Size of the file in megabytes. - :vartype size_mb: float - :ivar database_files: The list of database files. - :vartype database_files: list[~azure.mgmt.datamigration.models.DatabaseFileInfo] - :ivar compatibility_level: SQL Server compatibility level of database. Known values are: - "CompatLevel80", "CompatLevel90", "CompatLevel100", "CompatLevel110", "CompatLevel120", - "CompatLevel130", and "CompatLevel140". - :vartype compatibility_level: str or ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :ivar database_state: State of the database. Known values are: "Online", "Restoring", - "Recovering", "RecoveryPending", "Suspect", "Emergency", "Offline", "Copying", and - "OfflineSecondary". - :vartype database_state: str or ~azure.mgmt.datamigration.models.DatabaseState - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "name": {"readonly": True}, - "size_mb": {"readonly": True}, - "database_files": {"readonly": True}, - "compatibility_level": {"readonly": True}, - "database_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "size_mb": {"key": "sizeMB", "type": "float"}, - "database_files": {"key": "databaseFiles", "type": "[DatabaseFileInfo]"}, - "compatibility_level": {"key": "compatibilityLevel", "type": "str"}, - "database_state": {"key": "databaseState", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.name: Optional[str] = None - self.size_mb: Optional[float] = None - self.database_files: Optional[list["_models.DatabaseFileInfo"]] = None - self.compatibility_level: Optional[Union[str, "_models.DatabaseCompatLevel"]] = None - self.database_state: Optional[Union[str, "_models.DatabaseState"]] = None - - -class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Type of result - database level or task level. Required. - :vartype result_type: str - :ivar name: Login name. - :vartype name: str - :ivar login_type: The type of login. Known values are: "WindowsUser", "WindowsGroup", - "SqlLogin", "Certificate", "AsymmetricKey", "ExternalUser", and "ExternalGroup". - :vartype login_type: str or ~azure.mgmt.datamigration.models.LoginType - :ivar default_database: The default database for the login. - :vartype default_database: str - :ivar is_enabled: The state of the login. - :vartype is_enabled: bool - :ivar migration_eligibility: Information about eligibility of login for migration. - :vartype migration_eligibility: ~azure.mgmt.datamigration.models.MigrationEligibilityInfo - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "name": {"readonly": True}, - "login_type": {"readonly": True}, - "default_database": {"readonly": True}, - "is_enabled": {"readonly": True}, - "migration_eligibility": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "login_type": {"key": "loginType", "type": "str"}, - "default_database": {"key": "defaultDatabase", "type": "str"}, - "is_enabled": {"key": "isEnabled", "type": "bool"}, - "migration_eligibility": {"key": "migrationEligibility", "type": "MigrationEligibilityInfo"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "LoginLevelOutput" - self.name: Optional[str] = None - self.login_type: Optional[Union[str, "_models.LoginType"]] = None - self.default_database: Optional[str] = None - self.is_enabled: Optional[bool] = None - self.migration_eligibility: Optional["_models.MigrationEligibilityInfo"] = None - - -class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOutput): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Type of result - database level or task level. Required. - :vartype result_type: str - :ivar databases: Source databases as a map from database name to database id. - :vartype databases: str - :ivar logins: Source logins as a map from login name to login id. - :vartype logins: str - :ivar agent_jobs: Source agent jobs as a map from agent job name to id. - :vartype agent_jobs: str - :ivar database_tde_certificate_mapping: Mapping from database name to TDE certificate name, if - applicable. - :vartype database_tde_certificate_mapping: str - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "databases": {"readonly": True}, - "logins": {"readonly": True}, - "agent_jobs": {"readonly": True}, - "database_tde_certificate_mapping": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "databases": {"key": "databases", "type": "str"}, - "logins": {"key": "logins", "type": "str"}, - "agent_jobs": {"key": "agentJobs", "type": "str"}, - "database_tde_certificate_mapping": {"key": "databaseTdeCertificateMapping", "type": "str"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TaskLevelOutput" - self.databases: Optional[str] = None - self.logins: Optional[str] = None - self.agent_jobs: Optional[str] = None - self.database_tde_certificate_mapping: Optional[str] = None - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskOutput] - :ivar task_id: Task id. - :vartype task_id: str - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToSourceSqlServerTaskInput"}, - "output": {"key": "output", "type": "[ConnectToSourceSqlServerTaskOutput]"}, - "task_id": {"key": "taskId", "type": "str"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, - task_id: Optional[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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToSourceSqlServerTaskInput - :keyword task_id: Task id. - :paramtype task_id: str - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToSource.SqlServer" - self.input = input - self.output: Optional[list["_models.ConnectToSourceSqlServerTaskOutput"]] = None - self.task_id = task_id - - -class ConnectToTargetAzureDbForMySqlTaskInput(_serialization.Model): - """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 server. - - :ivar source_connection_info: Connection information for source MySQL server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar target_connection_info: Connection information for target Azure Database for MySQL - server. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar is_offline_migration: Flag for whether or not the migration is offline. - :vartype is_offline_migration: bool - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "MySqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "MySqlConnectionInfo"}, - "is_offline_migration": {"key": "isOfflineMigration", "type": "bool"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.MySqlConnectionInfo", - target_connection_info: "_models.MySqlConnectionInfo", - is_offline_migration: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Connection information for source MySQL server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword target_connection_info: Connection information for target Azure Database for MySQL - server. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword is_offline_migration: Flag for whether or not the migration is offline. - :paramtype is_offline_migration: bool - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.is_offline_migration = is_offline_migration - - -class ConnectToTargetAzureDbForMySqlTaskOutput(_serialization.Model): - """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. - - :ivar id: Result identifier. - :vartype id: str - :ivar server_version: Version of the target server. - :vartype server_version: str - :ivar databases: List of databases on target server. - :vartype databases: list[str] - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "server_version": {"readonly": True}, - "databases": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "databases": {"key": "databases", "type": "[str]"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.server_version: Optional[str] = None - self.databases: Optional[list[str]] = None - self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetAzureDbForMySqlTaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetAzureDbForMySqlTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetAzureDbForMySqlTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForMySqlTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.AzureDbForMySql" - self.input = input - self.output: Optional[list["_models.ConnectToTargetAzureDbForMySqlTaskOutput"]] = None - - -class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): # pylint: disable=name-too-long - """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 server. - - :ivar source_connection_info: Connection information for source PostgreSQL server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL - server. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.PostgreSqlConnectionInfo", - target_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 - :keyword target_connection_info: Connection information for target Azure Database for - PostgreSQL server. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - - -class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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. - - :ivar id: Result identifier. - :vartype id: str - :ivar target_server_version: Version of the target server. - :vartype target_server_version: str - :ivar databases: List of databases on target server. - :vartype databases: list[str] - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "target_server_version": {"readonly": True}, - "databases": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "databases": {"key": "databases", "type": "[str]"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.target_server_version: Optional[str] = None - self.databases: Optional[list[str]] = None - self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: - ~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetAzureDbForPostgreSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: - ~azure.mgmt.datamigration.models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.AzureDbForPostgreSql.Sync" - self.input = input - self.output: Optional[list["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput"]] = None - - -class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): # pylint: disable=name-too-long - """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 server. - - :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL - server. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - - _validation = { - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "target_connection_info": {"key": "targetConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - } - - 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. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - """ - super().__init__(**kwargs) - self.target_connection_info = target_connection_info - - -class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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. - - :ivar target_server_version: Version of the target server. - :vartype target_server_version: str - :ivar databases: List of databases on target server. - :vartype databases: list[str] - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar database_schema_map: Mapping of schemas per database. - :vartype database_schema_map: - list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem] - """ - - _validation = { - "target_server_version": {"readonly": True}, - "databases": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "databases": {"key": "databases", "type": "[str]"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - "database_schema_map": { - "key": "databaseSchemaMap", - "type": "[ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem]", - }, - } - - def __init__( - self, - *, - database_schema_map: Optional[ - list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem"] - ] = None, - **kwargs: Any - ) -> None: - """ - :keyword database_schema_map: Mapping of schemas per database. - :paramtype database_schema_map: - list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem] - """ - super().__init__(**kwargs) - self.target_server_version: Optional[str] = None - self.databases: Optional[list[str]] = None - self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - self.database_schema_map = database_schema_map - - -class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem( - _serialization.Model -): # pylint: disable=name-too-long - """ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem. - - :ivar database: - :vartype database: str - :ivar schemas: - :vartype schemas: list[str] - """ - - _attribute_map = { - "database": {"key": "database", "type": "str"}, - "schemas": {"key": "schemas", "type": "[str]"}, - } - - def __init__(self, *, database: Optional[str] = None, schemas: Optional[list[str]] = None, **kwargs: Any) -> None: - """ - :keyword database: - :paramtype database: str - :keyword schemas: - :paramtype schemas: list[str] - """ - super().__init__(**kwargs) - self.database = database - self.schemas = schemas - - -class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties( - ProjectTaskProperties -): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: - ~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: - ~azure.mgmt.datamigration.models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync" - self.input = input - self.output: Optional[list["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput"]] = None - - -class ConnectToTargetSqlDbSyncTaskInput(_serialization.Model): - """Input for the task that validates connection to Azure SQL DB and target server requirements. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Connection information for source SQL Server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Connection information for target SQL DB. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Connection information for source SQL Server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Connection information for target SQL DB. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - - -class ConnectToTargetSqlDbSyncTaskProperties(ProjectTaskProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetSqlDbSyncTaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetSqlDbTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetSqlDbSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.SqlDb.Sync" - self.input = input - self.output: Optional[list["_models.ConnectToTargetSqlDbTaskOutput"]] = None - - -class ConnectToTargetSqlDbTaskInput(_serialization.Model): - """Input for the task that validates connection to SQL DB and target server requirements. - - All required parameters must be populated in order to send to server. - - :ivar target_connection_info: Connection information for target SQL DB. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar query_object_counts: Boolean flag indicating whether to query object counts for each - database on the target server. - :vartype query_object_counts: bool - """ - - _validation = { - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "query_object_counts": {"key": "queryObjectCounts", "type": "bool"}, - } - - def __init__( - self, - *, - target_connection_info: "_models.SqlConnectionInfo", - query_object_counts: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword target_connection_info: Connection information for target SQL DB. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword query_object_counts: Boolean flag indicating whether to query object counts for each - database on the target server. - :paramtype query_object_counts: bool - """ - super().__init__(**kwargs) - self.target_connection_info = target_connection_info - self.query_object_counts = query_object_counts - - -class ConnectToTargetSqlDbTaskOutput(_serialization.Model): - """Output for the task that validates connection to SQL DB and target server requirements. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar databases: Source databases as a map from database name to database id. - :vartype databases: str - :ivar target_server_version: Version of the target server. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - """ - - _validation = { - "id": {"readonly": True}, - "databases": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "databases": {"key": "databases", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.databases: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - - -class ConnectToTargetSqlDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL DB and target server requirements. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskOutput] - :ivar created_on: DateTime in UTC when the task was created. - :vartype created_on: str - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetSqlDbTaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetSqlDbTaskOutput]"}, - "created_on": {"key": "createdOn", "type": "str"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetSqlDbTaskInput"] = None, - created_on: Optional[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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlDbTaskInput - :keyword created_on: DateTime in UTC when the task was created. - :paramtype created_on: str - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.SqlDb" - self.input = input - self.output: Optional[list["_models.ConnectToTargetSqlDbTaskOutput"]] = None - self.created_on = created_on - - -class ConnectToTargetSqlMISyncTaskInput(_serialization.Model): - """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 server. - - :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - "target_connection_info": {"required": True}, - "azure_app": {"required": True}, - } - - _attribute_map = { - "target_connection_info": {"key": "targetConnectionInfo", "type": "MiSqlConnectionInfo"}, - "azure_app": {"key": "azureApp", "type": "AzureActiveDirectoryApp"}, - } - - def __init__( - self, - *, - target_connection_info: "_models.MiSqlConnectionInfo", - azure_app: "_models.AzureActiveDirectoryApp", - **kwargs: Any - ) -> None: - """ - :keyword target_connection_info: Connection information for Azure SQL Database Managed - Instance. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :keyword azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :paramtype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - super().__init__(**kwargs) - self.target_connection_info = target_connection_info - self.azure_app = azure_app - - -class ConnectToTargetSqlMISyncTaskOutput(_serialization.Model): - """Output for the task that validates connection to Azure SQL Database Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToTargetSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure SQL Database Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetSqlMISyncTaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetSqlMISyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetSqlMISyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlMISyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.AzureSqlDbMI.Sync.LRS" - self.input = input - self.output: Optional[list["_models.ConnectToTargetSqlMISyncTaskOutput"]] = None - - -class ConnectToTargetSqlMITaskInput(_serialization.Model): - """Input for the task that validates connection to Azure SQL Database Managed Instance. - - All required parameters must be populated in order to send to server. - - :ivar target_connection_info: Connection information for target SQL Server. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar collect_logins: Flag for whether to collect logins from target SQL MI server. - :vartype collect_logins: bool - :ivar collect_agent_jobs: Flag for whether to collect agent jobs from target SQL MI server. - :vartype collect_agent_jobs: bool - :ivar validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on the - target SQL MI server. - :vartype validate_ssis_catalog_only: bool - """ - - _validation = { - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "collect_logins": {"key": "collectLogins", "type": "bool"}, - "collect_agent_jobs": {"key": "collectAgentJobs", "type": "bool"}, - "validate_ssis_catalog_only": {"key": "validateSsisCatalogOnly", "type": "bool"}, - } - - def __init__( - self, - *, - target_connection_info: "_models.SqlConnectionInfo", - collect_logins: bool = True, - collect_agent_jobs: bool = True, - validate_ssis_catalog_only: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword target_connection_info: Connection information for target SQL Server. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword collect_logins: Flag for whether to collect logins from target SQL MI server. - :paramtype collect_logins: bool - :keyword collect_agent_jobs: Flag for whether to collect agent jobs from target SQL MI server. - :paramtype collect_agent_jobs: bool - :keyword validate_ssis_catalog_only: Flag for whether to validate SSIS catalog is reachable on - the target SQL MI server. - :paramtype validate_ssis_catalog_only: bool - """ - super().__init__(**kwargs) - self.target_connection_info = target_connection_info - self.collect_logins = collect_logins - self.collect_agent_jobs = collect_agent_jobs - self.validate_ssis_catalog_only = validate_ssis_catalog_only - - -class ConnectToTargetSqlMITaskOutput(_serialization.Model): - """Output for the task that validates connection to Azure SQL Database Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar logins: List of logins on the target server. - :vartype logins: list[str] - :ivar agent_jobs: List of agent jobs on the target server. - :vartype agent_jobs: list[str] - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "logins": {"readonly": True}, - "agent_jobs": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "logins": {"key": "logins", "type": "[str]"}, - "agent_jobs": {"key": "agentJobs", "type": "[str]"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.logins: Optional[list[str]] = None - self.agent_jobs: Optional[list[str]] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ConnectToTargetSqlMITaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure SQL Database Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ConnectToTargetSqlMITaskInput"}, - "output": {"key": "output", "type": "[ConnectToTargetSqlMITaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ConnectToTargetSqlMITaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ConnectToTargetSqlMITaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ConnectToTarget.AzureSqlDbMI" - self.input = input - self.output: Optional[list["_models.ConnectToTargetSqlMITaskOutput"]] = None - - -class CopyProgressDetails(_serialization.Model): - """Details on progress of ADF copy activity. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar table_name: Table Name. - :vartype table_name: str - :ivar status: Status of the Copy activity (InProgress, Succeeded, Failed, Canceled). - :vartype status: str - :ivar parallel_copy_type: Type of parallel copy (Dynamic range, Physical partition, none). - :vartype parallel_copy_type: str - :ivar used_parallel_copies: The degree of parallelization. - :vartype used_parallel_copies: int - :ivar data_read: Bytes read. - :vartype data_read: int - :ivar data_written: Bytes written. - :vartype data_written: int - :ivar rows_read: Rows read. - :vartype rows_read: int - :ivar rows_copied: Rows Copied. - :vartype rows_copied: int - :ivar copy_start: Copy Start. - :vartype copy_start: ~datetime.datetime - :ivar copy_throughput: Copy throughput in KBps. - :vartype copy_throughput: float - :ivar copy_duration: Copy Duration in seconds. - :vartype copy_duration: int - """ - - _validation = { - "table_name": {"readonly": True}, - "status": {"readonly": True}, - "parallel_copy_type": {"readonly": True}, - "used_parallel_copies": {"readonly": True}, - "data_read": {"readonly": True}, - "data_written": {"readonly": True}, - "rows_read": {"readonly": True}, - "rows_copied": {"readonly": True}, - "copy_start": {"readonly": True}, - "copy_throughput": {"readonly": True}, - "copy_duration": {"readonly": True}, - } - - _attribute_map = { - "table_name": {"key": "tableName", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "parallel_copy_type": {"key": "parallelCopyType", "type": "str"}, - "used_parallel_copies": {"key": "usedParallelCopies", "type": "int"}, - "data_read": {"key": "dataRead", "type": "int"}, - "data_written": {"key": "dataWritten", "type": "int"}, - "rows_read": {"key": "rowsRead", "type": "int"}, - "rows_copied": {"key": "rowsCopied", "type": "int"}, - "copy_start": {"key": "copyStart", "type": "iso-8601"}, - "copy_throughput": {"key": "copyThroughput", "type": "float"}, - "copy_duration": {"key": "copyDuration", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.table_name: Optional[str] = None - self.status: Optional[str] = None - self.parallel_copy_type: Optional[str] = None - self.used_parallel_copies: Optional[int] = None - self.data_read: Optional[int] = None - self.data_written: Optional[int] = None - self.rows_read: Optional[int] = None - self.rows_copied: Optional[int] = None - self.copy_start: Optional[datetime.datetime] = None - self.copy_throughput: Optional[float] = None - self.copy_duration: Optional[int] = None - - -class Database(_serialization.Model): - """Information about a single database. - - :ivar id: Unique identifier for the database. - :vartype id: str - :ivar name: Name of the database. - :vartype name: str - :ivar compatibility_level: SQL Server compatibility level of database. Known values are: - "CompatLevel80", "CompatLevel90", "CompatLevel100", "CompatLevel110", "CompatLevel120", - "CompatLevel130", and "CompatLevel140". - :vartype compatibility_level: str or ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :ivar collation: Collation name of the database. - :vartype collation: str - :ivar server_name: Name of the server. - :vartype server_name: str - :ivar fqdn: Fully qualified name. - :vartype fqdn: str - :ivar install_id: Install id of the database. - :vartype install_id: str - :ivar server_version: Version of the server. - :vartype server_version: str - :ivar server_edition: Edition of the server. - :vartype server_edition: str - :ivar server_level: Product level of the server (RTM, SP, CTP). - :vartype server_level: str - :ivar server_default_data_path: Default path of the data files. - :vartype server_default_data_path: str - :ivar server_default_log_path: Default path of the log files. - :vartype server_default_log_path: str - :ivar server_default_backup_path: Default path of the backup folder. - :vartype server_default_backup_path: str - :ivar server_core_count: Number of cores on the server. - :vartype server_core_count: int - :ivar server_visible_online_core_count: Number of cores on the server that have VISIBLE ONLINE - status. - :vartype server_visible_online_core_count: int - :ivar database_state: State of the database. Known values are: "Online", "Restoring", - "Recovering", "RecoveryPending", "Suspect", "Emergency", "Offline", "Copying", and - "OfflineSecondary". - :vartype database_state: str or ~azure.mgmt.datamigration.models.DatabaseState - :ivar server_id: The unique Server Id. - :vartype server_id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "compatibility_level": {"key": "compatibilityLevel", "type": "str"}, - "collation": {"key": "collation", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "install_id": {"key": "installId", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "server_edition": {"key": "serverEdition", "type": "str"}, - "server_level": {"key": "serverLevel", "type": "str"}, - "server_default_data_path": {"key": "serverDefaultDataPath", "type": "str"}, - "server_default_log_path": {"key": "serverDefaultLogPath", "type": "str"}, - "server_default_backup_path": {"key": "serverDefaultBackupPath", "type": "str"}, - "server_core_count": {"key": "serverCoreCount", "type": "int"}, - "server_visible_online_core_count": {"key": "serverVisibleOnlineCoreCount", "type": "int"}, - "database_state": {"key": "databaseState", "type": "str"}, - "server_id": {"key": "serverId", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - compatibility_level: Optional[Union[str, "_models.DatabaseCompatLevel"]] = None, - collation: Optional[str] = None, - server_name: Optional[str] = None, - fqdn: Optional[str] = None, - install_id: Optional[str] = None, - server_version: Optional[str] = None, - server_edition: Optional[str] = None, - server_level: Optional[str] = None, - server_default_data_path: Optional[str] = None, - server_default_log_path: Optional[str] = None, - server_default_backup_path: Optional[str] = None, - server_core_count: Optional[int] = None, - server_visible_online_core_count: Optional[int] = None, - database_state: Optional[Union[str, "_models.DatabaseState"]] = None, - server_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Unique identifier for the database. - :paramtype id: str - :keyword name: Name of the database. - :paramtype name: str - :keyword compatibility_level: SQL Server compatibility level of database. Known values are: - "CompatLevel80", "CompatLevel90", "CompatLevel100", "CompatLevel110", "CompatLevel120", - "CompatLevel130", and "CompatLevel140". - :paramtype compatibility_level: str or ~azure.mgmt.datamigration.models.DatabaseCompatLevel - :keyword collation: Collation name of the database. - :paramtype collation: str - :keyword server_name: Name of the server. - :paramtype server_name: str - :keyword fqdn: Fully qualified name. - :paramtype fqdn: str - :keyword install_id: Install id of the database. - :paramtype install_id: str - :keyword server_version: Version of the server. - :paramtype server_version: str - :keyword server_edition: Edition of the server. - :paramtype server_edition: str - :keyword server_level: Product level of the server (RTM, SP, CTP). - :paramtype server_level: str - :keyword server_default_data_path: Default path of the data files. - :paramtype server_default_data_path: str - :keyword server_default_log_path: Default path of the log files. - :paramtype server_default_log_path: str - :keyword server_default_backup_path: Default path of the backup folder. - :paramtype server_default_backup_path: str - :keyword server_core_count: Number of cores on the server. - :paramtype server_core_count: int - :keyword server_visible_online_core_count: Number of cores on the server that have VISIBLE - ONLINE status. - :paramtype server_visible_online_core_count: int - :keyword database_state: State of the database. Known values are: "Online", "Restoring", - "Recovering", "RecoveryPending", "Suspect", "Emergency", "Offline", "Copying", and - "OfflineSecondary". - :paramtype database_state: str or ~azure.mgmt.datamigration.models.DatabaseState - :keyword server_id: The unique Server Id. - :paramtype server_id: str - """ - super().__init__(**kwargs) - self.id = id - self.name = name - self.compatibility_level = compatibility_level - self.collation = collation - self.server_name = server_name - self.fqdn = fqdn - self.install_id = install_id - self.server_version = server_version - self.server_edition = server_edition - self.server_level = server_level - self.server_default_data_path = server_default_data_path - self.server_default_log_path = server_default_log_path - self.server_default_backup_path = server_default_backup_path - self.server_core_count = server_core_count - self.server_visible_online_core_count = server_visible_online_core_count - self.database_state = database_state - self.server_id = server_id - - -class DatabaseBackupInfo(_serialization.Model): - """Information about backup files when existing backup mode is used. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar database_name: Database name. - :vartype database_name: str - :ivar backup_type: Backup Type. Known values are: "Database", "TransactionLog", "File", - "DifferentialDatabase", "DifferentialFile", "Partial", and "DifferentialPartial". - :vartype backup_type: str or ~azure.mgmt.datamigration.models.BackupType - :ivar backup_files: The list of backup files for the current database. - :vartype backup_files: list[str] - :ivar position: Position of current database backup in the file. - :vartype position: int - :ivar is_damaged: Database was damaged when backed up, but the backup operation was requested - to continue despite errors. - :vartype is_damaged: bool - :ivar is_compressed: Whether the backup set is compressed. - :vartype is_compressed: bool - :ivar family_count: Number of files in the backup set. - :vartype family_count: int - :ivar backup_finish_date: Date and time when the backup operation finished. - :vartype backup_finish_date: ~datetime.datetime - """ - - _validation = { - "database_name": {"readonly": True}, - "backup_type": {"readonly": True}, - "backup_files": {"readonly": True}, - "position": {"readonly": True}, - "is_damaged": {"readonly": True}, - "is_compressed": {"readonly": True}, - "family_count": {"readonly": True}, - "backup_finish_date": {"readonly": True}, - } - - _attribute_map = { - "database_name": {"key": "databaseName", "type": "str"}, - "backup_type": {"key": "backupType", "type": "str"}, - "backup_files": {"key": "backupFiles", "type": "[str]"}, - "position": {"key": "position", "type": "int"}, - "is_damaged": {"key": "isDamaged", "type": "bool"}, - "is_compressed": {"key": "isCompressed", "type": "bool"}, - "family_count": {"key": "familyCount", "type": "int"}, - "backup_finish_date": {"key": "backupFinishDate", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.database_name: Optional[str] = None - self.backup_type: Optional[Union[str, "_models.BackupType"]] = None - self.backup_files: Optional[list[str]] = None - self.position: Optional[int] = None - self.is_damaged: Optional[bool] = None - self.is_compressed: Optional[bool] = None - self.family_count: Optional[int] = None - self.backup_finish_date: Optional[datetime.datetime] = None - - -class DatabaseFileInfo(_serialization.Model): - """Database file specific information. - - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar id: Unique identifier for database file. - :vartype id: str - :ivar logical_name: Logical name of the file. - :vartype logical_name: str - :ivar physical_full_name: Operating-system full path of the file. - :vartype physical_full_name: str - :ivar restore_full_name: Suggested full path of the file for restoring. - :vartype restore_full_name: str - :ivar file_type: Database file type. Known values are: "Rows", "Log", "Filestream", - "NotSupported", and "Fulltext". - :vartype file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - :ivar size_mb: Size of the file in megabytes. - :vartype size_mb: float - """ - - _attribute_map = { - "database_name": {"key": "databaseName", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "logical_name": {"key": "logicalName", "type": "str"}, - "physical_full_name": {"key": "physicalFullName", "type": "str"}, - "restore_full_name": {"key": "restoreFullName", "type": "str"}, - "file_type": {"key": "fileType", "type": "str"}, - "size_mb": {"key": "sizeMB", "type": "float"}, - } - - def __init__( - self, - *, - database_name: Optional[str] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - logical_name: Optional[str] = None, - physical_full_name: Optional[str] = None, - restore_full_name: Optional[str] = None, - file_type: Optional[Union[str, "_models.DatabaseFileType"]] = None, - size_mb: Optional[float] = None, - **kwargs: Any - ) -> None: - """ - :keyword database_name: Name of the database. - :paramtype database_name: str - :keyword id: Unique identifier for database file. - :paramtype id: str - :keyword logical_name: Logical name of the file. - :paramtype logical_name: str - :keyword physical_full_name: Operating-system full path of the file. - :paramtype physical_full_name: str - :keyword restore_full_name: Suggested full path of the file for restoring. - :paramtype restore_full_name: str - :keyword file_type: Database file type. Known values are: "Rows", "Log", "Filestream", - "NotSupported", and "Fulltext". - :paramtype file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - :keyword size_mb: Size of the file in megabytes. - :paramtype size_mb: float - """ - super().__init__(**kwargs) - self.database_name = database_name - self.id = id - self.logical_name = logical_name - self.physical_full_name = physical_full_name - self.restore_full_name = restore_full_name - self.file_type = file_type - self.size_mb = size_mb - - -class DatabaseFileInput(_serialization.Model): - """Database file specific information for input. - - :ivar id: Unique identifier for database file. - :vartype id: str - :ivar logical_name: Logical name of the file. - :vartype logical_name: str - :ivar physical_full_name: Operating-system full path of the file. - :vartype physical_full_name: str - :ivar restore_full_name: Suggested full path of the file for restoring. - :vartype restore_full_name: str - :ivar file_type: Database file type. Known values are: "Rows", "Log", "Filestream", - "NotSupported", and "Fulltext". - :vartype file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "logical_name": {"key": "logicalName", "type": "str"}, - "physical_full_name": {"key": "physicalFullName", "type": "str"}, - "restore_full_name": {"key": "restoreFullName", "type": "str"}, - "file_type": {"key": "fileType", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - logical_name: Optional[str] = None, - physical_full_name: Optional[str] = None, - restore_full_name: Optional[str] = None, - file_type: Optional[Union[str, "_models.DatabaseFileType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Unique identifier for database file. - :paramtype id: str - :keyword logical_name: Logical name of the file. - :paramtype logical_name: str - :keyword physical_full_name: Operating-system full path of the file. - :paramtype physical_full_name: str - :keyword restore_full_name: Suggested full path of the file for restoring. - :paramtype restore_full_name: str - :keyword file_type: Database file type. Known values are: "Rows", "Log", "Filestream", - "NotSupported", and "Fulltext". - :paramtype file_type: str or ~azure.mgmt.datamigration.models.DatabaseFileType - """ - super().__init__(**kwargs) - self.id = id - self.logical_name = logical_name - self.physical_full_name = physical_full_name - self.restore_full_name = restore_full_name - self.file_type = file_type - - -class DatabaseInfo(_serialization.Model): - """Project Database Details. - - All required parameters must be populated in order to send to server. - - :ivar source_database_name: Name of the database. Required. - :vartype source_database_name: str - """ - - _validation = { - "source_database_name": {"required": True}, - } - - _attribute_map = { - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - } - - def __init__(self, *, source_database_name: str, **kwargs: Any) -> None: - """ - :keyword source_database_name: Name of the database. Required. - :paramtype source_database_name: str - """ - super().__init__(**kwargs) - self.source_database_name = source_database_name - - -class Resource(_serialization.Model): - """Common fields that are returned in the response for all Azure Resource Manager resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.system_data: Optional["_models.SystemData"] = None - - -class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have - tags and a location. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - """ - - -class DatabaseMigration(ProxyResource): - """Database Migration Resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - :ivar properties: Database Migration Resource properties. - :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DatabaseMigrationProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DatabaseMigrationProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Database Migration Resource properties. - :paramtype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DatabaseMigrationBase(ProxyResource): - """Database Migration Resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - :ivar properties: Database Migration Base Resource properties. - :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationBaseProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DatabaseMigrationBaseProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.DatabaseMigrationBaseProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Database Migration Base Resource properties. - :paramtype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationBaseProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DatabaseMigrationBaseListResult(_serialization.Model): - """A list of Database Migrations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: - :vartype value: list[~azure.mgmt.datamigration.models.DatabaseMigrationBase] - :ivar next_link: - :vartype next_link: str - """ - - _validation = { - "value": {"readonly": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DatabaseMigrationBase]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.DatabaseMigrationBase"]] = None - self.next_link: Optional[str] = None - - -class DatabaseMigrationBaseProperties(_serialization.Model): - """Database Migration Base Resource properties. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - DatabaseMigrationProperties, DatabaseMigrationPropertiesCosmosDbMongo - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - """ - - _validation = { - "kind": {"required": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "scope": {"key": "scope", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "migration_status": {"key": "migrationStatus", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_service": {"key": "migrationService", "type": "str"}, - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "provisioningError", "type": "str"}, - } - - _subtype_map = { - "kind": { - "DatabaseMigrationProperties": "DatabaseMigrationProperties", - "MongoToCosmosDbMongo": "DatabaseMigrationPropertiesCosmosDbMongo", - } - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - """ - super().__init__(**kwargs) - self.kind: Optional[str] = None - self.scope = scope - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.migration_status: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.migration_service = migration_service - self.migration_operation_id = migration_operation_id - self.migration_failure_error: Optional["_models.ErrorInfo"] = None - self.provisioning_error = provisioning_error - - -class DatabaseMigrationCosmosDbMongo(ProxyResource): - """Database Migration Resource for Mongo to CosmosDb. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - :ivar kind: Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - :ivar source_mongo_connection: Source Mongo connection details. - :vartype source_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :ivar target_mongo_connection: Target Cosmos DB Mongo connection details. - :vartype target_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :ivar collection_list: List of Mongo Collections to be migrated. - :vartype collection_list: list[~azure.mgmt.datamigration.models.MongoMigrationCollection] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "kind": {"key": "properties.kind", "type": "str"}, - "scope": {"key": "properties.scope", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "migration_status": {"key": "properties.migrationStatus", "type": "str"}, - "started_on": {"key": "properties.startedOn", "type": "iso-8601"}, - "ended_on": {"key": "properties.endedOn", "type": "iso-8601"}, - "migration_service": {"key": "properties.migrationService", "type": "str"}, - "migration_operation_id": {"key": "properties.migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "properties.migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "properties.provisioningError", "type": "str"}, - "source_mongo_connection": {"key": "properties.sourceMongoConnection", "type": "MongoConnectionInformation"}, - "target_mongo_connection": {"key": "properties.targetMongoConnection", "type": "MongoConnectionInformation"}, - "collection_list": {"key": "properties.collectionList", "type": "[MongoMigrationCollection]"}, - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - source_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, - target_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, - collection_list: Optional[list["_models.MongoMigrationCollection"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - :keyword source_mongo_connection: Source Mongo connection details. - :paramtype source_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :keyword target_mongo_connection: Target Cosmos DB Mongo connection details. - :paramtype target_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :keyword collection_list: List of Mongo Collections to be migrated. - :paramtype collection_list: list[~azure.mgmt.datamigration.models.MongoMigrationCollection] - """ - super().__init__(**kwargs) - self.kind: Optional[str] = None - self.scope = scope - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.migration_status: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.migration_service = migration_service - self.migration_operation_id = migration_operation_id - self.migration_failure_error: Optional["_models.ErrorInfo"] = None - self.provisioning_error = provisioning_error - self.source_mongo_connection = source_mongo_connection - self.target_mongo_connection = target_mongo_connection - self.collection_list = collection_list - - -class DatabaseMigrationCosmosDbMongoListResult(_serialization.Model): - """A list of Database Migrations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: - :vartype value: list[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :ivar next_link: - :vartype next_link: str - """ - - _validation = { - "value": {"readonly": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DatabaseMigrationCosmosDbMongo]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.DatabaseMigrationCosmosDbMongo"]] = None - self.next_link: Optional[str] = None - - -class DatabaseMigrationListResult(_serialization.Model): - """A list of Database Migrations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: - :vartype value: list[~azure.mgmt.datamigration.models.DatabaseMigration] - :ivar next_link: - :vartype next_link: str - """ - - _validation = { - "value": {"readonly": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[DatabaseMigration]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.DatabaseMigration"]] = None - self.next_link: Optional[str] = None - - -class DatabaseMigrationProperties(DatabaseMigrationBaseProperties): - """Database Migration Resource properties. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - DatabaseMigrationPropertiesSqlDb, DatabaseMigrationPropertiesSqlMi, - DatabaseMigrationPropertiesSqlVm - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - :ivar source_sql_connection: Source SQL Server connection details. - :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar source_server_name: Name of the source sql server. - :vartype source_server_name: str - :ivar target_database_collation: Database collation to be used for the target database. - :vartype target_database_collation: str - :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :vartype sql_server_instance_id: str - """ - - _validation = { - "kind": {"required": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - "source_server_name": {"readonly": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "scope": {"key": "scope", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "migration_status": {"key": "migrationStatus", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_service": {"key": "migrationService", "type": "str"}, - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "provisioningError", "type": "str"}, - "source_sql_connection": {"key": "sourceSqlConnection", "type": "SqlConnectionInformation"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, - "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, - } - - _subtype_map = { - "kind": { - "SqlDb": "DatabaseMigrationPropertiesSqlDb", - "SqlMi": "DatabaseMigrationPropertiesSqlMi", - "SqlVm": "DatabaseMigrationPropertiesSqlVm", - } - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, - source_database_name: Optional[str] = None, - target_database_collation: Optional[str] = None, - sql_server_instance_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - :keyword source_sql_connection: Source SQL Server connection details. - :paramtype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :keyword source_database_name: Name of the source database. - :paramtype source_database_name: str - :keyword target_database_collation: Database collation to be used for the target database. - :paramtype target_database_collation: str - :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :paramtype sql_server_instance_id: str - """ - super().__init__( - scope=scope, - migration_service=migration_service, - migration_operation_id=migration_operation_id, - provisioning_error=provisioning_error, - **kwargs - ) - self.kind: str = "DatabaseMigrationProperties" - self.source_sql_connection = source_sql_connection - self.source_database_name = source_database_name - self.source_server_name: Optional[str] = None - self.target_database_collation = target_database_collation - self.sql_server_instance_id = sql_server_instance_id - - -class DatabaseMigrationPropertiesCosmosDbMongo(DatabaseMigrationBaseProperties): - """Database Migration Resource properties for CosmosDb for Mongo. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - :ivar source_mongo_connection: Source Mongo connection details. - :vartype source_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :ivar target_mongo_connection: Target Cosmos DB Mongo connection details. - :vartype target_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :ivar collection_list: List of Mongo Collections to be migrated. - :vartype collection_list: list[~azure.mgmt.datamigration.models.MongoMigrationCollection] - """ - - _validation = { - "kind": {"required": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "scope": {"key": "scope", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "migration_status": {"key": "migrationStatus", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_service": {"key": "migrationService", "type": "str"}, - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "provisioningError", "type": "str"}, - "source_mongo_connection": {"key": "sourceMongoConnection", "type": "MongoConnectionInformation"}, - "target_mongo_connection": {"key": "targetMongoConnection", "type": "MongoConnectionInformation"}, - "collection_list": {"key": "collectionList", "type": "[MongoMigrationCollection]"}, - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - source_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, - target_mongo_connection: Optional["_models.MongoConnectionInformation"] = None, - collection_list: Optional[list["_models.MongoMigrationCollection"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - :keyword source_mongo_connection: Source Mongo connection details. - :paramtype source_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :keyword target_mongo_connection: Target Cosmos DB Mongo connection details. - :paramtype target_mongo_connection: ~azure.mgmt.datamigration.models.MongoConnectionInformation - :keyword collection_list: List of Mongo Collections to be migrated. - :paramtype collection_list: list[~azure.mgmt.datamigration.models.MongoMigrationCollection] - """ - super().__init__( - scope=scope, - migration_service=migration_service, - migration_operation_id=migration_operation_id, - provisioning_error=provisioning_error, - **kwargs - ) - self.kind: str = "MongoToCosmosDbMongo" - self.source_mongo_connection = source_mongo_connection - self.target_mongo_connection = target_mongo_connection - self.collection_list = collection_list - - -class DatabaseMigrationPropertiesSqlDb(DatabaseMigrationProperties): - """Database Migration Resource properties for SQL database. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - :ivar source_sql_connection: Source SQL Server connection details. - :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar source_server_name: Name of the source sql server. - :vartype source_server_name: str - :ivar target_database_collation: Database collation to be used for the target database. - :vartype target_database_collation: str - :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :vartype sql_server_instance_id: str - :ivar migration_status_details: Detailed migration status. Not included by default. - :vartype migration_status_details: ~azure.mgmt.datamigration.models.SqlDbMigrationStatusDetails - :ivar target_sql_connection: Target SQL DB connection details. - :vartype target_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :ivar offline_configuration: Offline configuration. - :vartype offline_configuration: ~azure.mgmt.datamigration.models.SqlDbOfflineConfiguration - :ivar table_list: List of tables to copy. - :vartype table_list: list[str] - """ - - _validation = { - "kind": {"required": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - "source_server_name": {"readonly": True}, - "migration_status_details": {"readonly": True}, - "offline_configuration": {"readonly": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "scope": {"key": "scope", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "migration_status": {"key": "migrationStatus", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_service": {"key": "migrationService", "type": "str"}, - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "provisioningError", "type": "str"}, - "source_sql_connection": {"key": "sourceSqlConnection", "type": "SqlConnectionInformation"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, - "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, - "migration_status_details": {"key": "migrationStatusDetails", "type": "SqlDbMigrationStatusDetails"}, - "target_sql_connection": {"key": "targetSqlConnection", "type": "SqlConnectionInformation"}, - "offline_configuration": {"key": "offlineConfiguration", "type": "SqlDbOfflineConfiguration"}, - "table_list": {"key": "tableList", "type": "[str]"}, - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, - source_database_name: Optional[str] = None, - target_database_collation: Optional[str] = None, - sql_server_instance_id: Optional[str] = None, - target_sql_connection: Optional["_models.SqlConnectionInformation"] = None, - table_list: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - :keyword source_sql_connection: Source SQL Server connection details. - :paramtype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :keyword source_database_name: Name of the source database. - :paramtype source_database_name: str - :keyword target_database_collation: Database collation to be used for the target database. - :paramtype target_database_collation: str - :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :paramtype sql_server_instance_id: str - :keyword target_sql_connection: Target SQL DB connection details. - :paramtype target_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :keyword table_list: List of tables to copy. - :paramtype table_list: list[str] - """ - super().__init__( - scope=scope, - migration_service=migration_service, - migration_operation_id=migration_operation_id, - provisioning_error=provisioning_error, - source_sql_connection=source_sql_connection, - source_database_name=source_database_name, - target_database_collation=target_database_collation, - sql_server_instance_id=sql_server_instance_id, - **kwargs - ) - self.kind: str = "SqlDb" - self.migration_status_details: Optional["_models.SqlDbMigrationStatusDetails"] = None - self.target_sql_connection = target_sql_connection - self.offline_configuration: Optional["_models.SqlDbOfflineConfiguration"] = None - self.table_list = table_list - - -class DatabaseMigrationPropertiesSqlMi(DatabaseMigrationProperties): - """Database Migration Resource properties for SQL Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - :ivar source_sql_connection: Source SQL Server connection details. - :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar source_server_name: Name of the source sql server. - :vartype source_server_name: str - :ivar target_database_collation: Database collation to be used for the target database. - :vartype target_database_collation: str - :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :vartype sql_server_instance_id: str - :ivar migration_status_details: Detailed migration status. Not included by default. - :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails - :ivar backup_configuration: Backup configuration info. - :vartype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration - :ivar offline_configuration: Offline configuration. - :vartype offline_configuration: ~azure.mgmt.datamigration.models.OfflineConfiguration - """ - - _validation = { - "kind": {"required": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - "source_server_name": {"readonly": True}, - "migration_status_details": {"readonly": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "scope": {"key": "scope", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "migration_status": {"key": "migrationStatus", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_service": {"key": "migrationService", "type": "str"}, - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "provisioningError", "type": "str"}, - "source_sql_connection": {"key": "sourceSqlConnection", "type": "SqlConnectionInformation"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, - "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, - "migration_status_details": {"key": "migrationStatusDetails", "type": "MigrationStatusDetails"}, - "backup_configuration": {"key": "backupConfiguration", "type": "BackupConfiguration"}, - "offline_configuration": {"key": "offlineConfiguration", "type": "OfflineConfiguration"}, - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, - source_database_name: Optional[str] = None, - target_database_collation: Optional[str] = None, - sql_server_instance_id: Optional[str] = None, - backup_configuration: Optional["_models.BackupConfiguration"] = None, - offline_configuration: Optional["_models.OfflineConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - :keyword source_sql_connection: Source SQL Server connection details. - :paramtype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :keyword source_database_name: Name of the source database. - :paramtype source_database_name: str - :keyword target_database_collation: Database collation to be used for the target database. - :paramtype target_database_collation: str - :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :paramtype sql_server_instance_id: str - :keyword backup_configuration: Backup configuration info. - :paramtype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration - :keyword offline_configuration: Offline configuration. - :paramtype offline_configuration: ~azure.mgmt.datamigration.models.OfflineConfiguration - """ - super().__init__( - scope=scope, - migration_service=migration_service, - migration_operation_id=migration_operation_id, - provisioning_error=provisioning_error, - source_sql_connection=source_sql_connection, - source_database_name=source_database_name, - target_database_collation=target_database_collation, - sql_server_instance_id=sql_server_instance_id, - **kwargs - ) - self.kind: str = "SqlMi" - self.migration_status_details: Optional["_models.MigrationStatusDetails"] = None - self.backup_configuration = backup_configuration - self.offline_configuration = offline_configuration - - -class DatabaseMigrationPropertiesSqlVm(DatabaseMigrationProperties): - """Database Migration Resource properties for SQL Virtual Machine. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar kind: Required. Known values are: "SqlMi", "SqlVm", "SqlDb", and "MongoToCosmosDbMongo". - :vartype kind: str or ~azure.mgmt.datamigration.models.ResourceType - :ivar scope: Resource Id of the target resource. - :vartype scope: str - :ivar provisioning_state: Provisioning State of migration. ProvisioningState as Succeeded - implies that validations have been performed and migration has started. Known values are: - "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar migration_status: Migration status. - :vartype migration_status: str - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_service: Resource Id of the Migration Service. - :vartype migration_service: str - :ivar migration_operation_id: ID for current migration operation. - :vartype migration_operation_id: str - :ivar migration_failure_error: Error details in case of migration failure. - :vartype migration_failure_error: ~azure.mgmt.datamigration.models.ErrorInfo - :ivar provisioning_error: Error message for migration provisioning failure, if any. - :vartype provisioning_error: str - :ivar source_sql_connection: Source SQL Server connection details. - :vartype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar source_server_name: Name of the source sql server. - :vartype source_server_name: str - :ivar target_database_collation: Database collation to be used for the target database. - :vartype target_database_collation: str - :ivar sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :vartype sql_server_instance_id: str - :ivar migration_status_details: Detailed migration status. Not included by default. - :vartype migration_status_details: ~azure.mgmt.datamigration.models.MigrationStatusDetails - :ivar backup_configuration: Backup configuration info. - :vartype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration - :ivar offline_configuration: Offline configuration. - :vartype offline_configuration: ~azure.mgmt.datamigration.models.OfflineConfiguration - """ - - _validation = { - "kind": {"required": True}, - "provisioning_state": {"readonly": True}, - "migration_status": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_failure_error": {"readonly": True}, - "source_server_name": {"readonly": True}, - "migration_status_details": {"readonly": True}, - } - - _attribute_map = { - "kind": {"key": "kind", "type": "str"}, - "scope": {"key": "scope", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "migration_status": {"key": "migrationStatus", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_service": {"key": "migrationService", "type": "str"}, - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - "migration_failure_error": {"key": "migrationFailureError", "type": "ErrorInfo"}, - "provisioning_error": {"key": "provisioningError", "type": "str"}, - "source_sql_connection": {"key": "sourceSqlConnection", "type": "SqlConnectionInformation"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "target_database_collation": {"key": "targetDatabaseCollation", "type": "str"}, - "sql_server_instance_id": {"key": "sqlServerInstanceId", "type": "str"}, - "migration_status_details": {"key": "migrationStatusDetails", "type": "MigrationStatusDetails"}, - "backup_configuration": {"key": "backupConfiguration", "type": "BackupConfiguration"}, - "offline_configuration": {"key": "offlineConfiguration", "type": "OfflineConfiguration"}, - } - - def __init__( - self, - *, - scope: Optional[str] = None, - migration_service: Optional[str] = None, - migration_operation_id: Optional[str] = None, - provisioning_error: Optional[str] = None, - source_sql_connection: Optional["_models.SqlConnectionInformation"] = None, - source_database_name: Optional[str] = None, - target_database_collation: Optional[str] = None, - sql_server_instance_id: Optional[str] = None, - backup_configuration: Optional["_models.BackupConfiguration"] = None, - offline_configuration: Optional["_models.OfflineConfiguration"] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: Resource Id of the target resource. - :paramtype scope: str - :keyword migration_service: Resource Id of the Migration Service. - :paramtype migration_service: str - :keyword migration_operation_id: ID for current migration operation. - :paramtype migration_operation_id: str - :keyword provisioning_error: Error message for migration provisioning failure, if any. - :paramtype provisioning_error: str - :keyword source_sql_connection: Source SQL Server connection details. - :paramtype source_sql_connection: ~azure.mgmt.datamigration.models.SqlConnectionInformation - :keyword source_database_name: Name of the source database. - :paramtype source_database_name: str - :keyword target_database_collation: Database collation to be used for the target database. - :paramtype target_database_collation: str - :keyword sql_server_instance_id: Optional property - Resource Id for the source Sql server - instance. Validations are performed on this property to ensure that it follows the correct - format. - :paramtype sql_server_instance_id: str - :keyword backup_configuration: Backup configuration info. - :paramtype backup_configuration: ~azure.mgmt.datamigration.models.BackupConfiguration - :keyword offline_configuration: Offline configuration. - :paramtype offline_configuration: ~azure.mgmt.datamigration.models.OfflineConfiguration - """ - super().__init__( - scope=scope, - migration_service=migration_service, - migration_operation_id=migration_operation_id, - provisioning_error=provisioning_error, - source_sql_connection=source_sql_connection, - source_database_name=source_database_name, - target_database_collation=target_database_collation, - sql_server_instance_id=sql_server_instance_id, - **kwargs - ) - self.kind: str = "SqlVm" - self.migration_status_details: Optional["_models.MigrationStatusDetails"] = None - self.backup_configuration = backup_configuration - self.offline_configuration = offline_configuration - - -class ProxyResourceAutoGenerated(_serialization.Model): - """ProxyResourceAutoGenerated. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.system_data: Optional["_models.SystemDataAutoGenerated"] = None - - -class DatabaseMigrationSqlDb(ProxyResourceAutoGenerated): - """Database Migration Resource for SQL Database. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - :ivar properties: Database Migration Resource properties for SQL database. - :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - "properties": {"key": "properties", "type": "DatabaseMigrationPropertiesSqlDb"}, - } - - 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 - """ - super().__init__(**kwargs) - self.properties = properties - - -class DatabaseMigrationSqlMi(ProxyResourceAutoGenerated): - """Database Migration Resource for SQL Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - :ivar properties: Database Migration Resource properties for SQL Managed Instance. - :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlMi - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - "properties": {"key": "properties", "type": "DatabaseMigrationPropertiesSqlMi"}, - } - - 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 - """ - super().__init__(**kwargs) - self.properties = properties - - -class DatabaseMigrationSqlVm(ProxyResourceAutoGenerated): - """Database Migration Resource for SQL Virtual Machine. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - :ivar properties: Database Migration Resource properties for SQL Virtual Machine. - :vartype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlVm - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - "properties": {"key": "properties", "type": "DatabaseMigrationPropertiesSqlVm"}, - } - - 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 - """ - super().__init__(**kwargs) - self.properties = properties - - -class DatabaseObjectName(_serialization.Model): - """A representation of the name of an object in a database. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar database_name: The unescaped name of the database containing the object. - :vartype database_name: str - :ivar object_name: The unescaped name of the object. - :vartype object_name: str - :ivar schema_name: The unescaped name of the schema containing the object. - :vartype schema_name: str - :ivar object_type: Type of the object in the database. Known values are: "StoredProcedures", - "Table", "User", "View", and "Function". - :vartype object_type: str or ~azure.mgmt.datamigration.models.ObjectType - """ - - _validation = { - "database_name": {"readonly": True}, - "object_name": {"readonly": True}, - "schema_name": {"readonly": True}, - } - - _attribute_map = { - "database_name": {"key": "databaseName", "type": "str"}, - "object_name": {"key": "objectName", "type": "str"}, - "schema_name": {"key": "schemaName", "type": "str"}, - "object_type": {"key": "objectType", "type": "str"}, - } - - 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". - :paramtype object_type: str or ~azure.mgmt.datamigration.models.ObjectType - """ - super().__init__(**kwargs) - self.database_name: Optional[str] = None - self.object_name: Optional[str] = None - self.schema_name: Optional[str] = None - self.object_type = object_type - - -class DataItemMigrationSummaryResult(_serialization.Model): - """Basic summary of a data item migration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the item. - :vartype name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message. - :vartype status_message: str - :ivar items_count: Number of items. - :vartype items_count: int - :ivar items_completed_count: Number of successfully completed items. - :vartype items_completed_count: int - :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the - item. - :vartype result_prefix: str - """ - - _validation = { - "name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "state": {"readonly": True}, - "status_message": {"readonly": True}, - "items_count": {"readonly": True}, - "items_completed_count": {"readonly": True}, - "error_prefix": {"readonly": True}, - "result_prefix": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "state": {"key": "state", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "items_count": {"key": "itemsCount", "type": "int"}, - "items_completed_count": {"key": "itemsCompletedCount", "type": "int"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "result_prefix": {"key": "resultPrefix", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.status_message: Optional[str] = None - self.items_count: Optional[int] = None - self.items_completed_count: Optional[int] = None - self.error_prefix: Optional[str] = None - self.result_prefix: Optional[str] = None - - -class DatabaseSummaryResult(DataItemMigrationSummaryResult): - """Summary of database results in the migration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the item. - :vartype name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message. - :vartype status_message: str - :ivar items_count: Number of items. - :vartype items_count: int - :ivar items_completed_count: Number of successfully completed items. - :vartype items_completed_count: int - :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the - item. - :vartype result_prefix: str - :ivar size_mb: Size of the database in megabytes. - :vartype size_mb: float - """ - - _validation = { - "name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "state": {"readonly": True}, - "status_message": {"readonly": True}, - "items_count": {"readonly": True}, - "items_completed_count": {"readonly": True}, - "error_prefix": {"readonly": True}, - "result_prefix": {"readonly": True}, - "size_mb": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "state": {"key": "state", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "items_count": {"key": "itemsCount", "type": "int"}, - "items_completed_count": {"key": "itemsCompletedCount", "type": "int"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "result_prefix": {"key": "resultPrefix", "type": "str"}, - "size_mb": {"key": "sizeMB", "type": "float"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.size_mb: Optional[float] = None - - -class DatabaseTable(_serialization.Model): - """Table properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar has_rows: Indicates whether table is empty or not. - :vartype has_rows: bool - :ivar name: Schema-qualified name of the table. - :vartype name: str - """ - - _validation = { - "has_rows": {"readonly": True}, - "name": {"readonly": True}, - } - - _attribute_map = { - "has_rows": {"key": "hasRows", "type": "bool"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.has_rows: Optional[bool] = None - self.name: Optional[str] = None - - -class DataIntegrityValidationResult(_serialization.Model): - """Results for checksum based Data Integrity validation results. - - :ivar failed_objects: List of failed table names of source and target pair. - :vartype failed_objects: dict[str, str] - :ivar validation_errors: List of errors that happened while performing data integrity - validation. - :vartype validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - - _attribute_map = { - "failed_objects": {"key": "failedObjects", "type": "{str}"}, - "validation_errors": {"key": "validationErrors", "type": "ValidationError"}, - } - - def __init__( - self, - *, - failed_objects: Optional[dict[str, str]] = None, - validation_errors: Optional["_models.ValidationError"] = None, - **kwargs: Any - ) -> None: - """ - :keyword failed_objects: List of failed table names of source and target pair. - :paramtype failed_objects: dict[str, str] - :keyword validation_errors: List of errors that happened while performing data integrity - validation. - :paramtype validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - super().__init__(**kwargs) - self.failed_objects = failed_objects - self.validation_errors = validation_errors - - -class DataMigrationError(_serialization.Model): - """Migration Task errors. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar message: Error description. - :vartype message: str - :ivar type: Error type. Known values are: "Default", "Warning", and "Error". - :vartype type: str or ~azure.mgmt.datamigration.models.ErrorType - """ - - _validation = { - "message": {"readonly": True}, - } - - _attribute_map = { - "message": {"key": "message", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - 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 - """ - super().__init__(**kwargs) - self.message: Optional[str] = None - self.type = type - - -class DataMigrationProjectMetadata(_serialization.Model): - """Common metadata for migration projects. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source_server_name: Source server name. - :vartype source_server_name: str - :ivar source_server_port: Source server port number. - :vartype source_server_port: str - :ivar source_username: Source username. - :vartype source_username: str - :ivar target_server_name: Target server name. - :vartype target_server_name: str - :ivar target_username: Target username. - :vartype target_username: str - :ivar target_db_name: Target database name. - :vartype target_db_name: str - :ivar target_using_win_auth: Whether target connection is Windows authentication. - :vartype target_using_win_auth: bool - :ivar selected_migration_tables: List of tables selected for migration. - :vartype selected_migration_tables: - list[~azure.mgmt.datamigration.models.MigrationTableMetadata] - """ - - _validation = { - "source_server_name": {"readonly": True}, - "source_server_port": {"readonly": True}, - "source_username": {"readonly": True}, - "target_server_name": {"readonly": True}, - "target_username": {"readonly": True}, - "target_db_name": {"readonly": True}, - "target_using_win_auth": {"readonly": True}, - "selected_migration_tables": {"readonly": True}, - } - - _attribute_map = { - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "source_server_port": {"key": "sourceServerPort", "type": "str"}, - "source_username": {"key": "sourceUsername", "type": "str"}, - "target_server_name": {"key": "targetServerName", "type": "str"}, - "target_username": {"key": "targetUsername", "type": "str"}, - "target_db_name": {"key": "targetDbName", "type": "str"}, - "target_using_win_auth": {"key": "targetUsingWinAuth", "type": "bool"}, - "selected_migration_tables": {"key": "selectedMigrationTables", "type": "[MigrationTableMetadata]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.source_server_name: Optional[str] = None - self.source_server_port: Optional[str] = None - self.source_username: Optional[str] = None - self.target_server_name: Optional[str] = None - self.target_username: Optional[str] = None - self.target_db_name: Optional[str] = None - self.target_using_win_auth: Optional[bool] = None - self.selected_migration_tables: Optional[list["_models.MigrationTableMetadata"]] = None - - -class TrackedResourceAutoGenerated(_serialization.Model): - """TrackedResourceAutoGenerated. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar location: - :vartype location: str - :ivar tags: Dictionary of :code:``. - :vartype tags: dict[str, str] - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: - :paramtype location: str - :keyword tags: Dictionary of :code:``. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - self.system_data: Optional["_models.SystemDataAutoGenerated"] = None - - -class DataMigrationService(TrackedResourceAutoGenerated): - """An Azure Database Migration Service (classic) resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar location: - :vartype location: str - :ivar tags: Dictionary of :code:``. - :vartype tags: dict[str, str] - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - :ivar etag: HTTP strong entity tag value. Ignored if submitted. - :vartype etag: str - :ivar kind: The resource kind. Only 'vm' (the default) is supported. - :vartype kind: str - :ivar sku: Service SKU. - :vartype sku: ~azure.mgmt.datamigration.models.ServiceSku - :ivar provisioning_state: The resource's provisioning state. Known values are: "Accepted", - "Deleting", "Deploying", "Stopped", "Stopping", "Starting", "FailedToStart", "FailedToStop", - "Succeeded", and "Failed". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ServiceProvisioningState - :ivar public_key: The public key of the service, used to encrypt secrets sent to the service. - :vartype public_key: str - :ivar virtual_subnet_id: The ID of the Microsoft.Network/virtualNetworks/subnets resource to - which the service should be joined. - :vartype virtual_subnet_id: str - :ivar virtual_nic_id: The ID of the Microsoft.Network/networkInterfaces resource which the - service have. - :vartype virtual_nic_id: str - :ivar auto_stop_delay: The time delay before the service is auto-stopped when idle. - :vartype auto_stop_delay: str - :ivar delete_resources_on_stop: Whether service resources should be deleted when stopped. - (Turned on by default). - :vartype delete_resources_on_stop: bool - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - "etag": {"key": "etag", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "sku": {"key": "sku", "type": "ServiceSku"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "public_key": {"key": "properties.publicKey", "type": "str"}, - "virtual_subnet_id": {"key": "properties.virtualSubnetId", "type": "str"}, - "virtual_nic_id": {"key": "properties.virtualNicId", "type": "str"}, - "auto_stop_delay": {"key": "properties.autoStopDelay", "type": "str"}, - "delete_resources_on_stop": {"key": "properties.deleteResourcesOnStop", "type": "bool"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - etag: Optional[str] = None, - kind: Optional[str] = None, - sku: Optional["_models.ServiceSku"] = None, - public_key: Optional[str] = None, - virtual_subnet_id: Optional[str] = None, - virtual_nic_id: Optional[str] = None, - auto_stop_delay: Optional[str] = None, - delete_resources_on_stop: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: - :paramtype location: str - :keyword tags: Dictionary of :code:``. - :paramtype tags: dict[str, str] - :keyword etag: HTTP strong entity tag value. Ignored if submitted. - :paramtype etag: str - :keyword kind: The resource kind. Only 'vm' (the default) is supported. - :paramtype kind: str - :keyword sku: Service SKU. - :paramtype sku: ~azure.mgmt.datamigration.models.ServiceSku - :keyword public_key: The public key of the service, used to encrypt secrets sent to the - service. - :paramtype public_key: str - :keyword virtual_subnet_id: The ID of the Microsoft.Network/virtualNetworks/subnets resource to - which the service should be joined. - :paramtype virtual_subnet_id: str - :keyword virtual_nic_id: The ID of the Microsoft.Network/networkInterfaces resource which the - service have. - :paramtype virtual_nic_id: str - :keyword auto_stop_delay: The time delay before the service is auto-stopped when idle. - :paramtype auto_stop_delay: str - :keyword delete_resources_on_stop: Whether service resources should be deleted when stopped. - (Turned on by default). - :paramtype delete_resources_on_stop: bool - """ - super().__init__(location=location, tags=tags, **kwargs) - self.etag = etag - self.kind = kind - self.sku = sku - self.provisioning_state: Optional[Union[str, "_models.ServiceProvisioningState"]] = None - self.public_key = public_key - self.virtual_subnet_id = virtual_subnet_id - self.virtual_nic_id = virtual_nic_id - self.auto_stop_delay = auto_stop_delay - self.delete_resources_on_stop = delete_resources_on_stop - - -class DataMigrationServiceList(_serialization.Model): - """OData page of service objects. - - :ivar value: List of services. - :vartype value: list[~azure.mgmt.datamigration.models.DataMigrationService] - :ivar next_link: URL to load the next page of services. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DataMigrationService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - 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] - :keyword next_link: URL to load the next page of services. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DataMigrationServiceStatusResponse(_serialization.Model): - """Service health status. - - :ivar agent_version: The DMS instance agent version. - :vartype agent_version: str - :ivar agent_configuration: Agent Configuration. - :vartype agent_configuration: JSON - :ivar status: The machine-readable status, such as 'Initializing', 'Offline', 'Online', - 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or - 'Failed'. - :vartype status: str - :ivar vm_size: The services virtual machine size, such as 'Standard_D2_v2'. - :vartype vm_size: str - :ivar supported_task_types: The list of supported task types. - :vartype supported_task_types: list[str] - """ - - _attribute_map = { - "agent_version": {"key": "agentVersion", "type": "str"}, - "agent_configuration": {"key": "agentConfiguration", "type": "object"}, - "status": {"key": "status", "type": "str"}, - "vm_size": {"key": "vmSize", "type": "str"}, - "supported_task_types": {"key": "supportedTaskTypes", "type": "[str]"}, - } - - def __init__( - self, - *, - agent_version: Optional[str] = None, - agent_configuration: Optional[JSON] = None, - status: Optional[str] = None, - vm_size: Optional[str] = None, - supported_task_types: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword agent_version: The DMS instance agent version. - :paramtype agent_version: str - :keyword agent_configuration: Agent Configuration. - :paramtype agent_configuration: JSON - :keyword status: The machine-readable status, such as 'Initializing', 'Offline', 'Online', - 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or - 'Failed'. - :paramtype status: str - :keyword vm_size: The services virtual machine size, such as 'Standard_D2_v2'. - :paramtype vm_size: str - :keyword supported_task_types: The list of supported task types. - :paramtype supported_task_types: list[str] - """ - super().__init__(**kwargs) - self.agent_version = agent_version - self.agent_configuration = agent_configuration - self.status = status - self.vm_size = vm_size - self.supported_task_types = supported_task_types - - -class DeleteNode(_serialization.Model): - """Details of node to be deleted. - - :ivar node_name: The name of node to delete. - :vartype node_name: str - :ivar integration_runtime_name: The name of integration runtime. - :vartype integration_runtime_name: str - """ - - _attribute_map = { - "node_name": {"key": "nodeName", "type": "str"}, - "integration_runtime_name": {"key": "integrationRuntimeName", "type": "str"}, - } - - 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 - :keyword integration_runtime_name: The name of integration runtime. - :paramtype integration_runtime_name: str - """ - super().__init__(**kwargs) - self.node_name = node_name - self.integration_runtime_name = integration_runtime_name - - -class ErrorAdditionalInfo(_serialization.Model): - """The resource management error additional info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: JSON - """ - - _validation = { - "type": {"readonly": True}, - "info": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "info": {"key": "info", "type": "object"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.info: Optional[JSON] = None - - -class ErrorDetail(_serialization.Model): - """The error detail. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.datamigration.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: list[~azure.mgmt.datamigration.models.ErrorAdditionalInfo] - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - "target": {"readonly": True}, - "details": {"readonly": True}, - "additional_info": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[ErrorDetail]"}, - "additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - self.target: Optional[str] = None - self.details: Optional[list["_models.ErrorDetail"]] = None - self.additional_info: Optional[list["_models.ErrorAdditionalInfo"]] = None - - -class ErrorInfo(_serialization.Model): - """Error details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Error message. - :vartype message: str - """ - - _validation = { - "code": {"readonly": True}, - "message": {"readonly": True}, - } - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.code: Optional[str] = None - self.message: Optional[str] = None - - -class ErrorResponse(_serialization.Model): - """Common error response for all Azure Resource Manager APIs to return error details for failed - operations. (This also follows the OData error response format.). - - :ivar error: The error object. - :vartype error: ~azure.mgmt.datamigration.models.ErrorDetail - """ - - _attribute_map = { - "error": {"key": "error", "type": "ErrorDetail"}, - } - - def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None: - """ - :keyword error: The error object. - :paramtype error: ~azure.mgmt.datamigration.models.ErrorDetail - """ - super().__init__(**kwargs) - self.error = error - - -class ExecutionStatistics(_serialization.Model): - """Description about the errors happen while performing migration validation. - - :ivar execution_count: No. of query executions. - :vartype execution_count: int - :ivar cpu_time_ms: CPU Time in millisecond(s) for the query execution. - :vartype cpu_time_ms: float - :ivar elapsed_time_ms: Time taken in millisecond(s) for executing the query. - :vartype elapsed_time_ms: float - :ivar wait_stats: Dictionary of sql query execution wait types and the respective statistics. - :vartype wait_stats: dict[str, ~azure.mgmt.datamigration.models.WaitStatistics] - :ivar has_errors: Indicates whether the query resulted in an error. - :vartype has_errors: bool - :ivar sql_errors: List of sql Errors. - :vartype sql_errors: list[str] - """ - - _attribute_map = { - "execution_count": {"key": "executionCount", "type": "int"}, - "cpu_time_ms": {"key": "cpuTimeMs", "type": "float"}, - "elapsed_time_ms": {"key": "elapsedTimeMs", "type": "float"}, - "wait_stats": {"key": "waitStats", "type": "{WaitStatistics}"}, - "has_errors": {"key": "hasErrors", "type": "bool"}, - "sql_errors": {"key": "sqlErrors", "type": "[str]"}, - } - - def __init__( - self, - *, - execution_count: Optional[int] = None, - cpu_time_ms: Optional[float] = None, - elapsed_time_ms: Optional[float] = None, - wait_stats: Optional[dict[str, "_models.WaitStatistics"]] = None, - has_errors: Optional[bool] = None, - sql_errors: Optional[list[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword execution_count: No. of query executions. - :paramtype execution_count: int - :keyword cpu_time_ms: CPU Time in millisecond(s) for the query execution. - :paramtype cpu_time_ms: float - :keyword elapsed_time_ms: Time taken in millisecond(s) for executing the query. - :paramtype elapsed_time_ms: float - :keyword wait_stats: Dictionary of sql query execution wait types and the respective - statistics. - :paramtype wait_stats: dict[str, ~azure.mgmt.datamigration.models.WaitStatistics] - :keyword has_errors: Indicates whether the query resulted in an error. - :paramtype has_errors: bool - :keyword sql_errors: List of sql Errors. - :paramtype sql_errors: list[str] - """ - super().__init__(**kwargs) - self.execution_count = execution_count - self.cpu_time_ms = cpu_time_ms - self.elapsed_time_ms = elapsed_time_ms - self.wait_stats = wait_stats - self.has_errors = has_errors - self.sql_errors = sql_errors - - -class FileList(_serialization.Model): - """OData page of files. - - :ivar value: List of files. - :vartype value: list[~azure.mgmt.datamigration.models.ProjectFile] - :ivar next_link: URL to load the next page of files. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ProjectFile]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - 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] - :keyword next_link: URL to load the next page of files. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class FileShare(_serialization.Model): - """File share information with Path, Username, and Password. - - All required parameters must be populated in order to send to server. - - :ivar user_name: User name credential to connect to the share location. - :vartype user_name: str - :ivar password: Password credential used to connect to the share location. - :vartype password: str - :ivar path: The folder path for this share. Required. - :vartype path: str - """ - - _validation = { - "path": {"required": True}, - } - - _attribute_map = { - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "path": {"key": "path", "type": "str"}, - } - - 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 - :keyword password: Password credential used to connect to the share location. - :paramtype password: str - :keyword path: The folder path for this share. Required. - :paramtype path: str - """ - super().__init__(**kwargs) - self.user_name = user_name - self.password = password - self.path = path - - -class FileStorageInfo(_serialization.Model): - """File storage information. - - :ivar uri: A URI that can be used to access the file content. - :vartype uri: str - :ivar headers: Dictionary of :code:``. - :vartype headers: dict[str, str] - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - "headers": {"key": "headers", "type": "{str}"}, - } - - 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 - :keyword headers: Dictionary of :code:``. - :paramtype headers: dict[str, str] - """ - super().__init__(**kwargs) - self.uri = uri - self.headers = headers - - -class GetProjectDetailsNonSqlTaskInput(_serialization.Model): - """Input for the task that reads configuration from project artifacts. - - All required parameters must be populated in order to send to server. - - :ivar project_name: Name of the migration project. Required. - :vartype project_name: str - :ivar project_location: A URL that points to the location to access project artifacts. - Required. - :vartype project_location: str - """ - - _validation = { - "project_name": {"required": True}, - "project_location": {"required": True}, - } - - _attribute_map = { - "project_name": {"key": "projectName", "type": "str"}, - "project_location": {"key": "projectLocation", "type": "str"}, - } - - 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 - :keyword project_location: A URL that points to the location to access project artifacts. - Required. - :paramtype project_location: str - """ - super().__init__(**kwargs) - self.project_name = project_name - self.project_location = project_location - - -class GetTdeCertificatesSqlTaskInput(_serialization.Model): - """Input for the task that gets TDE certificates in Base64 encoded format. - - All required parameters must be populated in order to send to server. - - :ivar connection_info: Connection information for SQL Server. Required. - :vartype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar backup_file_share: Backup file share information for file share to be used for - temporarily storing files. Required. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar selected_certificates: List containing certificate names and corresponding password to - use for encrypting the exported certificate. Required. - :vartype selected_certificates: list[~azure.mgmt.datamigration.models.SelectedCertificateInput] - """ - - _validation = { - "connection_info": {"required": True}, - "backup_file_share": {"required": True}, - "selected_certificates": {"required": True}, - } - - _attribute_map = { - "connection_info": {"key": "connectionInfo", "type": "SqlConnectionInfo"}, - "backup_file_share": {"key": "backupFileShare", "type": "FileShare"}, - "selected_certificates": {"key": "selectedCertificates", "type": "[SelectedCertificateInput]"}, - } - - def __init__( - self, - *, - connection_info: "_models.SqlConnectionInfo", - backup_file_share: "_models.FileShare", - selected_certificates: list["_models.SelectedCertificateInput"], - **kwargs: Any - ) -> None: - """ - :keyword connection_info: Connection information for SQL Server. Required. - :paramtype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword backup_file_share: Backup file share information for file share to be used for - temporarily storing files. Required. - :paramtype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :keyword selected_certificates: List containing certificate names and corresponding password to - use for encrypting the exported certificate. Required. - :paramtype selected_certificates: - list[~azure.mgmt.datamigration.models.SelectedCertificateInput] - """ - super().__init__(**kwargs) - self.connection_info = connection_info - self.backup_file_share = backup_file_share - self.selected_certificates = selected_certificates - - -class GetTdeCertificatesSqlTaskOutput(_serialization.Model): - """Output of the task that gets TDE certificates in Base64 encoded format. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar base64_encoded_certificates: Mapping from certificate name to base 64 encoded format. - :vartype base64_encoded_certificates: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "base64_encoded_certificates": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "base64_encoded_certificates": {"key": "base64EncodedCertificates", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.base64_encoded_certificates: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class GetTdeCertificatesSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that gets TDE certificates in Base64 encoded format. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "GetTdeCertificatesSqlTaskInput"}, - "output": {"key": "output", "type": "[GetTdeCertificatesSqlTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.GetTdeCertificatesSqlTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.GetTdeCertificatesSqlTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "GetTDECertificates.Sql" - self.input = input - self.output: Optional[list["_models.GetTdeCertificatesSqlTaskOutput"]] = None - - -class GetUserTablesMySqlTaskInput(_serialization.Model): - """Input for the task that collects user tables for the given list of databases. - - All required parameters must be populated in order to send to server. - - :ivar connection_info: Connection information for SQL Server. Required. - :vartype connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar selected_databases: List of database names to collect tables for. Required. - :vartype selected_databases: list[str] - """ - - _validation = { - "connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "connection_info": {"key": "connectionInfo", "type": "MySqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[str]"}, - } - - 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 - :keyword selected_databases: List of database names to collect tables for. Required. - :paramtype selected_databases: list[str] - """ - super().__init__(**kwargs) - self.connection_info = connection_info - self.selected_databases = selected_databases - - -class GetUserTablesMySqlTaskOutput(_serialization.Model): - """Output of the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar databases_to_tables: Mapping from database name to list of tables. - :vartype databases_to_tables: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "databases_to_tables": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "databases_to_tables": {"key": "databasesToTables", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.databases_to_tables: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class GetUserTablesMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesMySqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesMySqlTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "GetUserTablesMySqlTaskInput"}, - "output": {"key": "output", "type": "[GetUserTablesMySqlTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.GetUserTablesMySqlTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.GetUserTablesMySqlTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "GetUserTablesMySql" - self.input = input - self.output: Optional[list["_models.GetUserTablesMySqlTaskOutput"]] = None - - -class GetUserTablesOracleTaskInput(_serialization.Model): - """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 server. - - :ivar connection_info: Information for connecting to Oracle source. Required. - :vartype connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo - :ivar selected_schemas: List of Oracle schemas for which to collect tables. Required. - :vartype selected_schemas: list[str] - """ - - _validation = { - "connection_info": {"required": True}, - "selected_schemas": {"required": True}, - } - - _attribute_map = { - "connection_info": {"key": "connectionInfo", "type": "OracleConnectionInfo"}, - "selected_schemas": {"key": "selectedSchemas", "type": "[str]"}, - } - - 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 - :keyword selected_schemas: List of Oracle schemas for which to collect tables. Required. - :paramtype selected_schemas: list[str] - """ - super().__init__(**kwargs) - self.connection_info = connection_info - self.selected_schemas = selected_schemas - - -class GetUserTablesOracleTaskOutput(_serialization.Model): - """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. - - :ivar schema_name: The schema this result is for. - :vartype schema_name: str - :ivar tables: List of valid tables found for this schema. - :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "schema_name": {"readonly": True}, - "tables": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "schema_name": {"key": "schemaName", "type": "str"}, - "tables": {"key": "tables", "type": "[DatabaseTable]"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.schema_name: Optional[str] = None - self.tables: Optional[list["_models.DatabaseTable"]] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class GetUserTablesOracleTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of Oracle schemas. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesOracleTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesOracleTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "GetUserTablesOracleTaskInput"}, - "output": {"key": "output", "type": "[GetUserTablesOracleTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.GetUserTablesOracleTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.GetUserTablesOracleTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "GetUserTablesOracle" - self.input = input - self.output: Optional[list["_models.GetUserTablesOracleTaskOutput"]] = None - - -class GetUserTablesPostgreSqlTaskInput(_serialization.Model): - """Input for the task that gets the list of tables for a provided list of PostgreSQL databases. - - All required parameters must be populated in order to send to server. - - :ivar connection_info: Information for connecting to PostgreSQL source. Required. - :vartype connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :ivar selected_databases: List of PostgreSQL databases for which to collect tables. Required. - :vartype selected_databases: list[str] - """ - - _validation = { - "connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "connection_info": {"key": "connectionInfo", "type": "PostgreSqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[str]"}, - } - - 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 - :keyword selected_databases: List of PostgreSQL databases for which to collect tables. - Required. - :paramtype selected_databases: list[str] - """ - super().__init__(**kwargs) - self.connection_info = connection_info - self.selected_databases = selected_databases - - -class GetUserTablesPostgreSqlTaskOutput(_serialization.Model): - """Output for the task that gets the list of tables for a provided list of PostgreSQL databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar database_name: The database this result is for. - :vartype database_name: str - :ivar tables: List of valid tables found for this database. - :vartype tables: list[~azure.mgmt.datamigration.models.DatabaseTable] - :ivar validation_errors: Validation errors associated with the task. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "database_name": {"readonly": True}, - "tables": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "database_name": {"key": "databaseName", "type": "str"}, - "tables": {"key": "tables", "type": "[DatabaseTable]"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.database_name: Optional[str] = None - self.tables: Optional[list["_models.DatabaseTable"]] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class GetUserTablesPostgreSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "GetUserTablesPostgreSqlTaskInput"}, - "output": {"key": "output", "type": "[GetUserTablesPostgreSqlTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.GetUserTablesPostgreSqlTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.GetUserTablesPostgreSqlTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "GetUserTablesPostgreSql" - self.input = input - self.output: Optional[list["_models.GetUserTablesPostgreSqlTaskOutput"]] = None - - -class GetUserTablesSqlSyncTaskInput(_serialization.Model): - """Input for the task that collects user tables for the given list of databases. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Connection information for SQL Server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Connection information for SQL DB. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_source_databases: List of source database names to collect tables for. Required. - :vartype selected_source_databases: list[str] - :ivar selected_target_databases: List of target database names to collect tables for. Required. - :vartype selected_target_databases: list[str] - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_source_databases": {"required": True}, - "selected_target_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_source_databases": {"key": "selectedSourceDatabases", "type": "[str]"}, - "selected_target_databases": {"key": "selectedTargetDatabases", "type": "[str]"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_source_databases: list[str], - selected_target_databases: list[str], - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Connection information for SQL Server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Connection information for SQL DB. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_source_databases: List of source database names to collect tables for. - Required. - :paramtype selected_source_databases: list[str] - :keyword selected_target_databases: List of target database names to collect tables for. - Required. - :paramtype selected_target_databases: list[str] - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_source_databases = selected_source_databases - self.selected_target_databases = selected_target_databases - - -class GetUserTablesSqlSyncTaskOutput(_serialization.Model): - """Output of the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar databases_to_source_tables: Mapping from database name to list of source tables. - :vartype databases_to_source_tables: str - :ivar databases_to_target_tables: Mapping from database name to list of target tables. - :vartype databases_to_target_tables: str - :ivar table_validation_errors: Mapping from database name to list of validation errors. - :vartype table_validation_errors: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "databases_to_source_tables": {"readonly": True}, - "databases_to_target_tables": {"readonly": True}, - "table_validation_errors": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "databases_to_source_tables": {"key": "databasesToSourceTables", "type": "str"}, - "databases_to_target_tables": {"key": "databasesToTargetTables", "type": "str"}, - "table_validation_errors": {"key": "tableValidationErrors", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.databases_to_source_tables: Optional[str] = None - self.databases_to_target_tables: Optional[str] = None - self.table_validation_errors: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class GetUserTablesSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "GetUserTablesSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[GetUserTablesSqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.GetUserTablesSqlSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.GetUserTablesSqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "GetUserTables.AzureSqlDb.Sync" - self.input = input - self.output: Optional[list["_models.GetUserTablesSqlSyncTaskOutput"]] = None - - -class GetUserTablesSqlTaskInput(_serialization.Model): - """Input for the task that collects user tables for the given list of databases. - - All required parameters must be populated in order to send to server. - - :ivar connection_info: Connection information for SQL Server. Required. - :vartype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: List of database names to collect tables for. Required. - :vartype selected_databases: list[str] - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - """ - - _validation = { - "connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "connection_info": {"key": "connectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[str]"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - } - - def __init__( - self, - *, - connection_info: "_models.SqlConnectionInfo", - selected_databases: list[str], - encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword connection_info: Connection information for SQL Server. Required. - :paramtype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: List of database names to collect tables for. Required. - :paramtype selected_databases: list[str] - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - """ - super().__init__(**kwargs) - self.connection_info = connection_info - self.selected_databases = selected_databases - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - - -class GetUserTablesSqlTaskOutput(_serialization.Model): - """Output of the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar databases_to_tables: Mapping from database name to list of tables. - :vartype databases_to_tables: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "databases_to_tables": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "databases_to_tables": {"key": "databasesToTables", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.databases_to_tables: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class GetUserTablesSqlTaskProperties(ProjectTaskProperties): - """Properties for the task that collects user tables for the given list of databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.GetUserTablesSqlTaskOutput] - :ivar task_id: Task id. - :vartype task_id: str - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "GetUserTablesSqlTaskInput"}, - "output": {"key": "output", "type": "[GetUserTablesSqlTaskOutput]"}, - "task_id": {"key": "taskId", "type": "str"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.GetUserTablesSqlTaskInput"] = None, - task_id: Optional[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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.GetUserTablesSqlTaskInput - :keyword task_id: Task id. - :paramtype task_id: str - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "GetUserTables.Sql" - self.input = input - self.output: Optional[list["_models.GetUserTablesSqlTaskOutput"]] = None - self.task_id = task_id - - -class InstallOCIDriverTaskInput(_serialization.Model): - """Input for the service task to install an OCI driver. - - :ivar driver_package_name: Name of the uploaded driver package to install. - :vartype driver_package_name: str - """ - - _attribute_map = { - "driver_package_name": {"key": "driverPackageName", "type": "str"}, - } - - 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 - """ - super().__init__(**kwargs) - self.driver_package_name = driver_package_name - - -class InstallOCIDriverTaskOutput(_serialization.Model): - """Output for the service task to install an OCI driver. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class InstallOCIDriverTaskProperties(ProjectTaskProperties): - """Properties for the task that installs an OCI driver. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Input for the service task to install an OCI driver. - :vartype input: ~azure.mgmt.datamigration.models.InstallOCIDriverTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.InstallOCIDriverTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "InstallOCIDriverTaskInput"}, - "output": {"key": "output", "type": "[InstallOCIDriverTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.InstallOCIDriverTaskInput"] = 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] - :keyword input: Input for the service task to install an OCI driver. - :paramtype input: ~azure.mgmt.datamigration.models.InstallOCIDriverTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Service.Install.OCI" - self.input = input - self.output: Optional[list["_models.InstallOCIDriverTaskOutput"]] = None - - -class IntegrationRuntimeMonitoringData(_serialization.Model): - """Integration Runtime Monitoring Data. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of Integration Runtime. - :vartype name: str - :ivar nodes: Integration Runtime node monitoring data. - :vartype nodes: list[~azure.mgmt.datamigration.models.NodeMonitoringData] - """ - - _validation = { - "name": {"readonly": True}, - "nodes": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "nodes": {"key": "nodes", "type": "[NodeMonitoringData]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.nodes: Optional[list["_models.NodeMonitoringData"]] = None - - -class ManagedServiceIdentity(_serialization.Model): - """Managed service identity (system assigned and/or user assigned identities). - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar principal_id: The service principal ID of the system assigned identity. This property - will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be - provided for a system assigned identity. - :vartype tenant_id: str - :ivar type: Type of managed service identity (where both SystemAssigned and UserAssigned types - are allowed). Required. Known values are: "None", "SystemAssigned", "UserAssigned", and - "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.datamigration.models.ManagedServiceIdentityType - :ivar user_assigned_identities: The set of user assigned identities associated with the - resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - The dictionary values can be empty objects ({}) in requests. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.datamigration.models.UserAssignedIdentity] - """ - - _validation = { - "principal_id": {"readonly": True}, - "tenant_id": {"readonly": True}, - "type": {"required": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedIdentity}"}, - } - - def __init__( - self, - *, - type: Union[str, "_models.ManagedServiceIdentityType"], - user_assigned_identities: Optional[dict[str, "_models.UserAssignedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of managed service identity (where both SystemAssigned and UserAssigned - types are allowed). Required. Known values are: "None", "SystemAssigned", "UserAssigned", and - "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.datamigration.models.ManagedServiceIdentityType - :keyword user_assigned_identities: The set of user assigned identities associated with the - resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. - The dictionary values can be empty objects ({}) in requests. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.datamigration.models.UserAssignedIdentity] - """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.tenant_id: Optional[str] = None - self.type = type - self.user_assigned_identities = user_assigned_identities - - -class MigrateMISyncCompleteCommandInput(_serialization.Model): - """Input for command that completes online migration for an Azure SQL Database Managed Instance. - - All required parameters must be populated in order to send to server. - - :ivar source_database_name: Name of managed instance database. Required. - :vartype source_database_name: str - """ - - _validation = { - "source_database_name": {"required": True}, - } - - _attribute_map = { - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - } - - 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 - """ - super().__init__(**kwargs) - self.source_database_name = source_database_name - - -class MigrateMISyncCompleteCommandOutput(_serialization.Model): - """Output for command that completes online migration for an Azure SQL Database Managed Instance. - - :ivar errors: List of errors that happened during the command execution. - :vartype errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _attribute_map = { - "errors": {"key": "errors", "type": "[ReportableException]"}, - } - - 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] - """ - super().__init__(**kwargs) - self.errors = errors - - -class MigrateMISyncCompleteCommandProperties(CommandProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", - "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". - :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. Known values are: - "Unknown", "Accepted", "Running", "Succeeded", and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :ivar input: Command input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput - :ivar output: Command output. This is ignored if submitted. - :vartype output: ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandOutput - """ - - _validation = { - "command_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "command_type": {"key": "commandType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "input": {"key": "input", "type": "MigrateMISyncCompleteCommandInput"}, - "output": {"key": "output", "type": "MigrateMISyncCompleteCommandOutput"}, - } - - def __init__(self, *, input: Optional["_models.MigrateMISyncCompleteCommandInput"] = None, **kwargs: Any) -> None: - """ - :keyword input: Command input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput - """ - super().__init__(**kwargs) - self.command_type: str = "Migrate.SqlServer.AzureDbSqlMi.Complete" - self.input = input - self.output: Optional["_models.MigrateMISyncCompleteCommandOutput"] = None - - -class MigrateMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates data between MongoDB data sources. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Describes how a MongoDB data migration should be performed. - :vartype input: ~azure.mgmt.datamigration.models.MongoDbMigrationSettings - :ivar output: - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbProgress] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MongoDbMigrationSettings"}, - "output": {"key": "output", "type": "[MongoDbProgress]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MongoDbMigrationSettings"] = 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] - :keyword input: Describes how a MongoDB data migration should be performed. - :paramtype input: ~azure.mgmt.datamigration.models.MongoDbMigrationSettings - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.MongoDb" - self.input = input - self.output: Optional[list["_models.MongoDbProgress"]] = None - - -class MigrateMySqlAzureDbForMySqlOfflineDatabaseInput(_serialization.Model): # pylint: disable=name-too-long - """Database specific information for offline MySQL to Azure Database for MySQL migration task - inputs. - - :ivar name: Name of the database. - :vartype name: str - :ivar target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :vartype target_database_name: str - :ivar table_map: Mapping of source to target tables. - :vartype table_map: dict[str, str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "table_map": {"key": "tableMap", "type": "{str}"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - target_database_name: Optional[str] = None, - table_map: Optional[dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the database. - :paramtype name: str - :keyword target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :paramtype target_database_name: str - :keyword table_map: Mapping of source to target tables. - :paramtype table_map: dict[str, str] - """ - super().__init__(**kwargs) - self.name = name - self.target_database_name = target_database_name - self.table_map = table_map - - -class MigrateMySqlAzureDbForMySqlOfflineTaskInput(_serialization.Model): # pylint: disable=name-too-long - """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 server. - - :ivar source_connection_info: Connection information for source MySQL. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar target_connection_info: Connection information for target Azure Database for MySQL. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput] - :ivar make_source_server_read_only: Setting to set the source server read only. - :vartype make_source_server_read_only: bool - :ivar started_on: Parameter to specify when the migration started. - :vartype started_on: ~datetime.datetime - :ivar optional_agent_settings: Optional parameters for fine tuning the data transfer rate - during migration. - :vartype optional_agent_settings: dict[str, str] - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "MySqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "MySqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateMySqlAzureDbForMySqlOfflineDatabaseInput]"}, - "make_source_server_read_only": {"key": "makeSourceServerReadOnly", "type": "bool"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "optional_agent_settings": {"key": "optionalAgentSettings", "type": "{str}"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.MySqlConnectionInfo", - target_connection_info: "_models.MySqlConnectionInfo", - selected_databases: list["_models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput"], - make_source_server_read_only: bool = False, - started_on: Optional[datetime.datetime] = None, - optional_agent_settings: Optional[dict[str, str]] = None, - encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Connection information for source MySQL. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword target_connection_info: Connection information for target Azure Database for MySQL. - Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput] - :keyword make_source_server_read_only: Setting to set the source server read only. - :paramtype make_source_server_read_only: bool - :keyword started_on: Parameter to specify when the migration started. - :paramtype started_on: ~datetime.datetime - :keyword optional_agent_settings: Optional parameters for fine tuning the data transfer rate - during migration. - :paramtype optional_agent_settings: dict[str, str] - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases - self.make_source_server_read_only = make_source_server_read_only - self.started_on = started_on - self.optional_agent_settings = optional_agent_settings - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - - -class MigrateMySqlAzureDbForMySqlOfflineTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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, - MigrateMySqlAzureDbForMySqlOfflineTaskOutputError, - MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel, - MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelOutput": "MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateMySqlAzureDbForMySqlOfflineTaskOutputError", - "MigrationLevelOutput": "MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel", - "TableLevelOutput": "MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel( - MigrateMySqlAzureDbForMySqlOfflineTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Migration stage that this database is in. Known values are: "None", "Initialize", - "Backup", "FileCopy", "Restore", and "Completed". - :vartype stage: str or ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar status_message: Status message. - :vartype status_message: str - :ivar message: Migration progress message. - :vartype message: str - :ivar number_of_objects: Number of objects. - :vartype number_of_objects: int - :ivar number_of_objects_completed: Number of successfully completed objects. - :vartype number_of_objects_completed: int - :ivar error_count: Number of database/object errors. - :vartype error_count: int - :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the - item. - :vartype result_prefix: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar last_storage_update: Last time the storage was updated. - :vartype last_storage_update: ~datetime.datetime - :ivar object_summary: Summary of object results in the migration. - :vartype object_summary: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "state": {"readonly": True}, - "stage": {"readonly": True}, - "status_message": {"readonly": True}, - "message": {"readonly": True}, - "number_of_objects": {"readonly": True}, - "number_of_objects_completed": {"readonly": True}, - "error_count": {"readonly": True}, - "error_prefix": {"readonly": True}, - "result_prefix": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - "last_storage_update": {"readonly": True}, - "object_summary": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "state": {"key": "state", "type": "str"}, - "stage": {"key": "stage", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "number_of_objects": {"key": "numberOfObjects", "type": "int"}, - "number_of_objects_completed": {"key": "numberOfObjectsCompleted", "type": "int"}, - "error_count": {"key": "errorCount", "type": "int"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "result_prefix": {"key": "resultPrefix", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - "last_storage_update": {"key": "lastStorageUpdate", "type": "iso-8601"}, - "object_summary": {"key": "objectSummary", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.stage: Optional[Union[str, "_models.DatabaseMigrationStage"]] = None - self.status_message: Optional[str] = None - self.message: Optional[str] = None - self.number_of_objects: Optional[int] = None - self.number_of_objects_completed: Optional[int] = None - self.error_count: Optional[int] = None - self.error_prefix: Optional[str] = None - self.result_prefix: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - self.last_storage_update: Optional[datetime.datetime] = None - self.object_summary: Optional[str] = None - - -class MigrateMySqlAzureDbForMySqlOfflineTaskOutputError( - MigrateMySqlAzureDbForMySqlOfflineTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlOfflineTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel( - MigrateMySqlAzureDbForMySqlOfflineTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar duration_in_seconds: Duration of task execution in seconds. - :vartype duration_in_seconds: int - :ivar status: Current status of migration. Known values are: "Default", "Connecting", - "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", - "Completed", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar status_message: Migration status message. - :vartype status_message: str - :ivar message: Migration progress message. - :vartype message: str - :ivar databases: Selected databases as a map from database name to database id. - :vartype databases: str - :ivar database_summary: Summary of database results in the migration. - :vartype database_summary: str - :ivar migration_report_result: Migration Report Result, provides unique url for downloading - your migration report. - :vartype migration_report_result: ~azure.mgmt.datamigration.models.MigrationReportResult - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar last_storage_update: Last time the storage was updated. - :vartype last_storage_update: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "duration_in_seconds": {"readonly": True}, - "status": {"readonly": True}, - "status_message": {"readonly": True}, - "message": {"readonly": True}, - "database_summary": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - "last_storage_update": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, - "status": {"key": "status", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "databases": {"key": "databases", "type": "str"}, - "database_summary": {"key": "databaseSummary", "type": "str"}, - "migration_report_result": {"key": "migrationReportResult", "type": "MigrationReportResult"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - "last_storage_update": {"key": "lastStorageUpdate", "type": "iso-8601"}, - } - - def __init__( - self, - *, - databases: Optional[str] = None, - migration_report_result: Optional["_models.MigrationReportResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword databases: Selected databases as a map from database name to database id. - :paramtype databases: str - :keyword migration_report_result: Migration Report Result, provides unique url for downloading - your migration report. - :paramtype migration_report_result: ~azure.mgmt.datamigration.models.MigrationReportResult - """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.duration_in_seconds: Optional[int] = None - self.status: Optional[Union[str, "_models.MigrationStatus"]] = None - self.status_message: Optional[str] = None - self.message: Optional[str] = None - self.databases = databases - self.database_summary: Optional[str] = None - self.migration_report_result = migration_report_result - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - self.last_storage_update: Optional[datetime.datetime] = None - - -class MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel( - MigrateMySqlAzureDbForMySqlOfflineTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar object_name: Name of the item. - :vartype object_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message. - :vartype status_message: str - :ivar items_count: Number of items. - :vartype items_count: int - :ivar items_completed_count: Number of successfully completed items. - :vartype items_completed_count: int - :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the - item. - :vartype result_prefix: str - :ivar last_storage_update: Last time the storage was updated. - :vartype last_storage_update: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "object_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "state": {"readonly": True}, - "status_message": {"readonly": True}, - "items_count": {"readonly": True}, - "items_completed_count": {"readonly": True}, - "error_prefix": {"readonly": True}, - "result_prefix": {"readonly": True}, - "last_storage_update": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "object_name": {"key": "objectName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "state": {"key": "state", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "items_count": {"key": "itemsCount", "type": "int"}, - "items_completed_count": {"key": "itemsCompletedCount", "type": "int"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "result_prefix": {"key": "resultPrefix", "type": "str"}, - "last_storage_update": {"key": "lastStorageUpdate", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TableLevelOutput" - self.object_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.status_message: Optional[str] = None - self.items_count: Optional[int] = None - self.items_completed_count: Optional[int] = None - self.error_prefix: Optional[str] = None - self.result_prefix: Optional[str] = None - self.last_storage_update: Optional[datetime.datetime] = None - - -class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput] - :ivar is_cloneable: whether the task can be cloned or not. - :vartype is_cloneable: bool - :ivar task_id: Task id. - :vartype task_id: str - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateMySqlAzureDbForMySqlOfflineTaskInput"}, - "output": {"key": "output", "type": "[MigrateMySqlAzureDbForMySqlOfflineTaskOutput]"}, - "is_cloneable": {"key": "isCloneable", "type": "bool"}, - "task_id": {"key": "taskId", "type": "str"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateMySqlAzureDbForMySqlOfflineTaskInput"] = None, - is_cloneable: Optional[bool] = None, - task_id: Optional[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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlOfflineTaskInput - :keyword is_cloneable: whether the task can be cloned or not. - :paramtype is_cloneable: bool - :keyword task_id: Task id. - :paramtype task_id: str - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.MySql.AzureDbForMySql" - self.input = input - self.output: Optional[list["_models.MigrateMySqlAzureDbForMySqlOfflineTaskOutput"]] = None - self.is_cloneable = is_cloneable - self.task_id = task_id - - -class MigrateMySqlAzureDbForMySqlSyncDatabaseInput(_serialization.Model): # pylint: disable=name-too-long - """Database specific information for MySQL to Azure Database for MySQL migration task inputs. - - :ivar name: Name of the database. - :vartype name: str - :ivar target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :vartype target_database_name: str - :ivar migration_setting: Migration settings which tune the migration behavior. - :vartype migration_setting: dict[str, str] - :ivar source_setting: Source settings to tune source endpoint migration behavior. - :vartype source_setting: dict[str, str] - :ivar target_setting: Target settings to tune target endpoint migration behavior. - :vartype target_setting: dict[str, str] - :ivar table_map: Mapping of source to target tables. - :vartype table_map: dict[str, str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "migration_setting": {"key": "migrationSetting", "type": "{str}"}, - "source_setting": {"key": "sourceSetting", "type": "{str}"}, - "target_setting": {"key": "targetSetting", "type": "{str}"}, - "table_map": {"key": "tableMap", "type": "{str}"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - target_database_name: Optional[str] = None, - migration_setting: Optional[dict[str, str]] = None, - source_setting: Optional[dict[str, str]] = None, - target_setting: Optional[dict[str, str]] = None, - table_map: Optional[dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the database. - :paramtype name: str - :keyword target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :paramtype target_database_name: str - :keyword migration_setting: Migration settings which tune the migration behavior. - :paramtype migration_setting: dict[str, str] - :keyword source_setting: Source settings to tune source endpoint migration behavior. - :paramtype source_setting: dict[str, str] - :keyword target_setting: Target settings to tune target endpoint migration behavior. - :paramtype target_setting: dict[str, str] - :keyword table_map: Mapping of source to target tables. - :paramtype table_map: dict[str, str] - """ - super().__init__(**kwargs) - self.name = name - self.target_database_name = target_database_name - self.migration_setting = migration_setting - self.source_setting = source_setting - self.target_setting = target_setting - self.table_map = table_map - - -class MigrateMySqlAzureDbForMySqlSyncTaskInput(_serialization.Model): - """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 server. - - :ivar source_connection_info: Connection information for source MySQL. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar target_connection_info: Connection information for target Azure Database for MySQL. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "MySqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "MySqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateMySqlAzureDbForMySqlSyncDatabaseInput]"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.MySqlConnectionInfo", - target_connection_info: "_models.MySqlConnectionInfo", - selected_databases: list["_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput"], - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Connection information for source MySQL. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword target_connection_info: Connection information for target Azure Database for MySQL. - Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput] - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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, - MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel, - MigrateMySqlAzureDbForMySqlSyncTaskOutputError, - MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel, - MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelErrorOutput": "MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError", - "DatabaseLevelOutput": "MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateMySqlAzureDbForMySqlSyncTaskOutputError", - "MigrationLevelOutput": "MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel", - "TableLevelOutput": "MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError( - MigrateMySqlAzureDbForMySqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error_message: Error message. - :vartype error_message: str - :ivar events: List of error events. - :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - "events": {"key": "events", "type": "[SyncMigrationDatabaseErrorEvent]"}, - } - - def __init__( - self, - *, - error_message: Optional[str] = None, - events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword error_message: Error message. - :paramtype error_message: str - :keyword events: List of error events. - :paramtype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelErrorOutput" - self.error_message = error_message - self.events = events - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel( - MigrateMySqlAzureDbForMySqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", - "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", - "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", - "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and - "BACKUP_COMPLETED". - :vartype migration_state: str or - ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState - :ivar incoming_changes: Number of incoming changes. - :vartype incoming_changes: int - :ivar applied_changes: Number of applied changes. - :vartype applied_changes: int - :ivar cdc_insert_counter: Number of cdc inserts. - :vartype cdc_insert_counter: int - :ivar cdc_delete_counter: Number of cdc deletes. - :vartype cdc_delete_counter: int - :ivar cdc_update_counter: Number of cdc updates. - :vartype cdc_update_counter: int - :ivar full_load_completed_tables: Number of tables completed in full load. - :vartype full_load_completed_tables: int - :ivar full_load_loading_tables: Number of tables loading in full load. - :vartype full_load_loading_tables: int - :ivar full_load_queued_tables: Number of tables queued in full load. - :vartype full_load_queued_tables: int - :ivar full_load_errored_tables: Number of tables errored in full load. - :vartype full_load_errored_tables: int - :ivar initialization_completed: Indicates if initial load (full load) has been completed. - :vartype initialization_completed: bool - :ivar latency: CDC apply latency. - :vartype latency: int - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_state": {"readonly": True}, - "incoming_changes": {"readonly": True}, - "applied_changes": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "full_load_completed_tables": {"readonly": True}, - "full_load_loading_tables": {"readonly": True}, - "full_load_queued_tables": {"readonly": True}, - "full_load_errored_tables": {"readonly": True}, - "initialization_completed": {"readonly": True}, - "latency": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_state": {"key": "migrationState", "type": "str"}, - "incoming_changes": {"key": "incomingChanges", "type": "int"}, - "applied_changes": {"key": "appliedChanges", "type": "int"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "full_load_completed_tables": {"key": "fullLoadCompletedTables", "type": "int"}, - "full_load_loading_tables": {"key": "fullLoadLoadingTables", "type": "int"}, - "full_load_queued_tables": {"key": "fullLoadQueuedTables", "type": "int"}, - "full_load_errored_tables": {"key": "fullLoadErroredTables", "type": "int"}, - "initialization_completed": {"key": "initializationCompleted", "type": "bool"}, - "latency": {"key": "latency", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = None - self.incoming_changes: Optional[int] = None - self.applied_changes: Optional[int] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.full_load_completed_tables: Optional[int] = None - self.full_load_loading_tables: Optional[int] = None - self.full_load_queued_tables: Optional[int] = None - self.full_load_errored_tables: Optional[int] = None - self.initialization_completed: Optional[bool] = None - self.latency: Optional[int] = None - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputError( - MigrateMySqlAzureDbForMySqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlSyncTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel( - MigrateMySqlAzureDbForMySqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server: Source server name. - :vartype source_server: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server: Target server name. - :vartype target_server: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server": {"key": "sourceServer", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server": {"key": "targetServer", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.source_server_version: Optional[str] = None - self.source_server: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server: Optional[str] = None - - -class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel( - MigrateMySqlAzureDbForMySqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar table_name: Name of the table. - :vartype table_name: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar cdc_insert_counter: Number of applied inserts. - :vartype cdc_insert_counter: str - :ivar cdc_update_counter: Number of applied updates. - :vartype cdc_update_counter: str - :ivar cdc_delete_counter: Number of applied deletes. - :vartype cdc_delete_counter: str - :ivar full_load_est_finish_time: Estimate to finish full load. - :vartype full_load_est_finish_time: ~datetime.datetime - :ivar full_load_started_on: Full load start time. - :vartype full_load_started_on: ~datetime.datetime - :ivar full_load_ended_on: Full load end time. - :vartype full_load_ended_on: ~datetime.datetime - :ivar full_load_total_rows: Number of rows applied in full load. - :vartype full_load_total_rows: int - :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", - "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". - :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState - :ivar total_changes_applied: Total number of applied changes. - :vartype total_changes_applied: int - :ivar data_errors_counter: Number of data errors occurred. - :vartype data_errors_counter: int - :ivar last_modified_time: Last modified time on target. - :vartype last_modified_time: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "table_name": {"readonly": True}, - "database_name": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "full_load_est_finish_time": {"readonly": True}, - "full_load_started_on": {"readonly": True}, - "full_load_ended_on": {"readonly": True}, - "full_load_total_rows": {"readonly": True}, - "state": {"readonly": True}, - "total_changes_applied": {"readonly": True}, - "data_errors_counter": {"readonly": True}, - "last_modified_time": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "table_name": {"key": "tableName", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "str"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "str"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "str"}, - "full_load_est_finish_time": {"key": "fullLoadEstFinishTime", "type": "iso-8601"}, - "full_load_started_on": {"key": "fullLoadStartedOn", "type": "iso-8601"}, - "full_load_ended_on": {"key": "fullLoadEndedOn", "type": "iso-8601"}, - "full_load_total_rows": {"key": "fullLoadTotalRows", "type": "int"}, - "state": {"key": "state", "type": "str"}, - "total_changes_applied": {"key": "totalChangesApplied", "type": "int"}, - "data_errors_counter": {"key": "dataErrorsCounter", "type": "int"}, - "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TableLevelOutput" - self.table_name: Optional[str] = None - self.database_name: Optional[str] = None - self.cdc_insert_counter: Optional[str] = None - self.cdc_update_counter: Optional[str] = None - self.cdc_delete_counter: Optional[str] = None - self.full_load_est_finish_time: Optional[datetime.datetime] = None - self.full_load_started_on: Optional[datetime.datetime] = None - self.full_load_ended_on: Optional[datetime.datetime] = None - self.full_load_total_rows: Optional[int] = None - self.state: Optional[Union[str, "_models.SyncTableMigrationState"]] = None - self.total_changes_applied: Optional[int] = None - self.data_errors_counter: Optional[int] = None - self.last_modified_time: Optional[datetime.datetime] = None - - -class MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateMySqlAzureDbForMySqlSyncTaskInput"}, - "output": {"key": "output", "type": "[MigrateMySqlAzureDbForMySqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateMySqlAzureDbForMySqlSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateMySqlAzureDbForMySqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.MySql.AzureDbForMySql.Sync" - self.input = input - self.output: Optional[list["_models.MigrateMySqlAzureDbForMySqlSyncTaskOutput"]] = None - - -class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateOracleAzureDbPostgreSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[MigrateOracleAzureDbPostgreSqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.Oracle.AzureDbForPostgreSql.Sync" - self.input = input - self.output: Optional[list["_models.MigrateOracleAzureDbPostgreSqlSyncTaskOutput"]] = None - - -class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(_serialization.Model): # pylint: disable=name-too-long - """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 - :ivar name: Name of the migration pipeline. - :vartype name: str - :ivar schema_name: Name of the source schema. - :vartype schema_name: str - :ivar table_map: Mapping of source to target tables. - :vartype table_map: dict[str, str] - :ivar target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :vartype target_database_name: str - :ivar migration_setting: Migration settings which tune the migration behavior. - :vartype migration_setting: dict[str, str] - :ivar source_setting: Source settings to tune source endpoint migration behavior. - :vartype source_setting: dict[str, str] - :ivar target_setting: Target settings to tune target endpoint migration behavior. - :vartype target_setting: dict[str, str] - """ - - _attribute_map = { - "case_manipulation": {"key": "caseManipulation", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "schema_name": {"key": "schemaName", "type": "str"}, - "table_map": {"key": "tableMap", "type": "{str}"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "migration_setting": {"key": "migrationSetting", "type": "{str}"}, - "source_setting": {"key": "sourceSetting", "type": "{str}"}, - "target_setting": {"key": "targetSetting", "type": "{str}"}, - } - - def __init__( - self, - *, - case_manipulation: Optional[str] = None, - name: Optional[str] = None, - schema_name: Optional[str] = None, - table_map: Optional[dict[str, str]] = None, - target_database_name: Optional[str] = None, - migration_setting: Optional[dict[str, str]] = None, - source_setting: Optional[dict[str, str]] = None, - target_setting: Optional[dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword case_manipulation: How to handle object name casing: either Preserve or ToLower. - :paramtype case_manipulation: str - :keyword name: Name of the migration pipeline. - :paramtype name: str - :keyword schema_name: Name of the source schema. - :paramtype schema_name: str - :keyword table_map: Mapping of source to target tables. - :paramtype table_map: dict[str, str] - :keyword target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :paramtype target_database_name: str - :keyword migration_setting: Migration settings which tune the migration behavior. - :paramtype migration_setting: dict[str, str] - :keyword source_setting: Source settings to tune source endpoint migration behavior. - :paramtype source_setting: dict[str, str] - :keyword target_setting: Target settings to tune target endpoint migration behavior. - :paramtype target_setting: dict[str, str] - """ - super().__init__(**kwargs) - self.case_manipulation = case_manipulation - self.name = name - self.schema_name = schema_name - self.table_map = table_map - self.target_database_name = target_database_name - self.migration_setting = migration_setting - self.source_setting = source_setting - self.target_setting = target_setting - - -class MigrateOracleAzureDbPostgreSqlSyncTaskInput(_serialization.Model): # pylint: disable=name-too-long - """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 server. - - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput] - :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :ivar source_connection_info: Connection information for source Oracle. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo - """ - - _validation = { - "selected_databases": {"required": True}, - "target_connection_info": {"required": True}, - "source_connection_info": {"required": True}, - } - - _attribute_map = { - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateOracleAzureDbPostgreSqlSyncDatabaseInput]"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - "source_connection_info": {"key": "sourceConnectionInfo", "type": "OracleConnectionInfo"}, - } - - def __init__( - self, - *, - selected_databases: list["_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput"], - target_connection_info: "_models.PostgreSqlConnectionInfo", - source_connection_info: "_models.OracleConnectionInfo", - **kwargs: Any - ) -> None: - """ - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput] - :keyword target_connection_info: Connection information for target Azure Database for - PostgreSQL. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :keyword source_connection_info: Connection information for source Oracle. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo - """ - super().__init__(**kwargs) - self.selected_databases = selected_databases - self.target_connection_info = target_connection_info - self.source_connection_info = source_connection_info - - -class MigrateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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, - MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel, - MigrateOracleAzureDbPostgreSqlSyncTaskOutputError, - MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, - MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelErrorOutput": "MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError", - "DatabaseLevelOutput": "MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateOracleAzureDbPostgreSqlSyncTaskOutputError", - "MigrationLevelOutput": "MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel", - "TableLevelOutput": "MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError( - MigrateOracleAzureDbPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error_message: Error message. - :vartype error_message: str - :ivar events: List of error events. - :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - "events": {"key": "events", "type": "[SyncMigrationDatabaseErrorEvent]"}, - } - - def __init__( - self, - *, - error_message: Optional[str] = None, - events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword error_message: Error message. - :paramtype error_message: str - :keyword events: List of error events. - :paramtype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelErrorOutput" - self.error_message = error_message - self.events = events - - -class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel( - MigrateOracleAzureDbPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", - "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", - "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", - "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and - "BACKUP_COMPLETED". - :vartype migration_state: str or - ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState - :ivar incoming_changes: Number of incoming changes. - :vartype incoming_changes: int - :ivar applied_changes: Number of applied changes. - :vartype applied_changes: int - :ivar cdc_insert_counter: Number of cdc inserts. - :vartype cdc_insert_counter: int - :ivar cdc_delete_counter: Number of cdc deletes. - :vartype cdc_delete_counter: int - :ivar cdc_update_counter: Number of cdc updates. - :vartype cdc_update_counter: int - :ivar full_load_completed_tables: Number of tables completed in full load. - :vartype full_load_completed_tables: int - :ivar full_load_loading_tables: Number of tables loading in full load. - :vartype full_load_loading_tables: int - :ivar full_load_queued_tables: Number of tables queued in full load. - :vartype full_load_queued_tables: int - :ivar full_load_errored_tables: Number of tables errored in full load. - :vartype full_load_errored_tables: int - :ivar initialization_completed: Indicates if initial load (full load) has been completed. - :vartype initialization_completed: bool - :ivar latency: CDC apply latency. - :vartype latency: int - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_state": {"readonly": True}, - "incoming_changes": {"readonly": True}, - "applied_changes": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "full_load_completed_tables": {"readonly": True}, - "full_load_loading_tables": {"readonly": True}, - "full_load_queued_tables": {"readonly": True}, - "full_load_errored_tables": {"readonly": True}, - "initialization_completed": {"readonly": True}, - "latency": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_state": {"key": "migrationState", "type": "str"}, - "incoming_changes": {"key": "incomingChanges", "type": "int"}, - "applied_changes": {"key": "appliedChanges", "type": "int"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "full_load_completed_tables": {"key": "fullLoadCompletedTables", "type": "int"}, - "full_load_loading_tables": {"key": "fullLoadLoadingTables", "type": "int"}, - "full_load_queued_tables": {"key": "fullLoadQueuedTables", "type": "int"}, - "full_load_errored_tables": {"key": "fullLoadErroredTables", "type": "int"}, - "initialization_completed": {"key": "initializationCompleted", "type": "bool"}, - "latency": {"key": "latency", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = None - self.incoming_changes: Optional[int] = None - self.applied_changes: Optional[int] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.full_load_completed_tables: Optional[int] = None - self.full_load_loading_tables: Optional[int] = None - self.full_load_queued_tables: Optional[int] = None - self.full_load_errored_tables: Optional[int] = None - self.initialization_completed: Optional[bool] = None - self.latency: Optional[int] = None - - -class MigrateOracleAzureDbPostgreSqlSyncTaskOutputError( - MigrateOracleAzureDbPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateOracleAzureDbPostgreSqlSyncTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel( - MigrateOracleAzureDbPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server: Source server name. - :vartype source_server: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server: Target server name. - :vartype target_server: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server": {"key": "sourceServer", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server": {"key": "targetServer", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.source_server_version: Optional[str] = None - self.source_server: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server: Optional[str] = None - - -class MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel( - MigrateOracleAzureDbPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar table_name: Name of the table. - :vartype table_name: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar cdc_insert_counter: Number of applied inserts. - :vartype cdc_insert_counter: int - :ivar cdc_update_counter: Number of applied updates. - :vartype cdc_update_counter: int - :ivar cdc_delete_counter: Number of applied deletes. - :vartype cdc_delete_counter: int - :ivar full_load_est_finish_time: Estimate to finish full load. - :vartype full_load_est_finish_time: ~datetime.datetime - :ivar full_load_started_on: Full load start time. - :vartype full_load_started_on: ~datetime.datetime - :ivar full_load_ended_on: Full load end time. - :vartype full_load_ended_on: ~datetime.datetime - :ivar full_load_total_rows: Number of rows applied in full load. - :vartype full_load_total_rows: int - :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", - "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". - :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState - :ivar total_changes_applied: Total number of applied changes. - :vartype total_changes_applied: int - :ivar data_errors_counter: Number of data errors occurred. - :vartype data_errors_counter: int - :ivar last_modified_time: Last modified time on target. - :vartype last_modified_time: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "table_name": {"readonly": True}, - "database_name": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "full_load_est_finish_time": {"readonly": True}, - "full_load_started_on": {"readonly": True}, - "full_load_ended_on": {"readonly": True}, - "full_load_total_rows": {"readonly": True}, - "state": {"readonly": True}, - "total_changes_applied": {"readonly": True}, - "data_errors_counter": {"readonly": True}, - "last_modified_time": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "table_name": {"key": "tableName", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "full_load_est_finish_time": {"key": "fullLoadEstFinishTime", "type": "iso-8601"}, - "full_load_started_on": {"key": "fullLoadStartedOn", "type": "iso-8601"}, - "full_load_ended_on": {"key": "fullLoadEndedOn", "type": "iso-8601"}, - "full_load_total_rows": {"key": "fullLoadTotalRows", "type": "int"}, - "state": {"key": "state", "type": "str"}, - "total_changes_applied": {"key": "totalChangesApplied", "type": "int"}, - "data_errors_counter": {"key": "dataErrorsCounter", "type": "int"}, - "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TableLevelOutput" - self.table_name: Optional[str] = None - self.database_name: Optional[str] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.full_load_est_finish_time: Optional[datetime.datetime] = None - self.full_load_started_on: Optional[datetime.datetime] = None - self.full_load_ended_on: Optional[datetime.datetime] = None - self.full_load_total_rows: Optional[int] = None - self.state: Optional[Union[str, "_models.SyncTableMigrationState"]] = None - self.total_changes_applied: Optional[int] = None - self.data_errors_counter: Optional[int] = None - self.last_modified_time: Optional[datetime.datetime] = None - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(_serialization.Model): # pylint: disable=name-too-long - """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. - - :ivar name: Name of the database. - :vartype name: str - :ivar id: Result identifier. - :vartype id: str - :ivar target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :vartype target_database_name: str - :ivar migration_setting: Migration settings which tune the migration behavior. - :vartype migration_setting: dict[str, any] - :ivar source_setting: Source settings to tune source endpoint migration behavior. - :vartype source_setting: dict[str, str] - :ivar target_setting: Target settings to tune target endpoint migration behavior. - :vartype target_setting: dict[str, str] - :ivar selected_tables: Tables selected for migration. - :vartype selected_tables: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput] - """ - - _validation = { - "id": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "migration_setting": {"key": "migrationSetting", "type": "{object}"}, - "source_setting": {"key": "sourceSetting", "type": "{str}"}, - "target_setting": {"key": "targetSetting", "type": "{str}"}, - "selected_tables": { - "key": "selectedTables", - "type": "[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput]", - }, - } - - def __init__( - self, - *, - name: Optional[str] = None, - target_database_name: Optional[str] = None, - migration_setting: Optional[dict[str, Any]] = None, - source_setting: Optional[dict[str, str]] = None, - target_setting: Optional[dict[str, str]] = None, - selected_tables: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the database. - :paramtype name: str - :keyword target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :paramtype target_database_name: str - :keyword migration_setting: Migration settings which tune the migration behavior. - :paramtype migration_setting: dict[str, any] - :keyword source_setting: Source settings to tune source endpoint migration behavior. - :paramtype source_setting: dict[str, str] - :keyword target_setting: Target settings to tune target endpoint migration behavior. - :paramtype target_setting: dict[str, str] - :keyword selected_tables: Tables selected for migration. - :paramtype selected_tables: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput] - """ - super().__init__(**kwargs) - self.name = name - self.id: Optional[str] = None - self.target_database_name = target_database_name - self.migration_setting = migration_setting - self.source_setting = source_setting - self.target_setting = target_setting - self.selected_tables = selected_tables - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput( - _serialization.Model -): # pylint: disable=name-too-long - """Selected tables for the migration. - - :ivar name: Name of the table to migrate. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Name of the table to migrate. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] - :ivar target_connection_info: Connection information for target Azure Database for PostgreSQL. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :ivar source_connection_info: Connection information for source PostgreSQL. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - """ - - _validation = { - "selected_databases": {"required": True}, - "target_connection_info": {"required": True}, - "source_connection_info": {"required": True}, - "started_on": {"readonly": True}, - } - - _attribute_map = { - "selected_databases": { - "key": "selectedDatabases", - "type": "[MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]", - }, - "target_connection_info": {"key": "targetConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - "source_connection_info": {"key": "sourceConnectionInfo", "type": "PostgreSqlConnectionInfo"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - } - - def __init__( - self, - *, - selected_databases: list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput"], - target_connection_info: "_models.PostgreSqlConnectionInfo", - source_connection_info: "_models.PostgreSqlConnectionInfo", - encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput] - :keyword target_connection_info: Connection information for target Azure Database for - PostgreSQL. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :keyword source_connection_info: Connection information for source PostgreSQL. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - """ - super().__init__(**kwargs) - self.selected_databases = selected_databases - self.target_connection_info = target_connection_info - self.source_connection_info = source_connection_info - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - self.started_on: Optional[datetime.datetime] = None - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelErrorOutput": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError", - "DatabaseLevelOutput": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel", - "ErrorOutput": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError", - "MigrationLevelOutput": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel", - "TableLevelOutput": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError( - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error_message: Error message. - :vartype error_message: str - :ivar events: List of error events. - :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - "events": {"key": "events", "type": "[SyncMigrationDatabaseErrorEvent]"}, - } - - def __init__( - self, - *, - error_message: Optional[str] = None, - events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword error_message: Error message. - :paramtype error_message: str - :keyword events: List of error events. - :paramtype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelErrorOutput" - self.error_message = error_message - self.events = events - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel( - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", - "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", - "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", - "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and - "BACKUP_COMPLETED". - :vartype migration_state: str or - ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState - :ivar incoming_changes: Number of incoming changes. - :vartype incoming_changes: int - :ivar applied_changes: Number of applied changes. - :vartype applied_changes: int - :ivar cdc_insert_counter: Number of cdc inserts. - :vartype cdc_insert_counter: int - :ivar cdc_delete_counter: Number of cdc deletes. - :vartype cdc_delete_counter: int - :ivar cdc_update_counter: Number of cdc updates. - :vartype cdc_update_counter: int - :ivar full_load_completed_tables: Number of tables completed in full load. - :vartype full_load_completed_tables: int - :ivar full_load_loading_tables: Number of tables loading in full load. - :vartype full_load_loading_tables: int - :ivar full_load_queued_tables: Number of tables queued in full load. - :vartype full_load_queued_tables: int - :ivar full_load_errored_tables: Number of tables errored in full load. - :vartype full_load_errored_tables: int - :ivar initialization_completed: Indicates if initial load (full load) has been completed. - :vartype initialization_completed: bool - :ivar latency: CDC apply latency. - :vartype latency: int - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_state": {"readonly": True}, - "incoming_changes": {"readonly": True}, - "applied_changes": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "full_load_completed_tables": {"readonly": True}, - "full_load_loading_tables": {"readonly": True}, - "full_load_queued_tables": {"readonly": True}, - "full_load_errored_tables": {"readonly": True}, - "initialization_completed": {"readonly": True}, - "latency": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_state": {"key": "migrationState", "type": "str"}, - "incoming_changes": {"key": "incomingChanges", "type": "int"}, - "applied_changes": {"key": "appliedChanges", "type": "int"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "full_load_completed_tables": {"key": "fullLoadCompletedTables", "type": "int"}, - "full_load_loading_tables": {"key": "fullLoadLoadingTables", "type": "int"}, - "full_load_queued_tables": {"key": "fullLoadQueuedTables", "type": "int"}, - "full_load_errored_tables": {"key": "fullLoadErroredTables", "type": "int"}, - "initialization_completed": {"key": "initializationCompleted", "type": "bool"}, - "latency": {"key": "latency", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = None - self.incoming_changes: Optional[int] = None - self.applied_changes: Optional[int] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.full_load_completed_tables: Optional[int] = None - self.full_load_loading_tables: Optional[int] = None - self.full_load_queued_tables: Optional[int] = None - self.full_load_errored_tables: Optional[int] = None - self.initialization_completed: Optional[bool] = None - self.latency: Optional[int] = None - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError( - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - :ivar events: List of error events. - :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - "events": {"key": "events", "type": "[SyncMigrationDatabaseErrorEvent]"}, - } - - 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] - """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - self.events = events - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel( - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server: Source server name. - :vartype source_server: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server: Target server name. - :vartype target_server: str - :ivar source_server_type: Source server type. Known values are: "Access", "DB2", "MySQL", - "Oracle", "SQL", "Sybase", "PostgreSQL", "MongoDB", "SQLRDS", "MySQLRDS", and "PostgreSQLRDS". - :vartype source_server_type: str or ~azure.mgmt.datamigration.models.ScenarioSource - :ivar target_server_type: Target server type. Known values are: "SQLServer", "SQLDB", "SQLDW", - "SQLMI", "AzureDBForMySql", "AzureDBForPostgresSQL", and "MongoDB". - :vartype target_server_type: str or ~azure.mgmt.datamigration.models.ScenarioTarget - :ivar state: Migration status. Known values are: "UNDEFINED", "VALIDATING", "PENDING", - "COMPLETE", "ACTION_REQUIRED", and "FAILED". - :vartype state: str or ~azure.mgmt.datamigration.models.ReplicateMigrationState - :ivar database_count: Number of databases to include. - :vartype database_count: float - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server": {"readonly": True}, - "source_server_type": {"readonly": True}, - "target_server_type": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server": {"key": "sourceServer", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server": {"key": "targetServer", "type": "str"}, - "source_server_type": {"key": "sourceServerType", "type": "str"}, - "target_server_type": {"key": "targetServerType", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "database_count": {"key": "databaseCount", "type": "float"}, - } - - def __init__(self, *, database_count: Optional[float] = None, **kwargs: Any) -> None: - """ - :keyword database_count: Number of databases to include. - :paramtype database_count: float - """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.source_server_version: Optional[str] = None - self.source_server: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server: Optional[str] = None - self.source_server_type: Optional[Union[str, "_models.ScenarioSource"]] = None - self.target_server_type: Optional[Union[str, "_models.ScenarioTarget"]] = None - self.state: Optional[Union[str, "_models.ReplicateMigrationState"]] = None - self.database_count = database_count - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel( - MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput -): # pylint: disable=name-too-long - """MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar table_name: Name of the table. - :vartype table_name: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar cdc_insert_counter: Number of applied inserts. - :vartype cdc_insert_counter: int - :ivar cdc_update_counter: Number of applied updates. - :vartype cdc_update_counter: int - :ivar cdc_delete_counter: Number of applied deletes. - :vartype cdc_delete_counter: int - :ivar full_load_est_finish_time: Estimate to finish full load. - :vartype full_load_est_finish_time: ~datetime.datetime - :ivar full_load_started_on: Full load start time. - :vartype full_load_started_on: ~datetime.datetime - :ivar full_load_ended_on: Full load end time. - :vartype full_load_ended_on: ~datetime.datetime - :ivar full_load_total_rows: Number of rows applied in full load. - :vartype full_load_total_rows: int - :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", - "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". - :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState - :ivar total_changes_applied: Total number of applied changes. - :vartype total_changes_applied: int - :ivar data_errors_counter: Number of data errors occurred. - :vartype data_errors_counter: int - :ivar last_modified_time: Last modified time on target. - :vartype last_modified_time: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "table_name": {"readonly": True}, - "database_name": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "full_load_est_finish_time": {"readonly": True}, - "full_load_started_on": {"readonly": True}, - "full_load_ended_on": {"readonly": True}, - "full_load_total_rows": {"readonly": True}, - "state": {"readonly": True}, - "total_changes_applied": {"readonly": True}, - "data_errors_counter": {"readonly": True}, - "last_modified_time": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "table_name": {"key": "tableName", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "full_load_est_finish_time": {"key": "fullLoadEstFinishTime", "type": "iso-8601"}, - "full_load_started_on": {"key": "fullLoadStartedOn", "type": "iso-8601"}, - "full_load_ended_on": {"key": "fullLoadEndedOn", "type": "iso-8601"}, - "full_load_total_rows": {"key": "fullLoadTotalRows", "type": "int"}, - "state": {"key": "state", "type": "str"}, - "total_changes_applied": {"key": "totalChangesApplied", "type": "int"}, - "data_errors_counter": {"key": "dataErrorsCounter", "type": "int"}, - "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TableLevelOutput" - self.table_name: Optional[str] = None - self.database_name: Optional[str] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.full_load_est_finish_time: Optional[datetime.datetime] = None - self.full_load_started_on: Optional[datetime.datetime] = None - self.full_load_ended_on: Optional[datetime.datetime] = None - self.full_load_total_rows: Optional[int] = None - self.state: Optional[Union[str, "_models.SyncTableMigrationState"]] = None - self.total_changes_applied: Optional[int] = None - self.data_errors_counter: Optional[int] = None - self.last_modified_time: Optional[datetime.datetime] = None - - -class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: - ~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput] - :ivar task_id: task id. - :vartype task_id: str - :ivar created_on: DateTime in UTC when the task was created. - :vartype created_on: str - :ivar is_cloneable: whether the task can be cloned or not. - :vartype is_cloneable: bool - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput]"}, - "task_id": {"key": "taskId", "type": "str"}, - "created_on": {"key": "createdOn", "type": "str"}, - "is_cloneable": {"key": "isCloneable", "type": "bool"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput"] = None, - task_id: Optional[str] = None, - created_on: Optional[str] = None, - is_cloneable: Optional[bool] = 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] - :keyword input: Task input. - :paramtype input: - ~azure.mgmt.datamigration.models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput - :keyword task_id: task id. - :paramtype task_id: str - :keyword created_on: DateTime in UTC when the task was created. - :paramtype created_on: str - :keyword is_cloneable: whether the task can be cloned or not. - :paramtype is_cloneable: bool - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2" - self.input = input - self.output: Optional[list["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput"]] = None - self.task_id = task_id - self.created_on = created_on - self.is_cloneable = is_cloneable - - -class MigrateSchemaSqlServerSqlDbDatabaseInput(_serialization.Model): - """Database input for migrate schema Sql Server to Azure SQL Server scenario. - - :ivar name: Name of source database. - :vartype name: str - :ivar id: Id of the source database. - :vartype id: str - :ivar target_database_name: Name of target database. - :vartype target_database_name: str - :ivar schema_setting: Database schema migration settings. - :vartype schema_setting: ~azure.mgmt.datamigration.models.SchemaMigrationSetting - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "schema_setting": {"key": "schemaSetting", "type": "SchemaMigrationSetting"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - target_database_name: Optional[str] = None, - schema_setting: Optional["_models.SchemaMigrationSetting"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of source database. - :paramtype name: str - :keyword id: Id of the source database. - :paramtype id: str - :keyword target_database_name: Name of target database. - :paramtype target_database_name: str - :keyword schema_setting: Database schema migration settings. - :paramtype schema_setting: ~azure.mgmt.datamigration.models.SchemaMigrationSetting - """ - super().__init__(**kwargs) - self.name = name - self.id = id - self.target_database_name = target_database_name - self.schema_setting = schema_setting - - -class SqlMigrationTaskInput(_serialization.Model): - """Base class for migration task input. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - - -class MigrateSchemaSqlServerSqlDbTaskInput(SqlMigrationTaskInput): - """Input for task that migrates Schema for SQL Server databases to Azure SQL databases. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - :ivar started_on: Migration start time. - :vartype started_on: str - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSchemaSqlServerSqlDbDatabaseInput]"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - "started_on": {"key": "startedOn", "type": "str"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_databases: list["_models.MigrateSchemaSqlServerSqlDbDatabaseInput"], - encrypted_key_for_secure_fields: Optional[str] = None, - started_on: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbDatabaseInput] - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - :keyword started_on: Migration start time. - :paramtype started_on: str - """ - super().__init__( - source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs - ) - self.selected_databases = selected_databases - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - self.started_on = started_on - - -class MigrateSchemaSqlServerSqlDbTaskOutput(_serialization.Model): - """Output for the task that migrates Schema for SQL Server databases to Azure SQL databases. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlTaskOutputError, - MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, MigrateSchemaSqlServerSqlDbTaskOutputError - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelOutput": "MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateSchemaSqlTaskOutputError", - "MigrationLevelOutput": "MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel", - "SchemaErrorOutput": "MigrateSchemaSqlServerSqlDbTaskOutputError", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel( - MigrateSchemaSqlServerSqlDbTaskOutput -): # pylint: disable=name-too-long - """MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: The name of the database. - :vartype database_name: str - :ivar state: State of the schema migration for this database. Known values are: "None", - "InProgress", "Failed", "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Schema migration stage for this database. Known values are: "NotStarted", - "ValidatingInputs", "CollectingObjects", "DownloadingScript", "GeneratingScript", - "UploadingScript", "DeployingSchema", "Completed", "CompletedWithWarnings", and "Failed". - :vartype stage: str or ~azure.mgmt.datamigration.models.SchemaMigrationStage - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar database_error_result_prefix: Prefix string to use for querying errors for this database. - :vartype database_error_result_prefix: str - :ivar schema_error_result_prefix: Prefix string to use for querying schema errors for this - database. - :vartype schema_error_result_prefix: str - :ivar number_of_successful_operations: Number of successful operations for this database. - :vartype number_of_successful_operations: int - :ivar number_of_failed_operations: Number of failed operations for this database. - :vartype number_of_failed_operations: int - :ivar file_id: Identifier for the file resource containing the schema of this database. - :vartype file_id: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "state": {"readonly": True}, - "stage": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "database_error_result_prefix": {"readonly": True}, - "schema_error_result_prefix": {"readonly": True}, - "number_of_successful_operations": {"readonly": True}, - "number_of_failed_operations": {"readonly": True}, - "file_id": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "stage": {"key": "stage", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "database_error_result_prefix": {"key": "databaseErrorResultPrefix", "type": "str"}, - "schema_error_result_prefix": {"key": "schemaErrorResultPrefix", "type": "str"}, - "number_of_successful_operations": {"key": "numberOfSuccessfulOperations", "type": "int"}, - "number_of_failed_operations": {"key": "numberOfFailedOperations", "type": "int"}, - "file_id": {"key": "fileId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.stage: Optional[Union[str, "_models.SchemaMigrationStage"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.database_error_result_prefix: Optional[str] = None - self.schema_error_result_prefix: Optional[str] = None - self.number_of_successful_operations: Optional[int] = None - self.number_of_failed_operations: Optional[int] = None - self.file_id: Optional[str] = None - - -class MigrateSchemaSqlServerSqlDbTaskOutputError( - MigrateSchemaSqlServerSqlDbTaskOutput -): # pylint: disable=name-too-long - """MigrateSchemaSqlServerSqlDbTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar command_text: Schema command which failed. - :vartype command_text: str - :ivar error_text: Reason of failure. - :vartype error_text: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "command_text": {"readonly": True}, - "error_text": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "command_text": {"key": "commandText", "type": "str"}, - "error_text": {"key": "errorText", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "SchemaErrorOutput" - self.command_text: Optional[str] = None - self.error_text: Optional[str] = None - - -class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel( - MigrateSchemaSqlServerSqlDbTaskOutput -): # pylint: disable=name-too-long - """MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar state: Overall state of the schema migration. Known values are: "None", "InProgress", - "Failed", "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "state": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - - -class MigrateSchemaSqlServerSqlDbTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """Properties for task that migrates Schema for SQL Server databases to Azure SQL databases. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskOutput] - :ivar created_on: DateTime in UTC when the task was created. - :vartype created_on: str - :ivar task_id: Task id. - :vartype task_id: str - :ivar is_cloneable: whether the task can be cloned or not. - :vartype is_cloneable: bool - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateSchemaSqlServerSqlDbTaskInput"}, - "output": {"key": "output", "type": "[MigrateSchemaSqlServerSqlDbTaskOutput]"}, - "created_on": {"key": "createdOn", "type": "str"}, - "task_id": {"key": "taskId", "type": "str"}, - "is_cloneable": {"key": "isCloneable", "type": "bool"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateSchemaSqlServerSqlDbTaskInput"] = None, - created_on: Optional[str] = None, - task_id: Optional[str] = None, - is_cloneable: Optional[bool] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSchemaSqlServerSqlDbTaskInput - :keyword created_on: DateTime in UTC when the task was created. - :paramtype created_on: str - :keyword task_id: Task id. - :paramtype task_id: str - :keyword is_cloneable: whether the task can be cloned or not. - :paramtype is_cloneable: bool - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "MigrateSchemaSqlServerSqlDb" - self.input = input - self.output: Optional[list["_models.MigrateSchemaSqlServerSqlDbTaskOutput"]] = None - self.created_on = created_on - self.task_id = task_id - self.is_cloneable = is_cloneable - - -class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): - """MigrateSchemaSqlTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateSqlServerDatabaseInput(_serialization.Model): - """Database specific information for SQL to SQL migration task inputs. - - :ivar name: Name of the database. - :vartype name: str - :ivar restore_database_name: Name of the database at destination. - :vartype restore_database_name: str - :ivar backup_and_restore_folder: The backup and restore folder. - :vartype backup_and_restore_folder: str - :ivar database_files: The list of database files. - :vartype database_files: list[~azure.mgmt.datamigration.models.DatabaseFileInput] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "restore_database_name": {"key": "restoreDatabaseName", "type": "str"}, - "backup_and_restore_folder": {"key": "backupAndRestoreFolder", "type": "str"}, - "database_files": {"key": "databaseFiles", "type": "[DatabaseFileInput]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - restore_database_name: Optional[str] = None, - backup_and_restore_folder: Optional[str] = None, - database_files: Optional[list["_models.DatabaseFileInput"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the database. - :paramtype name: str - :keyword restore_database_name: Name of the database at destination. - :paramtype restore_database_name: str - :keyword backup_and_restore_folder: The backup and restore folder. - :paramtype backup_and_restore_folder: str - :keyword database_files: The list of database files. - :paramtype database_files: list[~azure.mgmt.datamigration.models.DatabaseFileInput] - """ - super().__init__(**kwargs) - self.name = name - self.restore_database_name = restore_database_name - self.backup_and_restore_folder = backup_and_restore_folder - self.database_files = database_files - - -class MigrateSqlServerSqlDbDatabaseInput(_serialization.Model): - """Database specific information for SQL to Azure SQL DB migration task inputs. - - :ivar name: Name of the database. - :vartype name: str - :ivar target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :vartype target_database_name: str - :ivar make_source_db_read_only: Whether to set database read only before migration. - :vartype make_source_db_read_only: bool - :ivar table_map: Mapping of source to target tables. - :vartype table_map: dict[str, str] - :ivar schema_setting: Settings selected for DB schema migration. - :vartype schema_setting: JSON - :ivar id: id of the database. - :vartype id: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "make_source_db_read_only": {"key": "makeSourceDbReadOnly", "type": "bool"}, - "table_map": {"key": "tableMap", "type": "{str}"}, - "schema_setting": {"key": "schemaSetting", "type": "object"}, - "id": {"key": "id", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - target_database_name: Optional[str] = None, - make_source_db_read_only: Optional[bool] = None, - table_map: Optional[dict[str, str]] = None, - schema_setting: Optional[JSON] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the database. - :paramtype name: str - :keyword target_database_name: Name of target database. Note: Target database will be truncated - before starting migration. - :paramtype target_database_name: str - :keyword make_source_db_read_only: Whether to set database read only before migration. - :paramtype make_source_db_read_only: bool - :keyword table_map: Mapping of source to target tables. - :paramtype table_map: dict[str, str] - :keyword schema_setting: Settings selected for DB schema migration. - :paramtype schema_setting: JSON - :keyword id: id of the database. - :paramtype id: str - """ - super().__init__(**kwargs) - self.name = name - self.target_database_name = target_database_name - self.make_source_db_read_only = make_source_db_read_only - self.table_map = table_map - self.schema_setting = schema_setting - self.id = id - - -class MigrateSqlServerSqlDbSyncDatabaseInput(_serialization.Model): - """Database specific information for SQL to Azure SQL DB sync migration task inputs. - - :ivar id: Unique identifier for database. - :vartype id: str - :ivar name: Name of database. - :vartype name: str - :ivar target_database_name: Target database name. - :vartype target_database_name: str - :ivar schema_name: Schema name to be migrated. - :vartype schema_name: str - :ivar table_map: Mapping of source to target tables. - :vartype table_map: dict[str, str] - :ivar migration_setting: Migration settings which tune the migration behavior. - :vartype migration_setting: dict[str, str] - :ivar source_setting: Source settings to tune source endpoint migration behavior. - :vartype source_setting: dict[str, str] - :ivar target_setting: Target settings to tune target endpoint migration behavior. - :vartype target_setting: dict[str, str] - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "schema_name": {"key": "schemaName", "type": "str"}, - "table_map": {"key": "tableMap", "type": "{str}"}, - "migration_setting": {"key": "migrationSetting", "type": "{str}"}, - "source_setting": {"key": "sourceSetting", "type": "{str}"}, - "target_setting": {"key": "targetSetting", "type": "{str}"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - name: Optional[str] = None, - target_database_name: Optional[str] = None, - schema_name: Optional[str] = None, - table_map: Optional[dict[str, str]] = None, - migration_setting: Optional[dict[str, str]] = None, - source_setting: Optional[dict[str, str]] = None, - target_setting: Optional[dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Unique identifier for database. - :paramtype id: str - :keyword name: Name of database. - :paramtype name: str - :keyword target_database_name: Target database name. - :paramtype target_database_name: str - :keyword schema_name: Schema name to be migrated. - :paramtype schema_name: str - :keyword table_map: Mapping of source to target tables. - :paramtype table_map: dict[str, str] - :keyword migration_setting: Migration settings which tune the migration behavior. - :paramtype migration_setting: dict[str, str] - :keyword source_setting: Source settings to tune source endpoint migration behavior. - :paramtype source_setting: dict[str, str] - :keyword target_setting: Target settings to tune target endpoint migration behavior. - :paramtype target_setting: dict[str, str] - """ - super().__init__(**kwargs) - self.id = id - self.name = name - self.target_database_name = target_database_name - self.schema_name = schema_name - self.table_map = table_map - self.migration_setting = migration_setting - self.source_setting = source_setting - self.target_setting = target_setting - - -class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): - """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 server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - :ivar validation_options: Validation options. - :vartype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlDbSyncDatabaseInput]"}, - "validation_options": {"key": "validationOptions", "type": "MigrationValidationOptions"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], - validation_options: Optional["_models.MigrationValidationOptions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - :keyword validation_options: Validation options. - :paramtype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions - """ - super().__init__( - source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs - ) - self.selected_databases = selected_databases - self.validation_options = validation_options - - -class MigrateSqlServerSqlDbSyncTaskOutput(_serialization.Model): - """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, - MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel, MigrateSqlServerSqlDbSyncTaskOutputError, - MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel, - MigrateSqlServerSqlDbSyncTaskOutputTableLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelErrorOutput": "MigrateSqlServerSqlDbSyncTaskOutputDatabaseError", - "DatabaseLevelOutput": "MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateSqlServerSqlDbSyncTaskOutputError", - "MigrationLevelOutput": "MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel", - "TableLevelOutput": "MigrateSqlServerSqlDbSyncTaskOutputTableLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError( - MigrateSqlServerSqlDbSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbSyncTaskOutputDatabaseError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error_message: Error message. - :vartype error_message: str - :ivar events: List of error events. - :vartype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - "events": {"key": "events", "type": "[SyncMigrationDatabaseErrorEvent]"}, - } - - def __init__( - self, - *, - error_message: Optional[str] = None, - events: Optional[list["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword error_message: Error message. - :paramtype error_message: str - :keyword events: List of error events. - :paramtype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] - """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelErrorOutput" - self.error_message = error_message - self.events = events - - -class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel( - MigrateSqlServerSqlDbSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar migration_state: Migration state that this database is in. Known values are: "UNDEFINED", - "CONFIGURING", "INITIALIAZING", "STARTING", "RUNNING", "READY_TO_COMPLETE", "COMPLETING", - "COMPLETE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATING", "VALIDATION_COMPLETE", - "VALIDATION_FAILED", "RESTORE_IN_PROGRESS", "RESTORE_COMPLETED", "BACKUP_IN_PROGRESS", and - "BACKUP_COMPLETED". - :vartype migration_state: str or - ~azure.mgmt.datamigration.models.SyncDatabaseMigrationReportingState - :ivar incoming_changes: Number of incoming changes. - :vartype incoming_changes: int - :ivar applied_changes: Number of applied changes. - :vartype applied_changes: int - :ivar cdc_insert_counter: Number of cdc inserts. - :vartype cdc_insert_counter: int - :ivar cdc_delete_counter: Number of cdc deletes. - :vartype cdc_delete_counter: int - :ivar cdc_update_counter: Number of cdc updates. - :vartype cdc_update_counter: int - :ivar full_load_completed_tables: Number of tables completed in full load. - :vartype full_load_completed_tables: int - :ivar full_load_loading_tables: Number of tables loading in full load. - :vartype full_load_loading_tables: int - :ivar full_load_queued_tables: Number of tables queued in full load. - :vartype full_load_queued_tables: int - :ivar full_load_errored_tables: Number of tables errored in full load. - :vartype full_load_errored_tables: int - :ivar initialization_completed: Indicates if initial load (full load) has been completed. - :vartype initialization_completed: bool - :ivar latency: CDC apply latency. - :vartype latency: int - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "migration_state": {"readonly": True}, - "incoming_changes": {"readonly": True}, - "applied_changes": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "full_load_completed_tables": {"readonly": True}, - "full_load_loading_tables": {"readonly": True}, - "full_load_queued_tables": {"readonly": True}, - "full_load_errored_tables": {"readonly": True}, - "initialization_completed": {"readonly": True}, - "latency": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "migration_state": {"key": "migrationState", "type": "str"}, - "incoming_changes": {"key": "incomingChanges", "type": "int"}, - "applied_changes": {"key": "appliedChanges", "type": "int"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "full_load_completed_tables": {"key": "fullLoadCompletedTables", "type": "int"}, - "full_load_loading_tables": {"key": "fullLoadLoadingTables", "type": "int"}, - "full_load_queued_tables": {"key": "fullLoadQueuedTables", "type": "int"}, - "full_load_errored_tables": {"key": "fullLoadErroredTables", "type": "int"}, - "initialization_completed": {"key": "initializationCompleted", "type": "bool"}, - "latency": {"key": "latency", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.migration_state: Optional[Union[str, "_models.SyncDatabaseMigrationReportingState"]] = None - self.incoming_changes: Optional[int] = None - self.applied_changes: Optional[int] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.full_load_completed_tables: Optional[int] = None - self.full_load_loading_tables: Optional[int] = None - self.full_load_queued_tables: Optional[int] = None - self.full_load_errored_tables: Optional[int] = None - self.initialization_completed: Optional[bool] = None - self.latency: Optional[int] = None - - -class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutput): - """MigrateSqlServerSqlDbSyncTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel( - MigrateSqlServerSqlDbSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server: Source server name. - :vartype source_server: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server: Target server name. - :vartype target_server: str - :ivar database_count: Count of databases. - :vartype database_count: int - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server": {"readonly": True}, - "database_count": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server": {"key": "sourceServer", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server": {"key": "targetServer", "type": "str"}, - "database_count": {"key": "databaseCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.source_server_version: Optional[str] = None - self.source_server: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server: Optional[str] = None - self.database_count: Optional[int] = None - - -class MigrateSqlServerSqlDbSyncTaskOutputTableLevel( - MigrateSqlServerSqlDbSyncTaskOutput -): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbSyncTaskOutputTableLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar table_name: Name of the table. - :vartype table_name: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar cdc_insert_counter: Number of applied inserts. - :vartype cdc_insert_counter: int - :ivar cdc_update_counter: Number of applied updates. - :vartype cdc_update_counter: int - :ivar cdc_delete_counter: Number of applied deletes. - :vartype cdc_delete_counter: int - :ivar full_load_est_finish_time: Estimate to finish full load. - :vartype full_load_est_finish_time: ~datetime.datetime - :ivar full_load_started_on: Full load start time. - :vartype full_load_started_on: ~datetime.datetime - :ivar full_load_ended_on: Full load end time. - :vartype full_load_ended_on: ~datetime.datetime - :ivar full_load_total_rows: Number of rows applied in full load. - :vartype full_load_total_rows: int - :ivar state: Current state of the table migration. Known values are: "BEFORE_LOAD", - "FULL_LOAD", "COMPLETED", "CANCELED", "ERROR", and "FAILED". - :vartype state: str or ~azure.mgmt.datamigration.models.SyncTableMigrationState - :ivar total_changes_applied: Total number of applied changes. - :vartype total_changes_applied: int - :ivar data_errors_counter: Number of data errors occurred. - :vartype data_errors_counter: int - :ivar last_modified_time: Last modified time on target. - :vartype last_modified_time: ~datetime.datetime - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "table_name": {"readonly": True}, - "database_name": {"readonly": True}, - "cdc_insert_counter": {"readonly": True}, - "cdc_update_counter": {"readonly": True}, - "cdc_delete_counter": {"readonly": True}, - "full_load_est_finish_time": {"readonly": True}, - "full_load_started_on": {"readonly": True}, - "full_load_ended_on": {"readonly": True}, - "full_load_total_rows": {"readonly": True}, - "state": {"readonly": True}, - "total_changes_applied": {"readonly": True}, - "data_errors_counter": {"readonly": True}, - "last_modified_time": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "table_name": {"key": "tableName", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "cdc_insert_counter": {"key": "cdcInsertCounter", "type": "int"}, - "cdc_update_counter": {"key": "cdcUpdateCounter", "type": "int"}, - "cdc_delete_counter": {"key": "cdcDeleteCounter", "type": "int"}, - "full_load_est_finish_time": {"key": "fullLoadEstFinishTime", "type": "iso-8601"}, - "full_load_started_on": {"key": "fullLoadStartedOn", "type": "iso-8601"}, - "full_load_ended_on": {"key": "fullLoadEndedOn", "type": "iso-8601"}, - "full_load_total_rows": {"key": "fullLoadTotalRows", "type": "int"}, - "state": {"key": "state", "type": "str"}, - "total_changes_applied": {"key": "totalChangesApplied", "type": "int"}, - "data_errors_counter": {"key": "dataErrorsCounter", "type": "int"}, - "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TableLevelOutput" - self.table_name: Optional[str] = None - self.database_name: Optional[str] = None - self.cdc_insert_counter: Optional[int] = None - self.cdc_update_counter: Optional[int] = None - self.cdc_delete_counter: Optional[int] = None - self.full_load_est_finish_time: Optional[datetime.datetime] = None - self.full_load_started_on: Optional[datetime.datetime] = None - self.full_load_ended_on: Optional[datetime.datetime] = None - self.full_load_total_rows: Optional[int] = None - self.state: Optional[Union[str, "_models.SyncTableMigrationState"]] = None - self.total_changes_applied: Optional[int] = None - self.data_errors_counter: Optional[int] = None - self.last_modified_time: Optional[datetime.datetime] = None - - -class MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateSqlServerSqlDbSyncTaskInput"}, - "output": {"key": "output", "type": "[MigrateSqlServerSqlDbSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateSqlServerSqlDbSyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.SqlServer.AzureSqlDb.Sync" - self.input = input - self.output: Optional[list["_models.MigrateSqlServerSqlDbSyncTaskOutput"]] = None - - -class MigrateSqlServerSqlDbTaskInput(SqlMigrationTaskInput): - """Input for the task that migrates on-prem SQL Server databases to Azure SQL Database. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] - :ivar validation_options: Options for enabling various post migration validations. Available - options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target - tables after the migration to ensure the correctness of the data. 2.) Schema Validation: - Performs a thorough schema comparison between the source and target tables and provides a list - of differences between the source and target database, 3.) Query Analysis: Executes a set of - queries picked up automatically either from the Query Plan Cache or Query Store and execute - them and compares the execution time between the source and target database. - :vartype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions - :ivar started_on: Date and time relative to UTC when the migration was started on. - :vartype started_on: str - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlDbDatabaseInput]"}, - "validation_options": {"key": "validationOptions", "type": "MigrationValidationOptions"}, - "started_on": {"key": "startedOn", "type": "str"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_databases: list["_models.MigrateSqlServerSqlDbDatabaseInput"], - validation_options: Optional["_models.MigrationValidationOptions"] = None, - started_on: Optional[str] = None, - encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbDatabaseInput] - :keyword validation_options: Options for enabling various post migration validations. Available - options, 1.) Data Integrity Check: Performs a checksum based comparison on source and target - tables after the migration to ensure the correctness of the data. 2.) Schema Validation: - Performs a thorough schema comparison between the source and target tables and provides a list - of differences between the source and target database, 3.) Query Analysis: Executes a set of - queries picked up automatically either from the Query Plan Cache or Query Store and execute - them and compares the execution time between the source and target database. - :paramtype validation_options: ~azure.mgmt.datamigration.models.MigrationValidationOptions - :keyword started_on: Date and time relative to UTC when the migration was started on. - :paramtype started_on: str - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - """ - super().__init__( - source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs - ) - self.selected_databases = selected_databases - self.validation_options = validation_options - self.started_on = started_on - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - - -class MigrateSqlServerSqlDbTaskOutput(_serialization.Model): - """Output for the task that migrates on-prem SQL Server databases to Azure SQL Database. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - MigrateSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSqlServerSqlDbTaskOutputError, - MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult, - MigrateSqlServerSqlDbTaskOutputMigrationLevel, MigrateSqlServerSqlDbTaskOutputValidationResult, - MigrateSqlServerSqlDbTaskOutputTableLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelOutput": "MigrateSqlServerSqlDbTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateSqlServerSqlDbTaskOutputError", - "MigrationDatabaseLevelValidationOutput": "MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult", - "MigrationLevelOutput": "MigrateSqlServerSqlDbTaskOutputMigrationLevel", - "MigrationValidationOutput": "MigrateSqlServerSqlDbTaskOutputValidationResult", - "TableLevelOutput": "MigrateSqlServerSqlDbTaskOutputTableLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateSqlServerSqlDbTaskOutputDatabaseLevel(MigrateSqlServerSqlDbTaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the item. - :vartype database_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Migration stage that this database is in. Known values are: "None", "Initialize", - "Backup", "FileCopy", "Restore", and "Completed". - :vartype stage: str or ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar status_message: Status message. - :vartype status_message: str - :ivar message: Migration progress message. - :vartype message: str - :ivar number_of_objects: Number of objects. - :vartype number_of_objects: int - :ivar number_of_objects_completed: Number of successfully completed objects. - :vartype number_of_objects_completed: int - :ivar error_count: Number of database/object errors. - :vartype error_count: int - :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the - item. - :vartype result_prefix: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar object_summary: Summary of object results in the migration. - :vartype object_summary: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "state": {"readonly": True}, - "stage": {"readonly": True}, - "status_message": {"readonly": True}, - "message": {"readonly": True}, - "number_of_objects": {"readonly": True}, - "number_of_objects_completed": {"readonly": True}, - "error_count": {"readonly": True}, - "error_prefix": {"readonly": True}, - "result_prefix": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - "object_summary": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "state": {"key": "state", "type": "str"}, - "stage": {"key": "stage", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "number_of_objects": {"key": "numberOfObjects", "type": "int"}, - "number_of_objects_completed": {"key": "numberOfObjectsCompleted", "type": "int"}, - "error_count": {"key": "errorCount", "type": "int"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "result_prefix": {"key": "resultPrefix", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - "object_summary": {"key": "objectSummary", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.stage: Optional[Union[str, "_models.DatabaseMigrationStage"]] = None - self.status_message: Optional[str] = None - self.message: Optional[str] = None - self.number_of_objects: Optional[int] = None - self.number_of_objects_completed: Optional[int] = None - self.error_count: Optional[int] = None - self.error_prefix: Optional[str] = None - self.result_prefix: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - self.object_summary: Optional[str] = None - - -class MigrationValidationDatabaseLevelResult(_serialization.Model): - """Database level validation results. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar migration_id: Migration Identifier. - :vartype migration_id: str - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar target_database_name: Name of the target database. - :vartype target_database_name: str - :ivar started_on: Validation start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Validation end time. - :vartype ended_on: ~datetime.datetime - :ivar data_integrity_validation_result: Provides data integrity validation result between the - source and target tables that are migrated. - :vartype data_integrity_validation_result: - ~azure.mgmt.datamigration.models.DataIntegrityValidationResult - :ivar schema_validation_result: Provides schema comparison result between source and target - database. - :vartype schema_validation_result: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult - :ivar query_analysis_validation_result: Results of some of the query execution result between - source and target database. - :vartype query_analysis_validation_result: - ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult - :ivar status: Current status of validation at the database level. Known values are: "Default", - "NotStarted", "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and - "Failed". - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - "id": {"readonly": True}, - "migration_id": {"readonly": True}, - "source_database_name": {"readonly": True}, - "target_database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "data_integrity_validation_result": {"readonly": True}, - "schema_validation_result": {"readonly": True}, - "query_analysis_validation_result": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "migration_id": {"key": "migrationId", "type": "str"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "data_integrity_validation_result": { - "key": "dataIntegrityValidationResult", - "type": "DataIntegrityValidationResult", - }, - "schema_validation_result": {"key": "schemaValidationResult", "type": "SchemaComparisonValidationResult"}, - "query_analysis_validation_result": { - "key": "queryAnalysisValidationResult", - "type": "QueryAnalysisValidationResult", - }, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.migration_id: Optional[str] = None - self.source_database_name: Optional[str] = None - self.target_database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.data_integrity_validation_result: Optional["_models.DataIntegrityValidationResult"] = None - self.schema_validation_result: Optional["_models.SchemaComparisonValidationResult"] = None - self.query_analysis_validation_result: Optional["_models.QueryAnalysisValidationResult"] = None - self.status: Optional[Union[str, "_models.ValidationStatus"]] = None - - -class MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult( - MigrateSqlServerSqlDbTaskOutput, MigrationValidationDatabaseLevelResult -): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar migration_id: Migration Identifier. - :vartype migration_id: str - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar target_database_name: Name of the target database. - :vartype target_database_name: str - :ivar started_on: Validation start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Validation end time. - :vartype ended_on: ~datetime.datetime - :ivar data_integrity_validation_result: Provides data integrity validation result between the - source and target tables that are migrated. - :vartype data_integrity_validation_result: - ~azure.mgmt.datamigration.models.DataIntegrityValidationResult - :ivar schema_validation_result: Provides schema comparison result between source and target - database. - :vartype schema_validation_result: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResult - :ivar query_analysis_validation_result: Results of some of the query execution result between - source and target database. - :vartype query_analysis_validation_result: - ~azure.mgmt.datamigration.models.QueryAnalysisValidationResult - :ivar status: Current status of validation at the database level. Known values are: "Default", - "NotStarted", "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and - "Failed". - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "migration_id": {"readonly": True}, - "source_database_name": {"readonly": True}, - "target_database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "data_integrity_validation_result": {"readonly": True}, - "schema_validation_result": {"readonly": True}, - "query_analysis_validation_result": {"readonly": True}, - "status": {"readonly": True}, - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "migration_id": {"key": "migrationId", "type": "str"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "data_integrity_validation_result": { - "key": "dataIntegrityValidationResult", - "type": "DataIntegrityValidationResult", - }, - "schema_validation_result": {"key": "schemaValidationResult", "type": "SchemaComparisonValidationResult"}, - "query_analysis_validation_result": { - "key": "queryAnalysisValidationResult", - "type": "QueryAnalysisValidationResult", - }, - "status": {"key": "status", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.migration_id: Optional[str] = None - self.source_database_name: Optional[str] = None - self.target_database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.data_integrity_validation_result: Optional["_models.DataIntegrityValidationResult"] = None - self.schema_validation_result: Optional["_models.SchemaComparisonValidationResult"] = None - self.query_analysis_validation_result: Optional["_models.QueryAnalysisValidationResult"] = None - self.status: Optional[Union[str, "_models.ValidationStatus"]] = None - self.result_type: str = "MigrationDatabaseLevelValidationOutput" - self.id: Optional[str] = None - - -class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput): - """MigrateSqlServerSqlDbTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateSqlServerSqlDbTaskOutputMigrationLevel(MigrateSqlServerSqlDbTaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar duration_in_seconds: Duration of task execution in seconds. - :vartype duration_in_seconds: int - :ivar status: Current status of migration. Known values are: "Default", "Connecting", - "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", - "Completed", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar status_message: Migration status message. - :vartype status_message: str - :ivar message: Migration progress message. - :vartype message: str - :ivar databases: Selected databases as a map from database name to database id. - :vartype databases: str - :ivar database_summary: Summary of database results in the migration. - :vartype database_summary: str - :ivar migration_validation_result: Migration Validation Results. - :vartype migration_validation_result: - ~azure.mgmt.datamigration.models.MigrationValidationResult - :ivar migration_report_result: Migration Report Result, provides unique url for downloading - your migration report. - :vartype migration_report_result: ~azure.mgmt.datamigration.models.MigrationReportResult - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "duration_in_seconds": {"readonly": True}, - "status": {"readonly": True}, - "status_message": {"readonly": True}, - "message": {"readonly": True}, - "databases": {"readonly": True}, - "database_summary": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, - "status": {"key": "status", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "databases": {"key": "databases", "type": "str"}, - "database_summary": {"key": "databaseSummary", "type": "str"}, - "migration_validation_result": {"key": "migrationValidationResult", "type": "MigrationValidationResult"}, - "migration_report_result": {"key": "migrationReportResult", "type": "MigrationReportResult"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__( - self, - *, - migration_validation_result: Optional["_models.MigrationValidationResult"] = None, - migration_report_result: Optional["_models.MigrationReportResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword migration_validation_result: Migration Validation Results. - :paramtype migration_validation_result: - ~azure.mgmt.datamigration.models.MigrationValidationResult - :keyword migration_report_result: Migration Report Result, provides unique url for downloading - your migration report. - :paramtype migration_report_result: ~azure.mgmt.datamigration.models.MigrationReportResult - """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.duration_in_seconds: Optional[int] = None - self.status: Optional[Union[str, "_models.MigrationStatus"]] = None - self.status_message: Optional[str] = None - self.message: Optional[str] = None - self.databases: Optional[str] = None - self.database_summary: Optional[str] = None - self.migration_validation_result = migration_validation_result - self.migration_report_result = migration_report_result - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSqlServerSqlDbTaskOutputTableLevel(MigrateSqlServerSqlDbTaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbTaskOutputTableLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar object_name: Name of the item. - :vartype object_name: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar status_message: Status message. - :vartype status_message: str - :ivar items_count: Number of items. - :vartype items_count: int - :ivar items_completed_count: Number of successfully completed items. - :vartype items_completed_count: int - :ivar error_prefix: Wildcard string prefix to use for querying all errors of the item. - :vartype error_prefix: str - :ivar result_prefix: Wildcard string prefix to use for querying all sub-tem results of the - item. - :vartype result_prefix: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "object_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "state": {"readonly": True}, - "status_message": {"readonly": True}, - "items_count": {"readonly": True}, - "items_completed_count": {"readonly": True}, - "error_prefix": {"readonly": True}, - "result_prefix": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "object_name": {"key": "objectName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "state": {"key": "state", "type": "str"}, - "status_message": {"key": "statusMessage", "type": "str"}, - "items_count": {"key": "itemsCount", "type": "int"}, - "items_completed_count": {"key": "itemsCompletedCount", "type": "int"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "result_prefix": {"key": "resultPrefix", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "TableLevelOutput" - self.object_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.status_message: Optional[str] = None - self.items_count: Optional[int] = None - self.items_completed_count: Optional[int] = None - self.error_prefix: Optional[str] = None - self.result_prefix: Optional[str] = None - - -class MigrationValidationResult(_serialization.Model): - """Migration Validation Result. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Migration validation result identifier. - :vartype id: str - :ivar migration_id: Migration Identifier. - :vartype migration_id: str - :ivar summary_results: Validation summary results for each database. - :vartype summary_results: dict[str, - ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] - :ivar status: Current status of validation at the migration level. Status from the database - validation result status will be aggregated here. Known values are: "Default", "NotStarted", - "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and "Failed". - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - "id": {"readonly": True}, - "migration_id": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "migration_id": {"key": "migrationId", "type": "str"}, - "summary_results": {"key": "summaryResults", "type": "{MigrationValidationDatabaseSummaryResult}"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__( - self, - *, - summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword summary_results: Validation summary results for each database. - :paramtype summary_results: dict[str, - ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.migration_id: Optional[str] = None - self.summary_results = summary_results - self.status: Optional[Union[str, "_models.ValidationStatus"]] = None - - -class MigrateSqlServerSqlDbTaskOutputValidationResult( - MigrateSqlServerSqlDbTaskOutput, MigrationValidationResult -): # pylint: disable=name-too-long - """MigrateSqlServerSqlDbTaskOutputValidationResult. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar migration_id: Migration Identifier. - :vartype migration_id: str - :ivar summary_results: Validation summary results for each database. - :vartype summary_results: dict[str, - ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] - :ivar status: Current status of validation at the migration level. Status from the database - validation result status will be aggregated here. Known values are: "Default", "NotStarted", - "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and "Failed". - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "migration_id": {"readonly": True}, - "status": {"readonly": True}, - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "migration_id": {"key": "migrationId", "type": "str"}, - "summary_results": {"key": "summaryResults", "type": "{MigrationValidationDatabaseSummaryResult}"}, - "status": {"key": "status", "type": "str"}, - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - def __init__( - self, - *, - summary_results: Optional[dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword summary_results: Validation summary results for each database. - :paramtype summary_results: dict[str, - ~azure.mgmt.datamigration.models.MigrationValidationDatabaseSummaryResult] - """ - super().__init__(summary_results=summary_results, **kwargs) - self.migration_id: Optional[str] = None - self.summary_results = summary_results - self.status: Optional[Union[str, "_models.ValidationStatus"]] = None - self.result_type: str = "MigrationValidationOutput" - self.id: Optional[str] = None - - -class MigrateSqlServerSqlDbTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskOutput] - :ivar task_id: task id. - :vartype task_id: str - :ivar is_cloneable: whether the task can be cloned or not. - :vartype is_cloneable: bool - :ivar created_on: DateTime in UTC when the task was created. - :vartype created_on: str - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateSqlServerSqlDbTaskInput"}, - "output": {"key": "output", "type": "[MigrateSqlServerSqlDbTaskOutput]"}, - "task_id": {"key": "taskId", "type": "str"}, - "is_cloneable": {"key": "isCloneable", "type": "bool"}, - "created_on": {"key": "createdOn", "type": "str"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateSqlServerSqlDbTaskInput"] = None, - task_id: Optional[str] = None, - is_cloneable: Optional[bool] = None, - created_on: Optional[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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbTaskInput - :keyword task_id: task id. - :paramtype task_id: str - :keyword is_cloneable: whether the task can be cloned or not. - :paramtype is_cloneable: bool - :keyword created_on: DateTime in UTC when the task was created. - :paramtype created_on: str - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.SqlServer.SqlDb" - self.input = input - self.output: Optional[list["_models.MigrateSqlServerSqlDbTaskOutput"]] = None - self.task_id = task_id - self.is_cloneable = is_cloneable - self.created_on = created_on - - -class MigrateSqlServerSqlMIDatabaseInput(_serialization.Model): - """Database specific information for SQL to Azure SQL DB Managed Instance migration task inputs. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the database. Required. - :vartype name: str - :ivar restore_database_name: Name of the database at destination. Required. - :vartype restore_database_name: str - :ivar backup_file_share: Backup file share information for backing up this database. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar backup_file_paths: The list of backup files to be used in case of existing backups. - :vartype backup_file_paths: list[str] - :ivar id: id of the database. - :vartype id: str - """ - - _validation = { - "name": {"required": True}, - "restore_database_name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "restore_database_name": {"key": "restoreDatabaseName", "type": "str"}, - "backup_file_share": {"key": "backupFileShare", "type": "FileShare"}, - "backup_file_paths": {"key": "backupFilePaths", "type": "[str]"}, - "id": {"key": "id", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - restore_database_name: str, - backup_file_share: Optional["_models.FileShare"] = None, - backup_file_paths: Optional[list[str]] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the database. Required. - :paramtype name: str - :keyword restore_database_name: Name of the database at destination. Required. - :paramtype restore_database_name: str - :keyword backup_file_share: Backup file share information for backing up this database. - :paramtype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :keyword backup_file_paths: The list of backup files to be used in case of existing backups. - :paramtype backup_file_paths: list[str] - :keyword id: id of the database. - :paramtype id: str - """ - super().__init__(**kwargs) - self.name = name - self.restore_database_name = restore_database_name - self.backup_file_share = backup_file_share - self.backup_file_paths = backup_file_paths - self.id = id - - -class SqlServerSqlMISyncTaskInput(_serialization.Model): - """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 server. - - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :ivar backup_file_share: Backup file share information for all selected databases. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar storage_resource_id: Fully qualified resourceId of storage. Required. - :vartype storage_resource_id: str - :ivar source_connection_info: Connection information for source SQL Server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - _validation = { - "selected_databases": {"required": True}, - "storage_resource_id": {"required": True}, - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "azure_app": {"required": True}, - } - - _attribute_map = { - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlMIDatabaseInput]"}, - "backup_file_share": {"key": "backupFileShare", "type": "FileShare"}, - "storage_resource_id": {"key": "storageResourceId", "type": "str"}, - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "MiSqlConnectionInfo"}, - "azure_app": {"key": "azureApp", "type": "AzureActiveDirectoryApp"}, - } - - def __init__( - self, - *, - selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], - storage_resource_id: str, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.MiSqlConnectionInfo", - azure_app: "_models.AzureActiveDirectoryApp", - backup_file_share: Optional["_models.FileShare"] = None, - **kwargs: Any - ) -> None: - """ - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :keyword backup_file_share: Backup file share information for all selected databases. - :paramtype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :keyword storage_resource_id: Fully qualified resourceId of storage. Required. - :paramtype storage_resource_id: str - :keyword source_connection_info: Connection information for source SQL Server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Connection information for Azure SQL Database Managed - Instance. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :keyword azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :paramtype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - super().__init__(**kwargs) - self.selected_databases = selected_databases - self.backup_file_share = backup_file_share - self.storage_resource_id = storage_resource_id - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.azure_app = azure_app - - -class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """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 server. - - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :ivar backup_file_share: Backup file share information for all selected databases. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar storage_resource_id: Fully qualified resourceId of storage. Required. - :vartype storage_resource_id: str - :ivar source_connection_info: Connection information for source SQL Server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - :ivar number_of_parallel_database_migrations: Number of database migrations to start in - parallel. - :vartype number_of_parallel_database_migrations: float - """ - - _validation = { - "selected_databases": {"required": True}, - "storage_resource_id": {"required": True}, - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "azure_app": {"required": True}, - } - - _attribute_map = { - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlMIDatabaseInput]"}, - "backup_file_share": {"key": "backupFileShare", "type": "FileShare"}, - "storage_resource_id": {"key": "storageResourceId", "type": "str"}, - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "MiSqlConnectionInfo"}, - "azure_app": {"key": "azureApp", "type": "AzureActiveDirectoryApp"}, - "number_of_parallel_database_migrations": {"key": "numberOfParallelDatabaseMigrations", "type": "float"}, - } - - def __init__( - self, - *, - selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], - storage_resource_id: str, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.MiSqlConnectionInfo", - azure_app: "_models.AzureActiveDirectoryApp", - backup_file_share: Optional["_models.FileShare"] = None, - number_of_parallel_database_migrations: Optional[float] = None, - **kwargs: Any - ) -> None: - """ - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :keyword backup_file_share: Backup file share information for all selected databases. - :paramtype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :keyword storage_resource_id: Fully qualified resourceId of storage. Required. - :paramtype storage_resource_id: str - :keyword source_connection_info: Connection information for source SQL Server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Connection information for Azure SQL Database Managed - Instance. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :keyword azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :paramtype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - :keyword number_of_parallel_database_migrations: Number of database migrations to start in - parallel. - :paramtype number_of_parallel_database_migrations: float - """ - super().__init__( - selected_databases=selected_databases, - backup_file_share=backup_file_share, - storage_resource_id=storage_resource_id, - source_connection_info=source_connection_info, - target_connection_info=target_connection_info, - azure_app=azure_app, - **kwargs - ) - self.number_of_parallel_database_migrations = number_of_parallel_database_migrations - - -class MigrateSqlServerSqlMISyncTaskOutput(_serialization.Model): - """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, - MigrateSqlServerSqlMISyncTaskOutputMigrationLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "DatabaseLevelOutput": "MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel", - "ErrorOutput": "MigrateSqlServerSqlMISyncTaskOutputError", - "MigrationLevelOutput": "MigrateSqlServerSqlMISyncTaskOutputMigrationLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel( - MigrateSqlServerSqlMISyncTaskOutput -): # pylint: disable=name-too-long - """MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar source_database_name: Name of the database. - :vartype source_database_name: str - :ivar migration_state: Current state of database. Known values are: "UNDEFINED", "INITIAL", - "FULL_BACKUP_UPLOAD_START", "LOG_SHIPPING_START", "UPLOAD_LOG_FILES_START", "CUTOVER_START", - "POST_CUTOVER_COMPLETE", "COMPLETED", "CANCELLED", and "FAILED". - :vartype migration_state: str or ~azure.mgmt.datamigration.models.DatabaseMigrationState - :ivar started_on: Database migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Database migration end time. - :vartype ended_on: ~datetime.datetime - :ivar full_backup_set_info: Details of full backup set. - :vartype full_backup_set_info: ~azure.mgmt.datamigration.models.BackupSetInfo - :ivar last_restored_backup_set_info: Last applied backup set information. - :vartype last_restored_backup_set_info: ~azure.mgmt.datamigration.models.BackupSetInfo - :ivar active_backup_sets: Backup sets that are currently active (Either being uploaded or - getting restored). - :vartype active_backup_sets: list[~azure.mgmt.datamigration.models.BackupSetInfo] - :ivar container_name: Name of container created in the Azure Storage account where backups are - copied to. - :vartype container_name: str - :ivar error_prefix: prefix string to use for querying errors for this database. - :vartype error_prefix: str - :ivar is_full_backup_restored: Whether full backup has been applied to the target database or - not. - :vartype is_full_backup_restored: bool - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "source_database_name": {"readonly": True}, - "migration_state": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "full_backup_set_info": {"readonly": True}, - "last_restored_backup_set_info": {"readonly": True}, - "active_backup_sets": {"readonly": True}, - "container_name": {"readonly": True}, - "error_prefix": {"readonly": True}, - "is_full_backup_restored": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "migration_state": {"key": "migrationState", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "full_backup_set_info": {"key": "fullBackupSetInfo", "type": "BackupSetInfo"}, - "last_restored_backup_set_info": {"key": "lastRestoredBackupSetInfo", "type": "BackupSetInfo"}, - "active_backup_sets": {"key": "activeBackupSets", "type": "[BackupSetInfo]"}, - "container_name": {"key": "containerName", "type": "str"}, - "error_prefix": {"key": "errorPrefix", "type": "str"}, - "is_full_backup_restored": {"key": "isFullBackupRestored", "type": "bool"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.source_database_name: Optional[str] = None - self.migration_state: Optional[Union[str, "_models.DatabaseMigrationState"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.full_backup_set_info: Optional["_models.BackupSetInfo"] = None - self.last_restored_backup_set_info: Optional["_models.BackupSetInfo"] = None - self.active_backup_sets: Optional[list["_models.BackupSetInfo"]] = None - self.container_name: Optional[str] = None - self.error_prefix: Optional[str] = None - self.is_full_backup_restored: Optional[bool] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutput): - """MigrateSqlServerSqlMISyncTaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel( - MigrateSqlServerSqlMISyncTaskOutput -): # pylint: disable=name-too-long - """MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_count: Count of databases. - :vartype database_count: int - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar source_server_name: Source server name. - :vartype source_server_name: str - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar target_server_name: Target server name. - :vartype target_server_name: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar database_error_count: Number of database level errors. - :vartype database_error_count: int - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_count": {"readonly": True}, - "state": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "source_server_name": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "target_server_name": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "database_error_count": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_count": {"key": "databaseCount", "type": "int"}, - "state": {"key": "state", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "target_server_name": {"key": "targetServerName", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "database_error_count": {"key": "databaseErrorCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.database_count: Optional[int] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.source_server_name: Optional[str] = None - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.target_server_name: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.database_error_count: Optional[int] = None - - -class MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskOutput] - :ivar created_on: DateTime in UTC when the task was created. - :vartype created_on: str - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateSqlServerSqlMISyncTaskInput"}, - "output": {"key": "output", "type": "[MigrateSqlServerSqlMISyncTaskOutput]"}, - "created_on": {"key": "createdOn", "type": "str"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateSqlServerSqlMISyncTaskInput"] = None, - created_on: Optional[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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMISyncTaskInput - :keyword created_on: DateTime in UTC when the task was created. - :paramtype created_on: str - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS" - self.input = input - self.output: Optional[list["_models.MigrateSqlServerSqlMISyncTaskOutput"]] = None - self.created_on = created_on - - -class MigrateSqlServerSqlMITaskInput(SqlMigrationTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :ivar started_on: Date and time relative to UTC when the migration was started on. - :vartype started_on: str - :ivar selected_logins: Logins to migrate. - :vartype selected_logins: list[str] - :ivar selected_agent_jobs: Agent Jobs to migrate. - :vartype selected_agent_jobs: list[str] - :ivar backup_file_share: Backup file share information for all selected databases. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar backup_blob_share: SAS URI of Azure Storage Account Container to be used for storing - backup files. Required. - :vartype backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :ivar backup_mode: Backup Mode to specify whether to use existing backup or create new backup. - If using existing backups, backup file paths are required to be provided in selectedDatabases. - Known values are: "CreateBackup" and "ExistingBackup". - :vartype backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - :ivar aad_domain_name: Azure Active Directory domain name in the format of 'contoso.com' for - federated Azure AD or 'contoso.onmicrosoft.com' for managed domain, required if and only if - Windows logins are selected. - :vartype aad_domain_name: str - :ivar encrypted_key_for_secure_fields: encrypted key for secure fields. - :vartype encrypted_key_for_secure_fields: str - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - "backup_blob_share": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlMIDatabaseInput]"}, - "started_on": {"key": "startedOn", "type": "str"}, - "selected_logins": {"key": "selectedLogins", "type": "[str]"}, - "selected_agent_jobs": {"key": "selectedAgentJobs", "type": "[str]"}, - "backup_file_share": {"key": "backupFileShare", "type": "FileShare"}, - "backup_blob_share": {"key": "backupBlobShare", "type": "BlobShare"}, - "backup_mode": {"key": "backupMode", "type": "str"}, - "aad_domain_name": {"key": "aadDomainName", "type": "str"}, - "encrypted_key_for_secure_fields": {"key": "encryptedKeyForSecureFields", "type": "str"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], - backup_blob_share: "_models.BlobShare", - started_on: Optional[str] = None, - selected_logins: Optional[list[str]] = None, - selected_agent_jobs: Optional[list[str]] = None, - backup_file_share: Optional["_models.FileShare"] = None, - backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, - aad_domain_name: Optional[str] = None, - encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :keyword started_on: Date and time relative to UTC when the migration was started on. - :paramtype started_on: str - :keyword selected_logins: Logins to migrate. - :paramtype selected_logins: list[str] - :keyword selected_agent_jobs: Agent Jobs to migrate. - :paramtype selected_agent_jobs: list[str] - :keyword backup_file_share: Backup file share information for all selected databases. - :paramtype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :keyword backup_blob_share: SAS URI of Azure Storage Account Container to be used for storing - backup files. Required. - :paramtype backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :keyword backup_mode: Backup Mode to specify whether to use existing backup or create new - backup. If using existing backups, backup file paths are required to be provided in - selectedDatabases. Known values are: "CreateBackup" and "ExistingBackup". - :paramtype backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - :keyword aad_domain_name: Azure Active Directory domain name in the format of 'contoso.com' for - federated Azure AD or 'contoso.onmicrosoft.com' for managed domain, required if and only if - Windows logins are selected. - :paramtype aad_domain_name: str - :keyword encrypted_key_for_secure_fields: encrypted key for secure fields. - :paramtype encrypted_key_for_secure_fields: str - """ - super().__init__( - source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs - ) - self.selected_databases = selected_databases - self.started_on = started_on - self.selected_logins = selected_logins - self.selected_agent_jobs = selected_agent_jobs - self.backup_file_share = backup_file_share - self.backup_blob_share = backup_blob_share - self.backup_mode = backup_mode - self.aad_domain_name = aad_domain_name - self.encrypted_key_for_secure_fields = encrypted_key_for_secure_fields - - -class MigrateSqlServerSqlMITaskOutput(_serialization.Model): - """Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - MigrateSqlServerSqlMITaskOutputAgentJobLevel, MigrateSqlServerSqlMITaskOutputDatabaseLevel, - MigrateSqlServerSqlMITaskOutputError, MigrateSqlServerSqlMITaskOutputLoginLevel, - MigrateSqlServerSqlMITaskOutputMigrationLevel - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "AgentJobLevelOutput": "MigrateSqlServerSqlMITaskOutputAgentJobLevel", - "DatabaseLevelOutput": "MigrateSqlServerSqlMITaskOutputDatabaseLevel", - "ErrorOutput": "MigrateSqlServerSqlMITaskOutputError", - "LoginLevelOutput": "MigrateSqlServerSqlMITaskOutputLoginLevel", - "MigrationLevelOutput": "MigrateSqlServerSqlMITaskOutputMigrationLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlMITaskOutputAgentJobLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar name: Agent Job name. - :vartype name: str - :ivar is_enabled: The state of the original Agent Job. - :vartype is_enabled: bool - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar message: Migration progress message. - :vartype message: str - :ivar exceptions_and_warnings: Migration errors and warnings per job. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "name": {"readonly": True}, - "is_enabled": {"readonly": True}, - "state": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "message": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "is_enabled": {"key": "isEnabled", "type": "bool"}, - "state": {"key": "state", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "message": {"key": "message", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "AgentJobLevelOutput" - self.name: Optional[str] = None - self.is_enabled: Optional[bool] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlMITaskOutputDatabaseLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar size_mb: Size of the database in megabytes. - :vartype size_mb: float - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Current stage of migration. Known values are: "None", "Initialize", "Backup", - "FileCopy", "Restore", and "Completed". - :vartype stage: str or ~azure.mgmt.datamigration.models.DatabaseMigrationStage - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar message: Migration progress message. - :vartype message: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "database_name": {"readonly": True}, - "size_mb": {"readonly": True}, - "state": {"readonly": True}, - "stage": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "message": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "size_mb": {"key": "sizeMB", "type": "float"}, - "state": {"key": "state", "type": "str"}, - "stage": {"key": "stage", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "message": {"key": "message", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "DatabaseLevelOutput" - self.database_name: Optional[str] = None - self.size_mb: Optional[float] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.stage: Optional[Union[str, "_models.DatabaseMigrationStage"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): - """MigrateSqlServerSqlMITaskOutputError. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar error: Migration error. - :vartype error: ~azure.mgmt.datamigration.models.ReportableException - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "error": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "error": {"key": "error", "type": "ReportableException"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "ErrorOutput" - self.error: Optional["_models.ReportableException"] = None - - -class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlMITaskOutputLoginLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar login_name: Login name. - :vartype login_name: str - :ivar state: Current state of login. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Current stage of login. Known values are: "None", "Initialize", "LoginMigration", - "EstablishUserMapping", "AssignRoleMembership", "AssignRoleOwnership", - "EstablishServerPermissions", "EstablishObjectPermissions", and "Completed". - :vartype stage: str or ~azure.mgmt.datamigration.models.LoginMigrationStage - :ivar started_on: Login migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Login migration end time. - :vartype ended_on: ~datetime.datetime - :ivar message: Login migration progress message. - :vartype message: str - :ivar exceptions_and_warnings: Login migration errors and warnings per login. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "login_name": {"readonly": True}, - "state": {"readonly": True}, - "stage": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "message": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "login_name": {"key": "loginName", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "stage": {"key": "stage", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "message": {"key": "message", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "LoginLevelOutput" - self.login_name: Optional[str] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.stage: Optional[Union[str, "_models.LoginMigrationStage"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSqlServerSqlMITaskOutputMigrationLevel(MigrateSqlServerSqlMITaskOutput): # pylint: disable=name-too-long - """MigrateSqlServerSqlMITaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar status: Current status of migration. Known values are: "Default", "Connecting", - "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", - "Completed", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar agent_jobs: Selected agent jobs as a map from name to id. - :vartype agent_jobs: str - :ivar logins: Selected logins as a map from name to id. - :vartype logins: str - :ivar message: Migration progress message. - :vartype message: str - :ivar server_role_results: Map of server role migration results. - :vartype server_role_results: str - :ivar orphaned_users_info: List of orphaned users. - :vartype orphaned_users_info: list[~azure.mgmt.datamigration.models.OrphanedUserInfo] - :ivar databases: Selected databases as a map from database name to database id. - :vartype databases: str - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "status": {"readonly": True}, - "state": {"readonly": True}, - "agent_jobs": {"readonly": True}, - "logins": {"readonly": True}, - "message": {"readonly": True}, - "server_role_results": {"readonly": True}, - "orphaned_users_info": {"readonly": True}, - "databases": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "status": {"key": "status", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "agent_jobs": {"key": "agentJobs", "type": "str"}, - "logins": {"key": "logins", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "server_role_results": {"key": "serverRoleResults", "type": "str"}, - "orphaned_users_info": {"key": "orphanedUsersInfo", "type": "[OrphanedUserInfo]"}, - "databases": {"key": "databases", "type": "str"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.status: Optional[Union[str, "_models.MigrationStatus"]] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.agent_jobs: Optional[str] = None - self.logins: Optional[str] = None - self.message: Optional[str] = None - self.server_role_results: Optional[str] = None - self.orphaned_users_info: Optional[list["_models.OrphanedUserInfo"]] = None - self.databases: Optional[str] = None - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSqlServerSqlMITaskProperties(ProjectTaskProperties): - """Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskOutput] - :ivar task_id: task id. - :vartype task_id: str - :ivar created_on: DateTime in UTC when the task was created. - :vartype created_on: str - :ivar parent_task_id: parent task id. - :vartype parent_task_id: str - :ivar is_cloneable: whether the task can be cloned or not. - :vartype is_cloneable: bool - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateSqlServerSqlMITaskInput"}, - "output": {"key": "output", "type": "[MigrateSqlServerSqlMITaskOutput]"}, - "task_id": {"key": "taskId", "type": "str"}, - "created_on": {"key": "createdOn", "type": "str"}, - "parent_task_id": {"key": "parentTaskId", "type": "str"}, - "is_cloneable": {"key": "isCloneable", "type": "bool"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateSqlServerSqlMITaskInput"] = None, - task_id: Optional[str] = None, - created_on: Optional[str] = None, - parent_task_id: Optional[str] = None, - is_cloneable: Optional[bool] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSqlServerSqlMITaskInput - :keyword task_id: task id. - :paramtype task_id: str - :keyword created_on: DateTime in UTC when the task was created. - :paramtype created_on: str - :keyword parent_task_id: parent task id. - :paramtype parent_task_id: str - :keyword is_cloneable: whether the task can be cloned or not. - :paramtype is_cloneable: bool - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.SqlServer.AzureSqlDbMI" - self.input = input - self.output: Optional[list["_models.MigrateSqlServerSqlMITaskOutput"]] = None - self.task_id = task_id - self.created_on = created_on - self.parent_task_id = parent_task_id - self.is_cloneable = is_cloneable - - -class MigrateSsisTaskInput(SqlMigrationTaskInput): - """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 server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar ssis_migration_info: SSIS package migration information. Required. - :vartype ssis_migration_info: ~azure.mgmt.datamigration.models.SsisMigrationInfo - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "ssis_migration_info": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "ssis_migration_info": {"key": "ssisMigrationInfo", "type": "SsisMigrationInfo"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - ssis_migration_info: "_models.SsisMigrationInfo", - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword ssis_migration_info: SSIS package migration information. Required. - :paramtype ssis_migration_info: ~azure.mgmt.datamigration.models.SsisMigrationInfo - """ - super().__init__( - source_connection_info=source_connection_info, target_connection_info=target_connection_info, **kwargs - ) - self.ssis_migration_info = ssis_migration_info - - -class MigrateSsisTaskOutput(_serialization.Model): - """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 - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - } - - _subtype_map = { - "result_type": { - "MigrationLevelOutput": "MigrateSsisTaskOutputMigrationLevel", - "SsisProjectLevelOutput": "MigrateSsisTaskOutputProjectLevel", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.result_type: Optional[str] = None - - -class MigrateSsisTaskOutputMigrationLevel(MigrateSsisTaskOutput): - """MigrateSsisTaskOutputMigrationLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar status: Current status of migration. Known values are: "Default", "Connecting", - "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", - "Completed", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar message: Migration progress message. - :vartype message: str - :ivar source_server_version: Source server version. - :vartype source_server_version: str - :ivar source_server_brand_version: Source server brand version. - :vartype source_server_brand_version: str - :ivar target_server_version: Target server version. - :vartype target_server_version: str - :ivar target_server_brand_version: Target server brand version. - :vartype target_server_brand_version: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar stage: Stage of SSIS migration. Known values are: "None", "Initialize", "InProgress", and - "Completed". - :vartype stage: str or ~azure.mgmt.datamigration.models.SsisMigrationStage - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "status": {"readonly": True}, - "message": {"readonly": True}, - "source_server_version": {"readonly": True}, - "source_server_brand_version": {"readonly": True}, - "target_server_version": {"readonly": True}, - "target_server_brand_version": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - "stage": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "status": {"key": "status", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "source_server_version": {"key": "sourceServerVersion", "type": "str"}, - "source_server_brand_version": {"key": "sourceServerBrandVersion", "type": "str"}, - "target_server_version": {"key": "targetServerVersion", "type": "str"}, - "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - "stage": {"key": "stage", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "MigrationLevelOutput" - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.status: Optional[Union[str, "_models.MigrationStatus"]] = None - self.message: Optional[str] = None - self.source_server_version: Optional[str] = None - self.source_server_brand_version: Optional[str] = None - self.target_server_version: Optional[str] = None - self.target_server_brand_version: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - self.stage: Optional[Union[str, "_models.SsisMigrationStage"]] = None - - -class MigrateSsisTaskOutputProjectLevel(MigrateSsisTaskOutput): - """MigrateSsisTaskOutputProjectLevel. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Result identifier. - :vartype id: str - :ivar result_type: Result type. Required. - :vartype result_type: str - :ivar folder_name: Name of the folder. - :vartype folder_name: str - :ivar project_name: Name of the project. - :vartype project_name: str - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar stage: Stage of SSIS migration. Known values are: "None", "Initialize", "InProgress", and - "Completed". - :vartype stage: str or ~azure.mgmt.datamigration.models.SsisMigrationStage - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar message: Migration progress message. - :vartype message: str - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "result_type": {"required": True}, - "folder_name": {"readonly": True}, - "project_name": {"readonly": True}, - "state": {"readonly": True}, - "stage": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "message": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "folder_name": {"key": "folderName", "type": "str"}, - "project_name": {"key": "projectName", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "stage": {"key": "stage", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "message": {"key": "message", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_type: str = "SsisProjectLevelOutput" - self.folder_name: Optional[str] = None - self.project_name: Optional[str] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.stage: Optional[Union[str, "_models.SsisMigrationStage"]] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.message: Optional[str] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class MigrateSsisTaskProperties(ProjectTaskProperties): - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSsisTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.MigrateSsisTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateSsisTaskInput"}, - "output": {"key": "output", "type": "[MigrateSsisTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateSsisTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSsisTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Migrate.Ssis" - self.input = input - self.output: Optional[list["_models.MigrateSsisTaskOutput"]] = None - - -class MigrateSyncCompleteCommandInput(_serialization.Model): - """Input for command that completes sync migration for a database. - - All required parameters must be populated in order to send to server. - - :ivar database_name: Name of database. Required. - :vartype database_name: str - :ivar commit_time_stamp: Time stamp to complete. - :vartype commit_time_stamp: ~datetime.datetime - """ - - _validation = { - "database_name": {"required": True}, - } - - _attribute_map = { - "database_name": {"key": "databaseName", "type": "str"}, - "commit_time_stamp": {"key": "commitTimeStamp", "type": "iso-8601"}, - } - - 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 - :keyword commit_time_stamp: Time stamp to complete. - :paramtype commit_time_stamp: ~datetime.datetime - """ - super().__init__(**kwargs) - self.database_name = database_name - self.commit_time_stamp = commit_time_stamp - - -class MigrateSyncCompleteCommandOutput(_serialization.Model): - """Output for command that completes sync migration for a database. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar errors: List of errors that happened during the command execution. - :vartype errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "errors": {"key": "errors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.errors: Optional[list["_models.ReportableException"]] = None - - -class MigrateSyncCompleteCommandProperties(CommandProperties): - """Properties for the command that completes sync migration for a database. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", - "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". - :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. Known values are: - "Unknown", "Accepted", "Running", "Succeeded", and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :ivar input: Command input. - :vartype input: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput - :ivar output: Command output. This is ignored if submitted. - :vartype output: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandOutput - :ivar command_id: Command id. - :vartype command_id: str - """ - - _validation = { - "command_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "command_type": {"key": "commandType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "input": {"key": "input", "type": "MigrateSyncCompleteCommandInput"}, - "output": {"key": "output", "type": "MigrateSyncCompleteCommandOutput"}, - "command_id": {"key": "commandId", "type": "str"}, - } - - def __init__( - self, - *, - input: Optional["_models.MigrateSyncCompleteCommandInput"] = None, - command_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword input: Command input. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput - :keyword command_id: Command id. - :paramtype command_id: str - """ - super().__init__(**kwargs) - self.command_type: str = "Migrate.Sync.Complete.Database" - self.input = input - self.output: Optional["_models.MigrateSyncCompleteCommandOutput"] = None - self.command_id = command_id - - -class MigrationEligibilityInfo(_serialization.Model): - """Information about migration eligibility of a server object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar is_eligible_for_migration: Whether object is eligible for migration or not. - :vartype is_eligible_for_migration: bool - :ivar validation_messages: Information about eligibility failure for the server object. - :vartype validation_messages: list[str] - """ - - _validation = { - "is_eligible_for_migration": {"readonly": True}, - "validation_messages": {"readonly": True}, - } - - _attribute_map = { - "is_eligible_for_migration": {"key": "isEligibleForMigration", "type": "bool"}, - "validation_messages": {"key": "validationMessages", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.is_eligible_for_migration: Optional[bool] = None - self.validation_messages: Optional[list[str]] = None - - -class MigrationOperationInput(_serialization.Model): - """Migration Operation Input. - - :ivar migration_operation_id: ID tracking migration operation. - :vartype migration_operation_id: str - """ - - _attribute_map = { - "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, - } - - 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 - """ - super().__init__(**kwargs) - self.migration_operation_id = migration_operation_id - - -class MigrationReportResult(_serialization.Model): - """Migration validation report result, contains the url for downloading the generated report. - - :ivar id: Migration validation result identifier. - :vartype id: str - :ivar report_url: The url of the report. - :vartype report_url: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "report_url": {"key": "reportUrl", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - report_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Migration validation result identifier. - :paramtype id: str - :keyword report_url: The url of the report. - :paramtype report_url: str - """ - super().__init__(**kwargs) - self.id = id - self.report_url = report_url - - -class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top level resource which - has 'tags' and a 'location'. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - """ - super().__init__(**kwargs) - self.tags = tags - self.location = location - - -class MigrationService(TrackedResource): - """A Migration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar id: Fully qualified resource ID for the resource. E.g. - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str - :ivar provisioning_state: Provisioning state to track the async operation status. Known values - are: "Provisioning", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProvisioningState - :ivar integration_runtime_state: Current state of the Integration runtime. - :vartype integration_runtime_state: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "location": {"required": True}, - "provisioning_state": {"readonly": True}, - "integration_runtime_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "tags": {"key": "tags", "type": "{str}"}, - "location": {"key": "location", "type": "str"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "integration_runtime_state": {"key": "properties.integrationRuntimeState", "type": "str"}, - } - - def __init__(self, *, location: str, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Resource tags. - :paramtype tags: dict[str, str] - :keyword location: The geo-location where the resource lives. Required. - :paramtype location: str - """ - super().__init__(tags=tags, location=location, **kwargs) - self.provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = None - self.integration_runtime_state: Optional[str] = None - - -class MigrationServiceListResult(_serialization.Model): - """A list of Migration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: - :vartype value: list[~azure.mgmt.datamigration.models.MigrationService] - :ivar next_link: - :vartype next_link: str - """ - - _validation = { - "value": {"readonly": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[MigrationService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.MigrationService"]] = None - self.next_link: Optional[str] = None - - -class MigrationServiceUpdate(_serialization.Model): - """An update to a Migration Service. - - :ivar tags: Dictionary of :code:``. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Dictionary of :code:``. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.tags = tags - - -class MigrationStatusDetails(_serialization.Model): - """Detailed status of current migration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar migration_state: Current State of Migration. - :vartype migration_state: str - :ivar full_backup_set_info: Details of full backup set. - :vartype full_backup_set_info: ~azure.mgmt.datamigration.models.SqlBackupSetInfo - :ivar last_restored_backup_set_info: Last applied backup set information. - :vartype last_restored_backup_set_info: ~azure.mgmt.datamigration.models.SqlBackupSetInfo - :ivar active_backup_sets: Backup sets that are currently active. - :vartype active_backup_sets: list[~azure.mgmt.datamigration.models.SqlBackupSetInfo] - :ivar invalid_files: Files that are not valid backup files. - :vartype invalid_files: list[str] - :ivar blob_container_name: Name of blob container. - :vartype blob_container_name: str - :ivar is_full_backup_restored: Whether full backup has been applied to the target database or - not. - :vartype is_full_backup_restored: bool - :ivar restore_blocking_reason: Restore blocking reason, if any. - :vartype restore_blocking_reason: str - :ivar complete_restore_error_message: Complete restore error message, if any. - :vartype complete_restore_error_message: str - :ivar file_upload_blocking_errors: File upload blocking errors, if any. - :vartype file_upload_blocking_errors: list[str] - :ivar current_restoring_filename: File name that is currently being restored. - :vartype current_restoring_filename: str - :ivar last_restored_filename: Last restored file name. - :vartype last_restored_filename: str - :ivar pending_log_backups_count: Total pending log backups. - :vartype pending_log_backups_count: int - """ - - _validation = { - "migration_state": {"readonly": True}, - "full_backup_set_info": {"readonly": True}, - "last_restored_backup_set_info": {"readonly": True}, - "active_backup_sets": {"readonly": True}, - "invalid_files": {"readonly": True}, - "blob_container_name": {"readonly": True}, - "is_full_backup_restored": {"readonly": True}, - "restore_blocking_reason": {"readonly": True}, - "complete_restore_error_message": {"readonly": True}, - "file_upload_blocking_errors": {"readonly": True}, - "current_restoring_filename": {"readonly": True}, - "last_restored_filename": {"readonly": True}, - "pending_log_backups_count": {"readonly": True}, - } - - _attribute_map = { - "migration_state": {"key": "migrationState", "type": "str"}, - "full_backup_set_info": {"key": "fullBackupSetInfo", "type": "SqlBackupSetInfo"}, - "last_restored_backup_set_info": {"key": "lastRestoredBackupSetInfo", "type": "SqlBackupSetInfo"}, - "active_backup_sets": {"key": "activeBackupSets", "type": "[SqlBackupSetInfo]"}, - "invalid_files": {"key": "invalidFiles", "type": "[str]"}, - "blob_container_name": {"key": "blobContainerName", "type": "str"}, - "is_full_backup_restored": {"key": "isFullBackupRestored", "type": "bool"}, - "restore_blocking_reason": {"key": "restoreBlockingReason", "type": "str"}, - "complete_restore_error_message": {"key": "completeRestoreErrorMessage", "type": "str"}, - "file_upload_blocking_errors": {"key": "fileUploadBlockingErrors", "type": "[str]"}, - "current_restoring_filename": {"key": "currentRestoringFilename", "type": "str"}, - "last_restored_filename": {"key": "lastRestoredFilename", "type": "str"}, - "pending_log_backups_count": {"key": "pendingLogBackupsCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.migration_state: Optional[str] = None - self.full_backup_set_info: Optional["_models.SqlBackupSetInfo"] = None - self.last_restored_backup_set_info: Optional["_models.SqlBackupSetInfo"] = None - self.active_backup_sets: Optional[list["_models.SqlBackupSetInfo"]] = None - self.invalid_files: Optional[list[str]] = None - self.blob_container_name: Optional[str] = None - self.is_full_backup_restored: Optional[bool] = None - self.restore_blocking_reason: Optional[str] = None - self.complete_restore_error_message: Optional[str] = None - self.file_upload_blocking_errors: Optional[list[str]] = None - self.current_restoring_filename: Optional[str] = None - self.last_restored_filename: Optional[str] = None - self.pending_log_backups_count: Optional[int] = None - - -class MigrationTableMetadata(_serialization.Model): - """Metadata for tables selected in migration project. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source_table_name: Source table name. - :vartype source_table_name: str - :ivar target_table_name: Target table name. - :vartype target_table_name: str - """ - - _validation = { - "source_table_name": {"readonly": True}, - "target_table_name": {"readonly": True}, - } - - _attribute_map = { - "source_table_name": {"key": "sourceTableName", "type": "str"}, - "target_table_name": {"key": "targetTableName", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.source_table_name: Optional[str] = None - self.target_table_name: Optional[str] = None - - -class MigrationValidationDatabaseSummaryResult(_serialization.Model): - """Migration Validation Database level summary result. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar migration_id: Migration Identifier. - :vartype migration_id: str - :ivar source_database_name: Name of the source database. - :vartype source_database_name: str - :ivar target_database_name: Name of the target database. - :vartype target_database_name: str - :ivar started_on: Validation start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Validation end time. - :vartype ended_on: ~datetime.datetime - :ivar status: Current status of validation at the database level. Known values are: "Default", - "NotStarted", "Initialized", "InProgress", "Completed", "CompletedWithIssues", "Stopped", and - "Failed". - :vartype status: str or ~azure.mgmt.datamigration.models.ValidationStatus - """ - - _validation = { - "id": {"readonly": True}, - "migration_id": {"readonly": True}, - "source_database_name": {"readonly": True}, - "target_database_name": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "migration_id": {"key": "migrationId", "type": "str"}, - "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.migration_id: Optional[str] = None - self.source_database_name: Optional[str] = None - self.target_database_name: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.status: Optional[Union[str, "_models.ValidationStatus"]] = None - - -class MigrationValidationOptions(_serialization.Model): - """Types of validations to run after the migration. - - :ivar enable_schema_validation: Allows to compare the schema information between source and - target. - :vartype enable_schema_validation: bool - :ivar enable_data_integrity_validation: Allows to perform a checksum based data integrity - validation between source and target for the selected database / tables . - :vartype enable_data_integrity_validation: bool - :ivar enable_query_analysis_validation: Allows to perform a quick and intelligent query - analysis by retrieving queries from the source database and executes them in the target. The - result will have execution statistics for executions in source and target databases for the - extracted queries. - :vartype enable_query_analysis_validation: bool - """ - - _attribute_map = { - "enable_schema_validation": {"key": "enableSchemaValidation", "type": "bool"}, - "enable_data_integrity_validation": {"key": "enableDataIntegrityValidation", "type": "bool"}, - "enable_query_analysis_validation": {"key": "enableQueryAnalysisValidation", "type": "bool"}, - } - - def __init__( - self, - *, - enable_schema_validation: Optional[bool] = None, - enable_data_integrity_validation: Optional[bool] = None, - enable_query_analysis_validation: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword enable_schema_validation: Allows to compare the schema information between source and - target. - :paramtype enable_schema_validation: bool - :keyword enable_data_integrity_validation: Allows to perform a checksum based data integrity - validation between source and target for the selected database / tables . - :paramtype enable_data_integrity_validation: bool - :keyword enable_query_analysis_validation: Allows to perform a quick and intelligent query - analysis by retrieving queries from the source database and executes them in the target. The - result will have execution statistics for executions in source and target databases for the - extracted queries. - :paramtype enable_query_analysis_validation: bool - """ - super().__init__(**kwargs) - self.enable_schema_validation = enable_schema_validation - self.enable_data_integrity_validation = enable_data_integrity_validation - self.enable_query_analysis_validation = enable_query_analysis_validation - - -class MiSqlConnectionInfo(ConnectionInfo): - """Properties required to create a connection to Azure SQL database Managed instance. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - :ivar managed_instance_resource_id: Resource id for Azure SQL database Managed instance. - Required. - :vartype managed_instance_resource_id: str - """ - - _validation = { - "type": {"required": True}, - "managed_instance_resource_id": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "managed_instance_resource_id": {"key": "managedInstanceResourceId", "type": "str"}, - } - - def __init__( - self, - *, - managed_instance_resource_id: str, - user_name: Optional[str] = None, - password: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - :keyword managed_instance_resource_id: Resource id for Azure SQL database Managed instance. - Required. - :paramtype managed_instance_resource_id: str - """ - super().__init__(user_name=user_name, password=password, **kwargs) - self.type: str = "MiSqlConnectionInfo" - self.managed_instance_resource_id = managed_instance_resource_id - - -class MongoConnectionInformation(_serialization.Model): - """Mongo Connection. - - :ivar host: Host of mongo connection. - :vartype host: str - :ivar port: Port of mongo connection. - :vartype port: int - :ivar user_name: User name to connect to Mongo. - :vartype user_name: str - :ivar password: Password to connect to Mongo. - :vartype password: str - :ivar use_ssl: Whether to UseSsl or UseTls to connect to Mongo. Default is true. - :vartype use_ssl: bool - :ivar connection_string: ConnectionString to connect to Mongo. - :vartype connection_string: str - """ - - _attribute_map = { - "host": {"key": "host", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "use_ssl": {"key": "useSsl", "type": "bool"}, - "connection_string": {"key": "connectionString", "type": "str"}, - } - - def __init__( - self, - *, - host: Optional[str] = None, - port: Optional[int] = None, - user_name: Optional[str] = None, - password: Optional[str] = None, - use_ssl: Optional[bool] = None, - connection_string: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host: Host of mongo connection. - :paramtype host: str - :keyword port: Port of mongo connection. - :paramtype port: int - :keyword user_name: User name to connect to Mongo. - :paramtype user_name: str - :keyword password: Password to connect to Mongo. - :paramtype password: str - :keyword use_ssl: Whether to UseSsl or UseTls to connect to Mongo. Default is true. - :paramtype use_ssl: bool - :keyword connection_string: ConnectionString to connect to Mongo. - :paramtype connection_string: str - """ - super().__init__(**kwargs) - self.host = host - self.port = port - self.user_name = user_name - self.password = password - self.use_ssl = use_ssl - self.connection_string = connection_string - - -class MongoDbCancelCommand(CommandProperties): - """Properties for the command that cancels a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", - "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". - :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. Known values are: - "Unknown", "Accepted", "Running", "Succeeded", and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :ivar input: Command input. - :vartype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - - _validation = { - "command_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "command_type": {"key": "commandType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "input": {"key": "input", "type": "MongoDbCommandInput"}, - } - - def __init__(self, *, input: Optional["_models.MongoDbCommandInput"] = None, **kwargs: Any) -> None: - """ - :keyword input: Command input. - :paramtype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - super().__init__(**kwargs) - self.command_type: str = "cancel" - self.input = input - - -class MongoDbClusterInfo(_serialization.Model): - """Describes a MongoDB data source. - - All required parameters must be populated in order to send to server. - - :ivar databases: A list of non-system databases in the cluster. Required. - :vartype databases: list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] - :ivar supports_sharding: Whether the cluster supports sharded collections. Required. - :vartype supports_sharding: bool - :ivar type: The type of data source. Required. Known values are: "BlobContainer", "CosmosDb", - and "MongoDb". - :vartype type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType - :ivar version: The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if Type - is BlobContainer. Required. - :vartype version: str - """ - - _validation = { - "databases": {"required": True}, - "supports_sharding": {"required": True}, - "type": {"required": True}, - "version": {"required": True}, - } - - _attribute_map = { - "databases": {"key": "databases", "type": "[MongoDbDatabaseInfo]"}, - "supports_sharding": {"key": "supportsSharding", "type": "bool"}, - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - databases: list["_models.MongoDbDatabaseInfo"], - supports_sharding: bool, - type: Union[str, "_models.MongoDbClusterType"], - version: str, - **kwargs: Any - ) -> None: - """ - :keyword databases: A list of non-system databases in the cluster. Required. - :paramtype databases: list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] - :keyword supports_sharding: Whether the cluster supports sharded collections. Required. - :paramtype supports_sharding: bool - :keyword type: The type of data source. Required. Known values are: "BlobContainer", - "CosmosDb", and "MongoDb". - :paramtype type: str or ~azure.mgmt.datamigration.models.MongoDbClusterType - :keyword version: The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if - Type is BlobContainer. Required. - :paramtype version: str - """ - super().__init__(**kwargs) - self.databases = databases - self.supports_sharding = supports_sharding - self.type = type - self.version = version - - -class MongoDbObjectInfo(_serialization.Model): - """Describes a database or collection within a MongoDB data source. - - All required parameters must be populated in order to send to server. - - :ivar average_document_size: The average document size, or -1 if the average size is unknown. - Required. - :vartype average_document_size: int - :ivar data_size: The estimated total data size, in bytes, or -1 if the size is unknown. - Required. - :vartype data_size: int - :ivar document_count: The estimated total number of documents, or -1 if the document count is - unknown. Required. - :vartype document_count: int - :ivar name: The unqualified name of the database or collection. Required. - :vartype name: str - :ivar qualified_name: The qualified name of the database or collection. For a collection, this - is the database-qualified name. Required. - :vartype qualified_name: str - """ - - _validation = { - "average_document_size": {"required": True}, - "data_size": {"required": True}, - "document_count": {"required": True}, - "name": {"required": True}, - "qualified_name": {"required": True}, - } - - _attribute_map = { - "average_document_size": {"key": "averageDocumentSize", "type": "int"}, - "data_size": {"key": "dataSize", "type": "int"}, - "document_count": {"key": "documentCount", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - } - - def __init__( - self, - *, - average_document_size: int, - data_size: int, - document_count: int, - name: str, - qualified_name: str, - **kwargs: Any - ) -> None: - """ - :keyword average_document_size: The average document size, or -1 if the average size is - unknown. Required. - :paramtype average_document_size: int - :keyword data_size: The estimated total data size, in bytes, or -1 if the size is unknown. - Required. - :paramtype data_size: int - :keyword document_count: The estimated total number of documents, or -1 if the document count - is unknown. Required. - :paramtype document_count: int - :keyword name: The unqualified name of the database or collection. Required. - :paramtype name: str - :keyword qualified_name: The qualified name of the database or collection. For a collection, - this is the database-qualified name. Required. - :paramtype qualified_name: str - """ - super().__init__(**kwargs) - self.average_document_size = average_document_size - self.data_size = data_size - self.document_count = document_count - self.name = name - self.qualified_name = qualified_name - - -class MongoDbCollectionInfo(MongoDbObjectInfo): - """Describes a supported collection within a MongoDB database. - - All required parameters must be populated in order to send to server. - - :ivar average_document_size: The average document size, or -1 if the average size is unknown. - Required. - :vartype average_document_size: int - :ivar data_size: The estimated total data size, in bytes, or -1 if the size is unknown. - Required. - :vartype data_size: int - :ivar document_count: The estimated total number of documents, or -1 if the document count is - unknown. Required. - :vartype document_count: int - :ivar name: The unqualified name of the database or collection. Required. - :vartype name: str - :ivar qualified_name: The qualified name of the database or collection. For a collection, this - is the database-qualified name. Required. - :vartype qualified_name: str - :ivar database_name: The name of the database containing the collection. Required. - :vartype database_name: str - :ivar is_capped: Whether the collection is a capped collection (i.e. whether it has a fixed - size and acts like a circular buffer). Required. - :vartype is_capped: bool - :ivar is_system_collection: Whether the collection is system collection. Required. - :vartype is_system_collection: bool - :ivar is_view: Whether the collection is a view of another collection. Required. - :vartype is_view: bool - :ivar shard_key: The shard key on the collection, or null if the collection is not sharded. - :vartype shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo - :ivar supports_sharding: Whether the database has sharding enabled. Note that the migration - task will enable sharding on the target if necessary. Required. - :vartype supports_sharding: bool - :ivar view_of: The name of the collection that this is a view of, if IsView is true. - :vartype view_of: str - """ - - _validation = { - "average_document_size": {"required": True}, - "data_size": {"required": True}, - "document_count": {"required": True}, - "name": {"required": True}, - "qualified_name": {"required": True}, - "database_name": {"required": True}, - "is_capped": {"required": True}, - "is_system_collection": {"required": True}, - "is_view": {"required": True}, - "supports_sharding": {"required": True}, - } - - _attribute_map = { - "average_document_size": {"key": "averageDocumentSize", "type": "int"}, - "data_size": {"key": "dataSize", "type": "int"}, - "document_count": {"key": "documentCount", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "is_capped": {"key": "isCapped", "type": "bool"}, - "is_system_collection": {"key": "isSystemCollection", "type": "bool"}, - "is_view": {"key": "isView", "type": "bool"}, - "shard_key": {"key": "shardKey", "type": "MongoDbShardKeyInfo"}, - "supports_sharding": {"key": "supportsSharding", "type": "bool"}, - "view_of": {"key": "viewOf", "type": "str"}, - } - - def __init__( - self, - *, - average_document_size: int, - data_size: int, - document_count: int, - name: str, - qualified_name: str, - database_name: str, - is_capped: bool, - is_system_collection: bool, - is_view: bool, - supports_sharding: bool, - shard_key: Optional["_models.MongoDbShardKeyInfo"] = None, - view_of: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword average_document_size: The average document size, or -1 if the average size is - unknown. Required. - :paramtype average_document_size: int - :keyword data_size: The estimated total data size, in bytes, or -1 if the size is unknown. - Required. - :paramtype data_size: int - :keyword document_count: The estimated total number of documents, or -1 if the document count - is unknown. Required. - :paramtype document_count: int - :keyword name: The unqualified name of the database or collection. Required. - :paramtype name: str - :keyword qualified_name: The qualified name of the database or collection. For a collection, - this is the database-qualified name. Required. - :paramtype qualified_name: str - :keyword database_name: The name of the database containing the collection. Required. - :paramtype database_name: str - :keyword is_capped: Whether the collection is a capped collection (i.e. whether it has a fixed - size and acts like a circular buffer). Required. - :paramtype is_capped: bool - :keyword is_system_collection: Whether the collection is system collection. Required. - :paramtype is_system_collection: bool - :keyword is_view: Whether the collection is a view of another collection. Required. - :paramtype is_view: bool - :keyword shard_key: The shard key on the collection, or null if the collection is not sharded. - :paramtype shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeyInfo - :keyword supports_sharding: Whether the database has sharding enabled. Note that the migration - task will enable sharding on the target if necessary. Required. - :paramtype supports_sharding: bool - :keyword view_of: The name of the collection that this is a view of, if IsView is true. - :paramtype view_of: str - """ - super().__init__( - average_document_size=average_document_size, - data_size=data_size, - document_count=document_count, - name=name, - qualified_name=qualified_name, - **kwargs - ) - self.database_name = database_name - self.is_capped = is_capped - self.is_system_collection = is_system_collection - self.is_view = is_view - self.shard_key = shard_key - self.supports_sharding = supports_sharding - self.view_of = view_of - - -class MongoDbProgress(_serialization.Model): - """Base class for MongoDB migration outputs. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - MongoDbCollectionProgress, MongoDbDatabaseProgress, MongoDbMigrationProgress - - All required parameters must be populated in order to send to server. - - :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. - :vartype bytes_copied: int - :ivar documents_copied: The number of documents copied during the Copying stage. Required. - :vartype documents_copied: int - :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :vartype elapsed_time: str - :ivar errors: The errors and warnings that have occurred for the current object. The keys are - the error codes. Required. - :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :ivar events_pending: The number of oplog events awaiting replay. Required. - :vartype events_pending: int - :ivar events_replayed: The number of oplog events replayed so far. Required. - :vartype events_replayed: int - :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :vartype last_event_time: ~datetime.datetime - :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :vartype last_replay_time: ~datetime.datetime - :ivar name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :vartype name: str - :ivar qualified_name: The qualified name of the progress object. For a collection, this is the - database-qualified name. For a database, this is the database name. For the overall migration, - this is null. - :vartype qualified_name: str - :ivar result_type: The type of progress object. Required. Known values are: "Migration", - "Database", and "Collection". - :vartype result_type: str or ~azure.mgmt.datamigration.models.MongoDbProgressResultType - :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :ivar total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :vartype total_bytes: int - :ivar total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :vartype total_documents: int - """ - - _validation = { - "bytes_copied": {"required": True}, - "documents_copied": {"required": True}, - "elapsed_time": {"required": True}, - "errors": {"required": True}, - "events_pending": {"required": True}, - "events_replayed": {"required": True}, - "result_type": {"required": True}, - "state": {"required": True}, - "total_bytes": {"required": True}, - "total_documents": {"required": True}, - } - - _attribute_map = { - "bytes_copied": {"key": "bytesCopied", "type": "int"}, - "documents_copied": {"key": "documentsCopied", "type": "int"}, - "elapsed_time": {"key": "elapsedTime", "type": "str"}, - "errors": {"key": "errors", "type": "{MongoDbError}"}, - "events_pending": {"key": "eventsPending", "type": "int"}, - "events_replayed": {"key": "eventsReplayed", "type": "int"}, - "last_event_time": {"key": "lastEventTime", "type": "iso-8601"}, - "last_replay_time": {"key": "lastReplayTime", "type": "iso-8601"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "total_bytes": {"key": "totalBytes", "type": "int"}, - "total_documents": {"key": "totalDocuments", "type": "int"}, - } - - _subtype_map = { - "result_type": { - "Collection": "MongoDbCollectionProgress", - "Database": "MongoDbDatabaseProgress", - "Migration": "MongoDbMigrationProgress", - } - } - - def __init__( - self, - *, - bytes_copied: int, - documents_copied: int, - elapsed_time: str, - errors: dict[str, "_models.MongoDbError"], - events_pending: int, - events_replayed: int, - state: Union[str, "_models.MongoDbMigrationState"], - total_bytes: int, - total_documents: int, - last_event_time: Optional[datetime.datetime] = None, - last_replay_time: Optional[datetime.datetime] = None, - name: Optional[str] = None, - qualified_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. - :paramtype bytes_copied: int - :keyword documents_copied: The number of documents copied during the Copying stage. Required. - :paramtype documents_copied: int - :keyword elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :paramtype elapsed_time: str - :keyword errors: The errors and warnings that have occurred for the current object. The keys - are the error codes. Required. - :paramtype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :keyword events_pending: The number of oplog events awaiting replay. Required. - :paramtype events_pending: int - :keyword events_replayed: The number of oplog events replayed so far. Required. - :paramtype events_replayed: int - :keyword last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :paramtype last_event_time: ~datetime.datetime - :keyword last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :paramtype last_replay_time: ~datetime.datetime - :keyword name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :paramtype name: str - :keyword qualified_name: The qualified name of the progress object. For a collection, this is - the database-qualified name. For a database, this is the database name. For the overall - migration, this is null. - :paramtype qualified_name: str - :keyword state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :paramtype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :keyword total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :paramtype total_bytes: int - :keyword total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :paramtype total_documents: int - """ - super().__init__(**kwargs) - self.bytes_copied = bytes_copied - self.documents_copied = documents_copied - self.elapsed_time = elapsed_time - self.errors = errors - self.events_pending = events_pending - self.events_replayed = events_replayed - self.last_event_time = last_event_time - self.last_replay_time = last_replay_time - self.name = name - self.qualified_name = qualified_name - self.result_type: Optional[str] = None - self.state = state - self.total_bytes = total_bytes - self.total_documents = total_documents - - -class MongoDbCollectionProgress(MongoDbProgress): - """Describes the progress of a collection. - - All required parameters must be populated in order to send to server. - - :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. - :vartype bytes_copied: int - :ivar documents_copied: The number of documents copied during the Copying stage. Required. - :vartype documents_copied: int - :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :vartype elapsed_time: str - :ivar errors: The errors and warnings that have occurred for the current object. The keys are - the error codes. Required. - :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :ivar events_pending: The number of oplog events awaiting replay. Required. - :vartype events_pending: int - :ivar events_replayed: The number of oplog events replayed so far. Required. - :vartype events_replayed: int - :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :vartype last_event_time: ~datetime.datetime - :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :vartype last_replay_time: ~datetime.datetime - :ivar name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :vartype name: str - :ivar qualified_name: The qualified name of the progress object. For a collection, this is the - database-qualified name. For a database, this is the database name. For the overall migration, - this is null. - :vartype qualified_name: str - :ivar result_type: The type of progress object. Required. Known values are: "Migration", - "Database", and "Collection". - :vartype result_type: str or ~azure.mgmt.datamigration.models.MongoDbProgressResultType - :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :ivar total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :vartype total_bytes: int - :ivar total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :vartype total_documents: int - """ - - _validation = { - "bytes_copied": {"required": True}, - "documents_copied": {"required": True}, - "elapsed_time": {"required": True}, - "errors": {"required": True}, - "events_pending": {"required": True}, - "events_replayed": {"required": True}, - "result_type": {"required": True}, - "state": {"required": True}, - "total_bytes": {"required": True}, - "total_documents": {"required": True}, - } - - _attribute_map = { - "bytes_copied": {"key": "bytesCopied", "type": "int"}, - "documents_copied": {"key": "documentsCopied", "type": "int"}, - "elapsed_time": {"key": "elapsedTime", "type": "str"}, - "errors": {"key": "errors", "type": "{MongoDbError}"}, - "events_pending": {"key": "eventsPending", "type": "int"}, - "events_replayed": {"key": "eventsReplayed", "type": "int"}, - "last_event_time": {"key": "lastEventTime", "type": "iso-8601"}, - "last_replay_time": {"key": "lastReplayTime", "type": "iso-8601"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "total_bytes": {"key": "totalBytes", "type": "int"}, - "total_documents": {"key": "totalDocuments", "type": "int"}, - } - - def __init__( - self, - *, - bytes_copied: int, - documents_copied: int, - elapsed_time: str, - errors: dict[str, "_models.MongoDbError"], - events_pending: int, - events_replayed: int, - state: Union[str, "_models.MongoDbMigrationState"], - total_bytes: int, - total_documents: int, - last_event_time: Optional[datetime.datetime] = None, - last_replay_time: Optional[datetime.datetime] = None, - name: Optional[str] = None, - qualified_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. - :paramtype bytes_copied: int - :keyword documents_copied: The number of documents copied during the Copying stage. Required. - :paramtype documents_copied: int - :keyword elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :paramtype elapsed_time: str - :keyword errors: The errors and warnings that have occurred for the current object. The keys - are the error codes. Required. - :paramtype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :keyword events_pending: The number of oplog events awaiting replay. Required. - :paramtype events_pending: int - :keyword events_replayed: The number of oplog events replayed so far. Required. - :paramtype events_replayed: int - :keyword last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :paramtype last_event_time: ~datetime.datetime - :keyword last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :paramtype last_replay_time: ~datetime.datetime - :keyword name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :paramtype name: str - :keyword qualified_name: The qualified name of the progress object. For a collection, this is - the database-qualified name. For a database, this is the database name. For the overall - migration, this is null. - :paramtype qualified_name: str - :keyword state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :paramtype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :keyword total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :paramtype total_bytes: int - :keyword total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :paramtype total_documents: int - """ - super().__init__( - bytes_copied=bytes_copied, - documents_copied=documents_copied, - elapsed_time=elapsed_time, - errors=errors, - events_pending=events_pending, - events_replayed=events_replayed, - last_event_time=last_event_time, - last_replay_time=last_replay_time, - name=name, - qualified_name=qualified_name, - state=state, - total_bytes=total_bytes, - total_documents=total_documents, - **kwargs - ) - self.result_type: str = "Collection" - - -class MongoDbCollectionSettings(_serialization.Model): - """Describes how an individual MongoDB collection should be migrated. - - :ivar can_delete: Whether the migrator is allowed to drop the target collection in the course - of performing a migration. The default is true. - :vartype can_delete: bool - :ivar shard_key: Describes a MongoDB shard key. - :vartype shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting - :ivar target_r_us: The RUs that should be configured on a CosmosDB target, or null to use the - default. This has no effect on non-CosmosDB targets. - :vartype target_r_us: int - """ - - _attribute_map = { - "can_delete": {"key": "canDelete", "type": "bool"}, - "shard_key": {"key": "shardKey", "type": "MongoDbShardKeySetting"}, - "target_r_us": {"key": "targetRUs", "type": "int"}, - } - - def __init__( - self, - *, - can_delete: Optional[bool] = None, - shard_key: Optional["_models.MongoDbShardKeySetting"] = None, - target_r_us: Optional[int] = None, - **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. - :paramtype can_delete: bool - :keyword shard_key: Describes a MongoDB shard key. - :paramtype shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting - :keyword target_r_us: The RUs that should be configured on a CosmosDB target, or null to use - the default. This has no effect on non-CosmosDB targets. - :paramtype target_r_us: int - """ - super().__init__(**kwargs) - self.can_delete = can_delete - self.shard_key = shard_key - self.target_r_us = target_r_us - - -class MongoDbCommandInput(_serialization.Model): - """Describes the input to the 'cancel' and 'restart' MongoDB migration commands. - - :ivar object_name: The qualified name of a database or collection to act upon, or null to act - upon the entire migration. - :vartype object_name: str - """ - - _attribute_map = { - "object_name": {"key": "objectName", "type": "str"}, - } - - 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. - :paramtype object_name: str - """ - super().__init__(**kwargs) - self.object_name = object_name - - -class MongoDbConnectionInfo(ConnectionInfo): - """Describes a connection to a MongoDB data source. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - :ivar connection_string: A MongoDB connection string or blob container URL. The user name and - password can be specified here or in the userName and password properties. Required. - :vartype connection_string: str - :ivar data_source: Data source. - :vartype data_source: str - :ivar encrypt_connection: Whether to encrypt the connection. - :vartype encrypt_connection: bool - :ivar server_brand_version: server brand version. - :vartype server_brand_version: str - :ivar server_version: server version. - :vartype server_version: str - :ivar server_name: name of the server. - :vartype server_name: str - :ivar trust_server_certificate: Whether to trust the server certificate. - :vartype trust_server_certificate: bool - :ivar enforce_ssl: - :vartype enforce_ssl: bool - :ivar port: port for server. - :vartype port: int - :ivar additional_settings: Additional connection settings. - :vartype additional_settings: str - :ivar authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - """ - - _validation = { - "type": {"required": True}, - "connection_string": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "connection_string": {"key": "connectionString", "type": "str"}, - "data_source": {"key": "dataSource", "type": "str"}, - "encrypt_connection": {"key": "encryptConnection", "type": "bool"}, - "server_brand_version": {"key": "serverBrandVersion", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "bool"}, - "enforce_ssl": {"key": "enforceSSL", "type": "bool"}, - "port": {"key": "port", "type": "int"}, - "additional_settings": {"key": "additionalSettings", "type": "str"}, - "authentication": {"key": "authentication", "type": "str"}, - } - - def __init__( - self, - *, - connection_string: str, - user_name: Optional[str] = None, - password: Optional[str] = None, - data_source: Optional[str] = None, - encrypt_connection: Optional[bool] = None, - server_brand_version: Optional[str] = None, - server_version: Optional[str] = None, - server_name: Optional[str] = None, - trust_server_certificate: bool = False, - enforce_ssl: Optional[bool] = None, - port: Optional[int] = None, - additional_settings: Optional[str] = None, - authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - :keyword connection_string: A MongoDB connection string or blob container URL. The user name - and password can be specified here or in the userName and password properties. Required. - :paramtype connection_string: str - :keyword data_source: Data source. - :paramtype data_source: str - :keyword encrypt_connection: Whether to encrypt the connection. - :paramtype encrypt_connection: bool - :keyword server_brand_version: server brand version. - :paramtype server_brand_version: str - :keyword server_version: server version. - :paramtype server_version: str - :keyword server_name: name of the server. - :paramtype server_name: str - :keyword trust_server_certificate: Whether to trust the server certificate. - :paramtype trust_server_certificate: bool - :keyword enforce_ssl: - :paramtype enforce_ssl: bool - :keyword port: port for server. - :paramtype port: int - :keyword additional_settings: Additional connection settings. - :paramtype additional_settings: str - :keyword authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :paramtype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - """ - super().__init__(user_name=user_name, password=password, **kwargs) - self.type: str = "MongoDbConnectionInfo" - self.connection_string = connection_string - self.data_source = data_source - self.encrypt_connection = encrypt_connection - self.server_brand_version = server_brand_version - self.server_version = server_version - self.server_name = server_name - self.trust_server_certificate = trust_server_certificate - self.enforce_ssl = enforce_ssl - self.port = port - self.additional_settings = additional_settings - self.authentication = authentication - - -class MongoDbDatabaseInfo(MongoDbObjectInfo): - """Describes a database within a MongoDB data source. - - All required parameters must be populated in order to send to server. - - :ivar average_document_size: The average document size, or -1 if the average size is unknown. - Required. - :vartype average_document_size: int - :ivar data_size: The estimated total data size, in bytes, or -1 if the size is unknown. - Required. - :vartype data_size: int - :ivar document_count: The estimated total number of documents, or -1 if the document count is - unknown. Required. - :vartype document_count: int - :ivar name: The unqualified name of the database or collection. Required. - :vartype name: str - :ivar qualified_name: The qualified name of the database or collection. For a collection, this - is the database-qualified name. Required. - :vartype qualified_name: str - :ivar collections: A list of supported collections in a MongoDB database. Required. - :vartype collections: list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] - :ivar supports_sharding: Whether the database has sharding enabled. Note that the migration - task will enable sharding on the target if necessary. Required. - :vartype supports_sharding: bool - """ - - _validation = { - "average_document_size": {"required": True}, - "data_size": {"required": True}, - "document_count": {"required": True}, - "name": {"required": True}, - "qualified_name": {"required": True}, - "collections": {"required": True}, - "supports_sharding": {"required": True}, - } - - _attribute_map = { - "average_document_size": {"key": "averageDocumentSize", "type": "int"}, - "data_size": {"key": "dataSize", "type": "int"}, - "document_count": {"key": "documentCount", "type": "int"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - "collections": {"key": "collections", "type": "[MongoDbCollectionInfo]"}, - "supports_sharding": {"key": "supportsSharding", "type": "bool"}, - } - - def __init__( - self, - *, - average_document_size: int, - data_size: int, - document_count: int, - name: str, - qualified_name: str, - collections: list["_models.MongoDbCollectionInfo"], - supports_sharding: bool, - **kwargs: Any - ) -> None: - """ - :keyword average_document_size: The average document size, or -1 if the average size is - unknown. Required. - :paramtype average_document_size: int - :keyword data_size: The estimated total data size, in bytes, or -1 if the size is unknown. - Required. - :paramtype data_size: int - :keyword document_count: The estimated total number of documents, or -1 if the document count - is unknown. Required. - :paramtype document_count: int - :keyword name: The unqualified name of the database or collection. Required. - :paramtype name: str - :keyword qualified_name: The qualified name of the database or collection. For a collection, - this is the database-qualified name. Required. - :paramtype qualified_name: str - :keyword collections: A list of supported collections in a MongoDB database. Required. - :paramtype collections: list[~azure.mgmt.datamigration.models.MongoDbCollectionInfo] - :keyword supports_sharding: Whether the database has sharding enabled. Note that the migration - task will enable sharding on the target if necessary. Required. - :paramtype supports_sharding: bool - """ - super().__init__( - average_document_size=average_document_size, - data_size=data_size, - document_count=document_count, - name=name, - qualified_name=qualified_name, - **kwargs - ) - self.collections = collections - self.supports_sharding = supports_sharding - - -class MongoDbDatabaseProgress(MongoDbProgress): - """Describes the progress of a database. - - All required parameters must be populated in order to send to server. - - :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. - :vartype bytes_copied: int - :ivar documents_copied: The number of documents copied during the Copying stage. Required. - :vartype documents_copied: int - :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :vartype elapsed_time: str - :ivar errors: The errors and warnings that have occurred for the current object. The keys are - the error codes. Required. - :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :ivar events_pending: The number of oplog events awaiting replay. Required. - :vartype events_pending: int - :ivar events_replayed: The number of oplog events replayed so far. Required. - :vartype events_replayed: int - :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :vartype last_event_time: ~datetime.datetime - :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :vartype last_replay_time: ~datetime.datetime - :ivar name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :vartype name: str - :ivar qualified_name: The qualified name of the progress object. For a collection, this is the - database-qualified name. For a database, this is the database name. For the overall migration, - this is null. - :vartype qualified_name: str - :ivar result_type: The type of progress object. Required. Known values are: "Migration", - "Database", and "Collection". - :vartype result_type: str or ~azure.mgmt.datamigration.models.MongoDbProgressResultType - :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :ivar total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :vartype total_bytes: int - :ivar total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :vartype total_documents: int - :ivar collections: The progress of the collections in the database. The keys are the - unqualified names of the collections. - :vartype collections: dict[str, ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] - """ - - _validation = { - "bytes_copied": {"required": True}, - "documents_copied": {"required": True}, - "elapsed_time": {"required": True}, - "errors": {"required": True}, - "events_pending": {"required": True}, - "events_replayed": {"required": True}, - "result_type": {"required": True}, - "state": {"required": True}, - "total_bytes": {"required": True}, - "total_documents": {"required": True}, - } - - _attribute_map = { - "bytes_copied": {"key": "bytesCopied", "type": "int"}, - "documents_copied": {"key": "documentsCopied", "type": "int"}, - "elapsed_time": {"key": "elapsedTime", "type": "str"}, - "errors": {"key": "errors", "type": "{MongoDbError}"}, - "events_pending": {"key": "eventsPending", "type": "int"}, - "events_replayed": {"key": "eventsReplayed", "type": "int"}, - "last_event_time": {"key": "lastEventTime", "type": "iso-8601"}, - "last_replay_time": {"key": "lastReplayTime", "type": "iso-8601"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "total_bytes": {"key": "totalBytes", "type": "int"}, - "total_documents": {"key": "totalDocuments", "type": "int"}, - "collections": {"key": "collections", "type": "{MongoDbCollectionProgress}"}, - } - - def __init__( - self, - *, - bytes_copied: int, - documents_copied: int, - elapsed_time: str, - errors: dict[str, "_models.MongoDbError"], - events_pending: int, - events_replayed: int, - state: Union[str, "_models.MongoDbMigrationState"], - total_bytes: int, - total_documents: int, - last_event_time: Optional[datetime.datetime] = None, - last_replay_time: Optional[datetime.datetime] = None, - name: Optional[str] = None, - qualified_name: Optional[str] = None, - collections: Optional[dict[str, "_models.MongoDbCollectionProgress"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. - :paramtype bytes_copied: int - :keyword documents_copied: The number of documents copied during the Copying stage. Required. - :paramtype documents_copied: int - :keyword elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :paramtype elapsed_time: str - :keyword errors: The errors and warnings that have occurred for the current object. The keys - are the error codes. Required. - :paramtype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :keyword events_pending: The number of oplog events awaiting replay. Required. - :paramtype events_pending: int - :keyword events_replayed: The number of oplog events replayed so far. Required. - :paramtype events_replayed: int - :keyword last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :paramtype last_event_time: ~datetime.datetime - :keyword last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :paramtype last_replay_time: ~datetime.datetime - :keyword name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :paramtype name: str - :keyword qualified_name: The qualified name of the progress object. For a collection, this is - the database-qualified name. For a database, this is the database name. For the overall - migration, this is null. - :paramtype qualified_name: str - :keyword state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :paramtype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :keyword total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :paramtype total_bytes: int - :keyword total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :paramtype total_documents: int - :keyword collections: The progress of the collections in the database. The keys are the - unqualified names of the collections. - :paramtype collections: dict[str, ~azure.mgmt.datamigration.models.MongoDbCollectionProgress] - """ - super().__init__( - bytes_copied=bytes_copied, - documents_copied=documents_copied, - elapsed_time=elapsed_time, - errors=errors, - events_pending=events_pending, - events_replayed=events_replayed, - last_event_time=last_event_time, - last_replay_time=last_replay_time, - name=name, - qualified_name=qualified_name, - state=state, - total_bytes=total_bytes, - total_documents=total_documents, - **kwargs - ) - self.result_type: str = "Database" - self.collections = collections - - -class MongoDbDatabaseSettings(_serialization.Model): - """Describes how an individual MongoDB database should be migrated. - - All required parameters must be populated in order to send to server. - - :ivar collections: The collections on the source database to migrate to the target. The keys - are the unqualified names of the collections. Required. - :vartype collections: dict[str, ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] - :ivar target_r_us: The RUs that should be configured on a CosmosDB target, or null to use the - default, or 0 if throughput should not be provisioned for the database. This has no effect on - non-CosmosDB targets. - :vartype target_r_us: int - """ - - _validation = { - "collections": {"required": True}, - } - - _attribute_map = { - "collections": {"key": "collections", "type": "{MongoDbCollectionSettings}"}, - "target_r_us": {"key": "targetRUs", "type": "int"}, - } - - def __init__( - self, - *, - collections: dict[str, "_models.MongoDbCollectionSettings"], - target_r_us: Optional[int] = None, - **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. - :paramtype collections: dict[str, ~azure.mgmt.datamigration.models.MongoDbCollectionSettings] - :keyword target_r_us: The RUs that should be configured on a CosmosDB target, or null to use - the default, or 0 if throughput should not be provisioned for the database. This has no effect - on non-CosmosDB targets. - :paramtype target_r_us: int - """ - super().__init__(**kwargs) - self.collections = collections - self.target_r_us = target_r_us - - -class MongoDbError(_serialization.Model): - """Describes an error or warning that occurred during a MongoDB migration. - - :ivar code: The non-localized, machine-readable code that describes the error or warning. - :vartype code: str - :ivar count: The number of times the error or warning has occurred. - :vartype count: int - :ivar message: The localized, human-readable message that describes the error or warning. - :vartype message: str - :ivar type: The type of error or warning. Known values are: "Error", "ValidationError", and - "Warning". - :vartype type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "count": {"key": "count", "type": "int"}, - "message": {"key": "message", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - count: Optional[int] = None, - message: Optional[str] = None, - type: Optional[Union[str, "_models.MongoDbErrorType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: The non-localized, machine-readable code that describes the error or warning. - :paramtype code: str - :keyword count: The number of times the error or warning has occurred. - :paramtype count: int - :keyword message: The localized, human-readable message that describes the error or warning. - :paramtype message: str - :keyword type: The type of error or warning. Known values are: "Error", "ValidationError", and - "Warning". - :paramtype type: str or ~azure.mgmt.datamigration.models.MongoDbErrorType - """ - super().__init__(**kwargs) - self.code = code - self.count = count - self.message = message - self.type = type - - -class MongoDbFinishCommand(CommandProperties): - """Properties for the command that finishes a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", - "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". - :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. Known values are: - "Unknown", "Accepted", "Running", "Succeeded", and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :ivar input: Command input. - :vartype input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput - """ - - _validation = { - "command_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "command_type": {"key": "commandType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "input": {"key": "input", "type": "MongoDbFinishCommandInput"}, - } - - def __init__(self, *, input: Optional["_models.MongoDbFinishCommandInput"] = None, **kwargs: Any) -> None: - """ - :keyword input: Command input. - :paramtype input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput - """ - super().__init__(**kwargs) - self.command_type: str = "finish" - self.input = input - - -class MongoDbFinishCommandInput(MongoDbCommandInput): - """Describes the input to the 'finish' MongoDB migration command. - - All required parameters must be populated in order to send to server. - - :ivar object_name: The qualified name of a database or collection to act upon, or null to act - upon the entire migration. - :vartype object_name: str - :ivar immediate: If true, replication for the affected objects will be stopped immediately. If - false, the migrator will finish replaying queued events before finishing the replication. - Required. - :vartype immediate: bool - """ - - _validation = { - "immediate": {"required": True}, - } - - _attribute_map = { - "object_name": {"key": "objectName", "type": "str"}, - "immediate": {"key": "immediate", "type": "bool"}, - } - - 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. - :paramtype object_name: str - :keyword immediate: If true, replication for the affected objects will be stopped immediately. - If false, the migrator will finish replaying queued events before finishing the replication. - Required. - :paramtype immediate: bool - """ - super().__init__(object_name=object_name, **kwargs) - self.immediate = immediate - - -class MongoDbMigrationProgress(MongoDbProgress): - """Describes the progress of the overall migration. - - All required parameters must be populated in order to send to server. - - :ivar bytes_copied: The number of document bytes copied during the Copying stage. Required. - :vartype bytes_copied: int - :ivar documents_copied: The number of documents copied during the Copying stage. Required. - :vartype documents_copied: int - :ivar elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :vartype elapsed_time: str - :ivar errors: The errors and warnings that have occurred for the current object. The keys are - the error codes. Required. - :vartype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :ivar events_pending: The number of oplog events awaiting replay. Required. - :vartype events_pending: int - :ivar events_replayed: The number of oplog events replayed so far. Required. - :vartype events_replayed: int - :ivar last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :vartype last_event_time: ~datetime.datetime - :ivar last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :vartype last_replay_time: ~datetime.datetime - :ivar name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :vartype name: str - :ivar qualified_name: The qualified name of the progress object. For a collection, this is the - database-qualified name. For a database, this is the database name. For the overall migration, - this is null. - :vartype qualified_name: str - :ivar result_type: The type of progress object. Required. Known values are: "Migration", - "Database", and "Collection". - :vartype result_type: str or ~azure.mgmt.datamigration.models.MongoDbProgressResultType - :ivar state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :ivar total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :vartype total_bytes: int - :ivar total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :vartype total_documents: int - :ivar databases: The progress of the databases in the migration. The keys are the names of the - databases. - :vartype databases: dict[str, ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] - """ - - _validation = { - "bytes_copied": {"required": True}, - "documents_copied": {"required": True}, - "elapsed_time": {"required": True}, - "errors": {"required": True}, - "events_pending": {"required": True}, - "events_replayed": {"required": True}, - "result_type": {"required": True}, - "state": {"required": True}, - "total_bytes": {"required": True}, - "total_documents": {"required": True}, - } - - _attribute_map = { - "bytes_copied": {"key": "bytesCopied", "type": "int"}, - "documents_copied": {"key": "documentsCopied", "type": "int"}, - "elapsed_time": {"key": "elapsedTime", "type": "str"}, - "errors": {"key": "errors", "type": "{MongoDbError}"}, - "events_pending": {"key": "eventsPending", "type": "int"}, - "events_replayed": {"key": "eventsReplayed", "type": "int"}, - "last_event_time": {"key": "lastEventTime", "type": "iso-8601"}, - "last_replay_time": {"key": "lastReplayTime", "type": "iso-8601"}, - "name": {"key": "name", "type": "str"}, - "qualified_name": {"key": "qualifiedName", "type": "str"}, - "result_type": {"key": "resultType", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "total_bytes": {"key": "totalBytes", "type": "int"}, - "total_documents": {"key": "totalDocuments", "type": "int"}, - "databases": {"key": "databases", "type": "{MongoDbDatabaseProgress}"}, - } - - def __init__( - self, - *, - bytes_copied: int, - documents_copied: int, - elapsed_time: str, - errors: dict[str, "_models.MongoDbError"], - events_pending: int, - events_replayed: int, - state: Union[str, "_models.MongoDbMigrationState"], - total_bytes: int, - total_documents: int, - last_event_time: Optional[datetime.datetime] = None, - last_replay_time: Optional[datetime.datetime] = None, - name: Optional[str] = None, - qualified_name: Optional[str] = None, - databases: Optional[dict[str, "_models.MongoDbDatabaseProgress"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. - :paramtype bytes_copied: int - :keyword documents_copied: The number of documents copied during the Copying stage. Required. - :paramtype documents_copied: int - :keyword elapsed_time: The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan - format). Required. - :paramtype elapsed_time: str - :keyword errors: The errors and warnings that have occurred for the current object. The keys - are the error codes. Required. - :paramtype errors: dict[str, ~azure.mgmt.datamigration.models.MongoDbError] - :keyword events_pending: The number of oplog events awaiting replay. Required. - :paramtype events_pending: int - :keyword events_replayed: The number of oplog events replayed so far. Required. - :paramtype events_replayed: int - :keyword last_event_time: The timestamp of the last oplog event received, or null if no oplog - event has been received yet. - :paramtype last_event_time: ~datetime.datetime - :keyword last_replay_time: The timestamp of the last oplog event replayed, or null if no oplog - event has been replayed yet. - :paramtype last_replay_time: ~datetime.datetime - :keyword name: The name of the progress object. For a collection, this is the unqualified - collection name. For a database, this is the database name. For the overall migration, this is - null. - :paramtype name: str - :keyword qualified_name: The qualified name of the progress object. For a collection, this is - the database-qualified name. For a database, this is the database name. For the overall - migration, this is null. - :paramtype qualified_name: str - :keyword state: Required. Known values are: "NotStarted", "ValidatingInput", "Initializing", - "Restarting", "Copying", "InitialReplay", "Replaying", "Finalizing", "Complete", "Canceled", - and "Failed". - :paramtype state: str or ~azure.mgmt.datamigration.models.MongoDbMigrationState - :keyword total_bytes: The total number of document bytes on the source at the beginning of the - Copying stage, or -1 if the total size was unknown. Required. - :paramtype total_bytes: int - :keyword total_documents: The total number of documents on the source at the beginning of the - Copying stage, or -1 if the total count was unknown. Required. - :paramtype total_documents: int - :keyword databases: The progress of the databases in the migration. The keys are the names of - the databases. - :paramtype databases: dict[str, ~azure.mgmt.datamigration.models.MongoDbDatabaseProgress] - """ - super().__init__( - bytes_copied=bytes_copied, - documents_copied=documents_copied, - elapsed_time=elapsed_time, - errors=errors, - events_pending=events_pending, - events_replayed=events_replayed, - last_event_time=last_event_time, - last_replay_time=last_replay_time, - name=name, - qualified_name=qualified_name, - state=state, - total_bytes=total_bytes, - total_documents=total_documents, - **kwargs - ) - self.result_type: str = "Migration" - self.databases = databases - - -class MongoDbMigrationSettings(_serialization.Model): - """Describes how a MongoDB data migration should be performed. - - All required parameters must be populated in order to send to server. - - :ivar 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 - to use the default boost (which is generally the maximum), or null to not boost the RUs. This - setting has no effect on non-CosmosDB targets. - :vartype boost_r_us: int - :ivar databases: The databases on the source cluster to migrate to the target. The keys are the - names of the databases. Required. - :vartype databases: dict[str, ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] - :ivar replication: Describes how changes will be replicated from the source to the target. The - default is OneTime. Known values are: "Disabled", "OneTime", and "Continuous". - :vartype replication: str or ~azure.mgmt.datamigration.models.MongoDbReplication - :ivar source: Settings used to connect to the source cluster. Required. - :vartype source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :ivar target: Settings used to connect to the target cluster. Required. - :vartype target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :ivar throttling: Settings used to limit the resource usage of the migration. - :vartype throttling: ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings - """ - - _validation = { - "databases": {"required": True}, - "source": {"required": True}, - "target": {"required": True}, - } - - _attribute_map = { - "boost_r_us": {"key": "boostRUs", "type": "int"}, - "databases": {"key": "databases", "type": "{MongoDbDatabaseSettings}"}, - "replication": {"key": "replication", "type": "str"}, - "source": {"key": "source", "type": "MongoDbConnectionInfo"}, - "target": {"key": "target", "type": "MongoDbConnectionInfo"}, - "throttling": {"key": "throttling", "type": "MongoDbThrottlingSettings"}, - } - - def __init__( - self, - *, - databases: dict[str, "_models.MongoDbDatabaseSettings"], - source: "_models.MongoDbConnectionInfo", - target: "_models.MongoDbConnectionInfo", - boost_r_us: Optional[int] = None, - replication: Optional[Union[str, "_models.MongoDbReplication"]] = None, - throttling: Optional["_models.MongoDbThrottlingSettings"] = None, - **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 - to use the default boost (which is generally the maximum), or null to not boost the RUs. This - setting has no effect on non-CosmosDB targets. - :paramtype boost_r_us: int - :keyword databases: The databases on the source cluster to migrate to the target. The keys are - the names of the databases. Required. - :paramtype databases: dict[str, ~azure.mgmt.datamigration.models.MongoDbDatabaseSettings] - :keyword replication: Describes how changes will be replicated from the source to the target. - The default is OneTime. Known values are: "Disabled", "OneTime", and "Continuous". - :paramtype replication: str or ~azure.mgmt.datamigration.models.MongoDbReplication - :keyword source: Settings used to connect to the source cluster. Required. - :paramtype source: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :keyword target: Settings used to connect to the target cluster. Required. - :paramtype target: ~azure.mgmt.datamigration.models.MongoDbConnectionInfo - :keyword throttling: Settings used to limit the resource usage of the migration. - :paramtype throttling: ~azure.mgmt.datamigration.models.MongoDbThrottlingSettings - """ - super().__init__(**kwargs) - self.boost_r_us = boost_r_us - self.databases = databases - self.replication = replication - self.source = source - self.target = target - self.throttling = throttling - - -class MongoDbRestartCommand(CommandProperties): - """Properties for the command that restarts a migration in whole or in part. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar command_type: Command type. Required. Known values are: "Migrate.Sync.Complete.Database", - "Migrate.SqlServer.AzureDbSqlMi.Complete", "cancel", "finish", and "restart". - :vartype command_type: str or ~azure.mgmt.datamigration.models.CommandType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the command. This is ignored if submitted. Known values are: - "Unknown", "Accepted", "Running", "Succeeded", and "Failed". - :vartype state: str or ~azure.mgmt.datamigration.models.CommandState - :ivar input: Command input. - :vartype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - - _validation = { - "command_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - } - - _attribute_map = { - "command_type": {"key": "commandType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "input": {"key": "input", "type": "MongoDbCommandInput"}, - } - - def __init__(self, *, input: Optional["_models.MongoDbCommandInput"] = None, **kwargs: Any) -> None: - """ - :keyword input: Command input. - :paramtype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput - """ - super().__init__(**kwargs) - self.command_type: str = "restart" - self.input = input - - -class MongoDbShardKeyField(_serialization.Model): - """Describes a field reference within a MongoDB shard key. - - All required parameters must be populated in order to send to server. - - :ivar name: The name of the field. Required. - :vartype name: str - :ivar order: The field ordering. Required. Known values are: "Forward", "Reverse", and - "Hashed". - :vartype order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder - """ - - _validation = { - "name": {"required": True}, - "order": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "order": {"key": "order", "type": "str"}, - } - - def __init__(self, *, name: str, order: Union[str, "_models.MongoDbShardKeyOrder"], **kwargs: Any) -> None: - """ - :keyword name: The name of the field. Required. - :paramtype name: str - :keyword order: The field ordering. Required. Known values are: "Forward", "Reverse", and - "Hashed". - :paramtype order: str or ~azure.mgmt.datamigration.models.MongoDbShardKeyOrder - """ - super().__init__(**kwargs) - self.name = name - self.order = order - - -class MongoDbShardKeyInfo(_serialization.Model): - """Describes a MongoDB shard key. - - All required parameters must be populated in order to send to server. - - :ivar fields: The fields within the shard key. Required. - :vartype fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] - :ivar is_unique: Whether the shard key is unique. Required. - :vartype is_unique: bool - """ - - _validation = { - "fields": {"required": True}, - "is_unique": {"required": True}, - } - - _attribute_map = { - "fields": {"key": "fields", "type": "[MongoDbShardKeyField]"}, - "is_unique": {"key": "isUnique", "type": "bool"}, - } - - 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] - :keyword is_unique: Whether the shard key is unique. Required. - :paramtype is_unique: bool - """ - super().__init__(**kwargs) - self.fields = fields - self.is_unique = is_unique - - -class MongoDbShardKeySetting(_serialization.Model): - """Describes a MongoDB shard key. - - All required parameters must be populated in order to send to server. - - :ivar fields: The fields within the shard key. Required. - :vartype fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] - :ivar is_unique: Whether the shard key is unique. - :vartype is_unique: bool - """ - - _validation = { - "fields": {"required": True}, - } - - _attribute_map = { - "fields": {"key": "fields", "type": "[MongoDbShardKeyField]"}, - "is_unique": {"key": "isUnique", "type": "bool"}, - } - - 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] - :keyword is_unique: Whether the shard key is unique. - :paramtype is_unique: bool - """ - super().__init__(**kwargs) - self.fields = fields - self.is_unique = is_unique - - -class MongoDbThrottlingSettings(_serialization.Model): - """Specifies resource limits for the migration. - - :ivar min_free_cpu: The percentage of CPU time that the migrator will try to avoid using, from - 0 to 100. - :vartype min_free_cpu: int - :ivar min_free_memory_mb: The number of megabytes of RAM that the migrator will try to avoid - using. - :vartype min_free_memory_mb: int - :ivar max_parallelism: The maximum number of work items (e.g. collection copies) that will be - processed in parallel. - :vartype max_parallelism: int - """ - - _attribute_map = { - "min_free_cpu": {"key": "minFreeCpu", "type": "int"}, - "min_free_memory_mb": {"key": "minFreeMemoryMb", "type": "int"}, - "max_parallelism": {"key": "maxParallelism", "type": "int"}, - } - - def __init__( - self, - *, - min_free_cpu: Optional[int] = None, - min_free_memory_mb: Optional[int] = None, - max_parallelism: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_free_cpu: The percentage of CPU time that the migrator will try to avoid using, - from 0 to 100. - :paramtype min_free_cpu: int - :keyword min_free_memory_mb: The number of megabytes of RAM that the migrator will try to avoid - using. - :paramtype min_free_memory_mb: int - :keyword max_parallelism: The maximum number of work items (e.g. collection copies) that will - be processed in parallel. - :paramtype max_parallelism: int - """ - super().__init__(**kwargs) - self.min_free_cpu = min_free_cpu - self.min_free_memory_mb = min_free_memory_mb - self.max_parallelism = max_parallelism - - -class MongoMigrationCollection(_serialization.Model): - """Mongo source and target database and collection details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source_database: Source database name. - :vartype source_database: str - :ivar source_collection: Source collection name. - :vartype source_collection: str - :ivar target_database: Target database name. - :vartype target_database: str - :ivar target_collection: Target collection name. - :vartype target_collection: str - :ivar migration_progress_details: Detailed migration status. Not included by default. - :vartype migration_progress_details: - ~azure.mgmt.datamigration.models.MongoMigrationProgressDetails - """ - - _validation = { - "migration_progress_details": {"readonly": True}, - } - - _attribute_map = { - "source_database": {"key": "sourceDatabase", "type": "str"}, - "source_collection": {"key": "sourceCollection", "type": "str"}, - "target_database": {"key": "targetDatabase", "type": "str"}, - "target_collection": {"key": "targetCollection", "type": "str"}, - "migration_progress_details": {"key": "migrationProgressDetails", "type": "MongoMigrationProgressDetails"}, - } - - def __init__( - self, - *, - source_database: Optional[str] = None, - source_collection: Optional[str] = None, - target_database: Optional[str] = None, - target_collection: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_database: Source database name. - :paramtype source_database: str - :keyword source_collection: Source collection name. - :paramtype source_collection: str - :keyword target_database: Target database name. - :paramtype target_database: str - :keyword target_collection: Target collection name. - :paramtype target_collection: str - """ - super().__init__(**kwargs) - self.source_database = source_database - self.source_collection = source_collection - self.target_database = target_database - self.target_collection = target_collection - self.migration_progress_details: Optional["_models.MongoMigrationProgressDetails"] = None - - -class MongoMigrationProgressDetails(_serialization.Model): - """Detailed status of collection migration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar migration_status: Migration Status. Known values are: "NotStarted", "InProgress", - "Completed", "Failed", and "Canceled". - :vartype migration_status: str or ~azure.mgmt.datamigration.models.MongoMigrationStatus - :ivar migration_error: Migration Error. - :vartype migration_error: str - :ivar source_document_count: Source Document Count. - :vartype source_document_count: int - :ivar processed_document_count: Processed Document Count. - :vartype processed_document_count: int - :ivar duration_in_seconds: Migration duration. - :vartype duration_in_seconds: int - """ - - _validation = { - "migration_status": {"readonly": True}, - "migration_error": {"readonly": True}, - "source_document_count": {"readonly": True}, - "processed_document_count": {"readonly": True}, - "duration_in_seconds": {"readonly": True}, - } - - _attribute_map = { - "migration_status": {"key": "migrationStatus", "type": "str"}, - "migration_error": {"key": "migrationError", "type": "str"}, - "source_document_count": {"key": "sourceDocumentCount", "type": "int"}, - "processed_document_count": {"key": "processedDocumentCount", "type": "int"}, - "duration_in_seconds": {"key": "durationInSeconds", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.migration_status: Optional[Union[str, "_models.MongoMigrationStatus"]] = None - self.migration_error: Optional[str] = None - self.source_document_count: Optional[int] = None - self.processed_document_count: Optional[int] = None - self.duration_in_seconds: Optional[int] = None - - -class MySqlConnectionInfo(ConnectionInfo): - """Information for connecting to MySQL server. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - :ivar server_name: Name of the server. Required. - :vartype server_name: str - :ivar data_source: Data source. - :vartype data_source: str - :ivar port: Port for Server. Required. - :vartype port: int - :ivar encrypt_connection: Whether to encrypt the connection. - :vartype encrypt_connection: bool - :ivar authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - :ivar additional_settings: Additional connection settings. - :vartype additional_settings: str - """ - - _validation = { - "type": {"required": True}, - "server_name": {"required": True}, - "port": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "data_source": {"key": "dataSource", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "encrypt_connection": {"key": "encryptConnection", "type": "bool"}, - "authentication": {"key": "authentication", "type": "str"}, - "additional_settings": {"key": "additionalSettings", "type": "str"}, - } - - def __init__( - self, - *, - server_name: str, - port: int, - user_name: Optional[str] = None, - password: Optional[str] = None, - data_source: Optional[str] = None, - encrypt_connection: bool = True, - authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - additional_settings: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - :keyword server_name: Name of the server. Required. - :paramtype server_name: str - :keyword data_source: Data source. - :paramtype data_source: str - :keyword port: Port for Server. Required. - :paramtype port: int - :keyword encrypt_connection: Whether to encrypt the connection. - :paramtype encrypt_connection: bool - :keyword authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :paramtype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - :keyword additional_settings: Additional connection settings. - :paramtype additional_settings: str - """ - super().__init__(user_name=user_name, password=password, **kwargs) - self.type: str = "MySqlConnectionInfo" - self.server_name = server_name - self.data_source = data_source - self.port = port - self.encrypt_connection = encrypt_connection - self.authentication = authentication - self.additional_settings = additional_settings - - -class NameAvailabilityRequest(_serialization.Model): - """A resource type and proposed name. - - :ivar name: The proposed resource name. - :vartype name: str - :ivar type: The resource type chain (e.g. virtualMachines/extensions). - :vartype type: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The proposed resource name. - :paramtype name: str - :keyword type: The resource type chain (e.g. virtualMachines/extensions). - :paramtype type: str - """ - super().__init__(**kwargs) - self.name = name - self.type = type - - -class NameAvailabilityResponse(_serialization.Model): - """Indicates whether a proposed resource name is available. - - :ivar name_available: If true, the name is valid and available. If false, 'reason' describes - why not. - :vartype name_available: bool - :ivar reason: The reason why the name is not available, if nameAvailable is false. Known values - are: "AlreadyExists" and "Invalid". - :vartype reason: str or ~azure.mgmt.datamigration.models.NameCheckFailureReason - :ivar message: The localized reason why the name is not available, if nameAvailable is false. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[Union[str, "_models.NameCheckFailureReason"]] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: If true, the name is valid and available. If false, 'reason' describes - why not. - :paramtype name_available: bool - :keyword reason: The reason why the name is not available, if nameAvailable is false. Known - values are: "AlreadyExists" and "Invalid". - :paramtype reason: str or ~azure.mgmt.datamigration.models.NameCheckFailureReason - :keyword message: The localized reason why the name is not available, if nameAvailable is - false. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NodeMonitoringData(_serialization.Model): - """NodeMonitoringData. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar additional_properties: Unmatched properties from the message are deserialized in this - collection. - :vartype additional_properties: dict[str, JSON] - :ivar node_name: Name of the integration runtime node. - :vartype node_name: str - :ivar available_memory_in_mb: Available memory (MB) on the integration runtime node. - :vartype available_memory_in_mb: int - :ivar cpu_utilization: CPU percentage on the integration runtime node. - :vartype cpu_utilization: int - :ivar concurrent_jobs_limit: Maximum concurrent jobs on the integration runtime node. - :vartype concurrent_jobs_limit: int - :ivar concurrent_jobs_running: The number of jobs currently running on the integration runtime - node. - :vartype concurrent_jobs_running: int - :ivar max_concurrent_jobs: The maximum concurrent jobs in this integration runtime. - :vartype max_concurrent_jobs: int - :ivar sent_bytes: Sent bytes on the integration runtime node. - :vartype sent_bytes: float - :ivar received_bytes: Received bytes on the integration runtime node. - :vartype received_bytes: float - """ - - _validation = { - "additional_properties": {"readonly": True}, - "node_name": {"readonly": True}, - "available_memory_in_mb": {"readonly": True}, - "cpu_utilization": {"readonly": True}, - "concurrent_jobs_limit": {"readonly": True}, - "concurrent_jobs_running": {"readonly": True}, - "max_concurrent_jobs": {"readonly": True}, - "sent_bytes": {"readonly": True}, - "received_bytes": {"readonly": True}, - } - - _attribute_map = { - "additional_properties": {"key": "additionalProperties", "type": "{object}"}, - "node_name": {"key": "nodeName", "type": "str"}, - "available_memory_in_mb": {"key": "availableMemoryInMB", "type": "int"}, - "cpu_utilization": {"key": "cpuUtilization", "type": "int"}, - "concurrent_jobs_limit": {"key": "concurrentJobsLimit", "type": "int"}, - "concurrent_jobs_running": {"key": "concurrentJobsRunning", "type": "int"}, - "max_concurrent_jobs": {"key": "maxConcurrentJobs", "type": "int"}, - "sent_bytes": {"key": "sentBytes", "type": "float"}, - "received_bytes": {"key": "receivedBytes", "type": "float"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.additional_properties: Optional[dict[str, JSON]] = None - self.node_name: Optional[str] = None - self.available_memory_in_mb: Optional[int] = None - self.cpu_utilization: Optional[int] = None - self.concurrent_jobs_limit: Optional[int] = None - self.concurrent_jobs_running: Optional[int] = None - self.max_concurrent_jobs: Optional[int] = None - self.sent_bytes: Optional[float] = None - self.received_bytes: Optional[float] = None - - -class NonSqlDataMigrationTable(_serialization.Model): - """Defines metadata for table to be migrated. - - :ivar source_name: Source table name. - :vartype source_name: str - """ - - _attribute_map = { - "source_name": {"key": "sourceName", "type": "str"}, - } - - def __init__(self, *, source_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword source_name: Source table name. - :paramtype source_name: str - """ - super().__init__(**kwargs) - self.source_name = source_name - - -class NonSqlDataMigrationTableResult(_serialization.Model): - """Object used to report the data migration results of a table. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar result_code: Result code of the data migration. Known values are: "Initial", "Completed", - "ObjectNotExistsInSource", "ObjectNotExistsInTarget", "TargetObjectIsInaccessible", and - "FatalError". - :vartype result_code: str or ~azure.mgmt.datamigration.models.DataMigrationResultCode - :ivar source_name: Name of the source table. - :vartype source_name: str - :ivar target_name: Name of the target table. - :vartype target_name: str - :ivar source_row_count: Number of rows in the source table. - :vartype source_row_count: int - :ivar target_row_count: Number of rows in the target table. - :vartype target_row_count: int - :ivar elapsed_time_in_miliseconds: Time taken to migrate the data. - :vartype elapsed_time_in_miliseconds: float - :ivar errors: List of errors, if any, during migration. - :vartype errors: list[~azure.mgmt.datamigration.models.DataMigrationError] - """ - - _validation = { - "result_code": {"readonly": True}, - "source_name": {"readonly": True}, - "target_name": {"readonly": True}, - "source_row_count": {"readonly": True}, - "target_row_count": {"readonly": True}, - "elapsed_time_in_miliseconds": {"readonly": True}, - "errors": {"readonly": True}, - } - - _attribute_map = { - "result_code": {"key": "resultCode", "type": "str"}, - "source_name": {"key": "sourceName", "type": "str"}, - "target_name": {"key": "targetName", "type": "str"}, - "source_row_count": {"key": "sourceRowCount", "type": "int"}, - "target_row_count": {"key": "targetRowCount", "type": "int"}, - "elapsed_time_in_miliseconds": {"key": "elapsedTimeInMiliseconds", "type": "float"}, - "errors": {"key": "errors", "type": "[DataMigrationError]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.result_code: Optional[Union[str, "_models.DataMigrationResultCode"]] = None - self.source_name: Optional[str] = None - self.target_name: Optional[str] = None - self.source_row_count: Optional[int] = None - self.target_row_count: Optional[int] = None - self.elapsed_time_in_miliseconds: Optional[float] = None - self.errors: Optional[list["_models.DataMigrationError"]] = None - - -class NonSqlMigrationTaskInput(_serialization.Model): - """Base class for non sql migration task input. - - All required parameters must be populated in order to send to server. - - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_database_name: Target database name. Required. - :vartype target_database_name: str - :ivar project_name: Name of the migration project. Required. - :vartype project_name: str - :ivar project_location: A URL that points to the drop location to access project artifacts. - Required. - :vartype project_location: str - :ivar selected_tables: Metadata of the tables selected for migration. Required. - :vartype selected_tables: list[~azure.mgmt.datamigration.models.NonSqlDataMigrationTable] - """ - - _validation = { - "target_connection_info": {"required": True}, - "target_database_name": {"required": True}, - "project_name": {"required": True}, - "project_location": {"required": True}, - "selected_tables": {"required": True}, - } - - _attribute_map = { - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "target_database_name": {"key": "targetDatabaseName", "type": "str"}, - "project_name": {"key": "projectName", "type": "str"}, - "project_location": {"key": "projectLocation", "type": "str"}, - "selected_tables": {"key": "selectedTables", "type": "[NonSqlDataMigrationTable]"}, - } - - def __init__( - self, - *, - target_connection_info: "_models.SqlConnectionInfo", - target_database_name: str, - project_name: str, - project_location: str, - selected_tables: list["_models.NonSqlDataMigrationTable"], - **kwargs: Any - ) -> None: - """ - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_database_name: Target database name. Required. - :paramtype target_database_name: str - :keyword project_name: Name of the migration project. Required. - :paramtype project_name: str - :keyword project_location: A URL that points to the drop location to access project artifacts. - Required. - :paramtype project_location: str - :keyword selected_tables: Metadata of the tables selected for migration. Required. - :paramtype selected_tables: list[~azure.mgmt.datamigration.models.NonSqlDataMigrationTable] - """ - super().__init__(**kwargs) - self.target_connection_info = target_connection_info - self.target_database_name = target_database_name - self.project_name = project_name - self.project_location = project_location - self.selected_tables = selected_tables - - -class NonSqlMigrationTaskOutput(_serialization.Model): - """Base class for non sql migration task output. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Result identifier. - :vartype id: str - :ivar started_on: Migration start time. - :vartype started_on: ~datetime.datetime - :ivar ended_on: Migration end time. - :vartype ended_on: ~datetime.datetime - :ivar status: Current state of migration. Known values are: "Default", "Connecting", - "SourceAndTargetSelected", "SelectLogins", "Configured", "Running", "Error", "Stopped", - "Completed", and "CompletedWithWarnings". - :vartype status: str or ~azure.mgmt.datamigration.models.MigrationStatus - :ivar data_migration_table_results: Results of the migration. The key contains the table name - and the value the table result object. - :vartype data_migration_table_results: str - :ivar progress_message: Message about the progress of the migration. - :vartype progress_message: str - :ivar source_server_name: Name of source server. - :vartype source_server_name: str - :ivar target_server_name: Name of target server. - :vartype target_server_name: str - """ - - _validation = { - "id": {"readonly": True}, - "started_on": {"readonly": True}, - "ended_on": {"readonly": True}, - "status": {"readonly": True}, - "data_migration_table_results": {"readonly": True}, - "progress_message": {"readonly": True}, - "source_server_name": {"readonly": True}, - "target_server_name": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "started_on": {"key": "startedOn", "type": "iso-8601"}, - "ended_on": {"key": "endedOn", "type": "iso-8601"}, - "status": {"key": "status", "type": "str"}, - "data_migration_table_results": {"key": "dataMigrationTableResults", "type": "str"}, - "progress_message": {"key": "progressMessage", "type": "str"}, - "source_server_name": {"key": "sourceServerName", "type": "str"}, - "target_server_name": {"key": "targetServerName", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.started_on: Optional[datetime.datetime] = None - self.ended_on: Optional[datetime.datetime] = None - self.status: Optional[Union[str, "_models.MigrationStatus"]] = None - self.data_migration_table_results: Optional[str] = None - self.progress_message: Optional[str] = None - self.source_server_name: Optional[str] = None - self.target_server_name: Optional[str] = None - - -class ODataError(_serialization.Model): - """Error information in OData format. - - :ivar code: The machine-readable description of the error, such as 'InvalidRequest' or - 'InternalServerError'. - :vartype code: str - :ivar message: The human-readable description of the error. - :vartype message: str - :ivar details: Inner errors that caused this error. - :vartype details: list[~azure.mgmt.datamigration.models.ODataError] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "details": {"key": "details", "type": "[ODataError]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - details: Optional[list["_models.ODataError"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: The machine-readable description of the error, such as 'InvalidRequest' or - 'InternalServerError'. - :paramtype code: str - :keyword message: The human-readable description of the error. - :paramtype message: str - :keyword details: Inner errors that caused this error. - :paramtype details: list[~azure.mgmt.datamigration.models.ODataError] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.details = details - - -class OfflineConfiguration(_serialization.Model): - """Offline configuration. - - :ivar offline: Offline migration. - :vartype offline: bool - :ivar last_backup_name: Last backup name for offline migration. This is optional for migrations - from file share. If it is not provided, then the service will determine the last backup file - name based on latest backup files present in file share. - :vartype last_backup_name: str - """ - - _attribute_map = { - "offline": {"key": "offline", "type": "bool"}, - "last_backup_name": {"key": "lastBackupName", "type": "str"}, - } - - def __init__( - self, *, offline: Optional[bool] = None, last_backup_name: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword offline: Offline migration. - :paramtype offline: bool - :keyword last_backup_name: Last backup name for offline migration. This is optional for - migrations from file share. If it is not provided, then the service will determine the last - backup file name based on latest backup files present in file share. - :paramtype last_backup_name: str - """ - super().__init__(**kwargs) - self.offline = offline - self.last_backup_name = last_backup_name - - -class OperationListResult(_serialization.Model): - """Result of the request to list SQL operations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: - :vartype value: list[~azure.mgmt.datamigration.models.OperationsDefinition] - :ivar next_link: - :vartype next_link: str - """ - - _validation = { - "value": {"readonly": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[OperationsDefinition]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.OperationsDefinition"]] = None - self.next_link: Optional[str] = None - - -class OperationsDefinition(_serialization.Model): - """OperationsDefinition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: - :vartype display: ~azure.mgmt.datamigration.models.OperationsDisplayDefinition - :ivar origin: Known values are: "user" and "system". - :vartype origin: str or ~azure.mgmt.datamigration.models.OperationOrigin - :ivar properties: Dictionary of :code:``. - :vartype properties: dict[str, JSON] - """ - - _validation = { - "name": {"readonly": True}, - "display": {"readonly": True}, - "origin": {"readonly": True}, - "properties": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationsDisplayDefinition"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "{object}"}, - } - - 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 - """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.is_data_action = is_data_action - self.display: Optional["_models.OperationsDisplayDefinition"] = None - self.origin: Optional[Union[str, "_models.OperationOrigin"]] = None - self.properties: Optional[dict[str, JSON]] = None - - -class OperationsDisplayDefinition(_serialization.Model): - """OperationsDisplayDefinition. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provider: - :vartype provider: str - :ivar resource: - :vartype resource: str - :ivar operation: - :vartype operation: str - :ivar description: - :vartype description: str - """ - - _validation = { - "provider": {"readonly": True}, - "resource": {"readonly": True}, - "operation": {"readonly": True}, - "description": {"readonly": True}, - } - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provider: Optional[str] = None - self.resource: Optional[str] = None - self.operation: Optional[str] = None - self.description: Optional[str] = None - - -class OracleConnectionInfo(ConnectionInfo): - """Information for connecting to Oracle server. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - :ivar data_source: EZConnect or TNSName connection string. Required. - :vartype data_source: str - :ivar server_name: name of the server. - :vartype server_name: str - :ivar server_version: server version. - :vartype server_version: str - :ivar port: port for server. - :vartype port: int - :ivar authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - """ - - _validation = { - "type": {"required": True}, - "data_source": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "data_source": {"key": "dataSource", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "authentication": {"key": "authentication", "type": "str"}, - } - - def __init__( - self, - *, - data_source: str, - user_name: Optional[str] = None, - password: Optional[str] = None, - server_name: Optional[str] = None, - server_version: Optional[str] = None, - port: Optional[int] = None, - authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - :keyword data_source: EZConnect or TNSName connection string. Required. - :paramtype data_source: str - :keyword server_name: name of the server. - :paramtype server_name: str - :keyword server_version: server version. - :paramtype server_version: str - :keyword port: port for server. - :paramtype port: int - :keyword authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :paramtype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - """ - super().__init__(user_name=user_name, password=password, **kwargs) - self.type: str = "OracleConnectionInfo" - self.data_source = data_source - self.server_name = server_name - self.server_version = server_version - self.port = port - self.authentication = authentication - - -class OracleOCIDriverInfo(_serialization.Model): - """Information about an Oracle OCI driver. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar driver_name: The name of the driver package. - :vartype driver_name: str - :ivar driver_size: The size in bytes of the driver package. - :vartype driver_size: str - :ivar archive_checksum: The MD5 Base64 encoded checksum for the driver package. - :vartype archive_checksum: str - :ivar oracle_checksum: The checksum for the driver package provided by Oracle. - :vartype oracle_checksum: str - :ivar assembly_version: Version listed in the OCI assembly 'oci.dll'. - :vartype assembly_version: str - :ivar supported_oracle_versions: List of Oracle database versions supported by this driver. - Only major minor of the version is listed. - :vartype supported_oracle_versions: list[str] - """ - - _validation = { - "driver_name": {"readonly": True}, - "driver_size": {"readonly": True}, - "archive_checksum": {"readonly": True}, - "oracle_checksum": {"readonly": True}, - "assembly_version": {"readonly": True}, - "supported_oracle_versions": {"readonly": True}, - } - - _attribute_map = { - "driver_name": {"key": "driverName", "type": "str"}, - "driver_size": {"key": "driverSize", "type": "str"}, - "archive_checksum": {"key": "archiveChecksum", "type": "str"}, - "oracle_checksum": {"key": "oracleChecksum", "type": "str"}, - "assembly_version": {"key": "assemblyVersion", "type": "str"}, - "supported_oracle_versions": {"key": "supportedOracleVersions", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.driver_name: Optional[str] = None - self.driver_size: Optional[str] = None - self.archive_checksum: Optional[str] = None - self.oracle_checksum: Optional[str] = None - self.assembly_version: Optional[str] = None - self.supported_oracle_versions: Optional[list[str]] = None - - -class OrphanedUserInfo(_serialization.Model): - """Information of orphaned users on the SQL server database. - - :ivar name: Name of the orphaned user. - :vartype name: str - :ivar database_name: Parent database of the user. - :vartype database_name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - } - - 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 - :keyword database_name: Parent database of the user. - :paramtype database_name: str - """ - super().__init__(**kwargs) - self.name = name - self.database_name = database_name - - -class PostgreSqlConnectionInfo(ConnectionInfo): - """Information for connecting to PostgreSQL server. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - :ivar server_name: Name of the server. Required. - :vartype server_name: str - :ivar data_source: Data source. - :vartype data_source: str - :ivar server_version: server version. - :vartype server_version: str - :ivar database_name: Name of the database. - :vartype database_name: str - :ivar port: Port for Server. Required. - :vartype port: int - :ivar encrypt_connection: Whether to encrypt the connection. - :vartype encrypt_connection: bool - :ivar trust_server_certificate: Whether to trust the server certificate. - :vartype trust_server_certificate: bool - :ivar additional_settings: Additional connection settings. - :vartype additional_settings: str - :ivar server_brand_version: server brand version. - :vartype server_brand_version: str - :ivar authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - """ - - _validation = { - "type": {"required": True}, - "server_name": {"required": True}, - "port": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "data_source": {"key": "dataSource", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "database_name": {"key": "databaseName", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "encrypt_connection": {"key": "encryptConnection", "type": "bool"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "bool"}, - "additional_settings": {"key": "additionalSettings", "type": "str"}, - "server_brand_version": {"key": "serverBrandVersion", "type": "str"}, - "authentication": {"key": "authentication", "type": "str"}, - } - - def __init__( - self, - *, - server_name: str, - port: int, - user_name: Optional[str] = None, - password: Optional[str] = None, - data_source: Optional[str] = None, - server_version: Optional[str] = None, - database_name: Optional[str] = None, - encrypt_connection: bool = True, - trust_server_certificate: bool = False, - additional_settings: Optional[str] = None, - server_brand_version: Optional[str] = None, - authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - :keyword server_name: Name of the server. Required. - :paramtype server_name: str - :keyword data_source: Data source. - :paramtype data_source: str - :keyword server_version: server version. - :paramtype server_version: str - :keyword database_name: Name of the database. - :paramtype database_name: str - :keyword port: Port for Server. Required. - :paramtype port: int - :keyword encrypt_connection: Whether to encrypt the connection. - :paramtype encrypt_connection: bool - :keyword trust_server_certificate: Whether to trust the server certificate. - :paramtype trust_server_certificate: bool - :keyword additional_settings: Additional connection settings. - :paramtype additional_settings: str - :keyword server_brand_version: server brand version. - :paramtype server_brand_version: str - :keyword authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :paramtype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - """ - super().__init__(user_name=user_name, password=password, **kwargs) - self.type: str = "PostgreSqlConnectionInfo" - self.server_name = server_name - self.data_source = data_source - self.server_version = server_version - self.database_name = database_name - self.port = port - self.encrypt_connection = encrypt_connection - self.trust_server_certificate = trust_server_certificate - self.additional_settings = additional_settings - self.server_brand_version = server_brand_version - self.authentication = authentication - - -class Project(TrackedResourceAutoGenerated): - """A project resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar location: - :vartype location: str - :ivar tags: Dictionary of :code:``. - :vartype tags: dict[str, str] - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - :ivar etag: HTTP strong entity tag value. This is ignored if submitted. - :vartype etag: str - :ivar source_platform: Source platform for the project. Known values are: "SQL", "MySQL", - "PostgreSql", "MongoDb", and "Unknown". - :vartype source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform - :ivar azure_authentication_info: Field that defines the Azure active directory application - info, used to connect to the target Azure resource. - :vartype azure_authentication_info: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - :ivar target_platform: Target platform for the project. Known values are: "SQLDB", "SQLMI", - "AzureDbForMySql", "AzureDbForPostgreSql", "MongoDb", and "Unknown". - :vartype target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform - :ivar creation_time: UTC Date and time when project was created. - :vartype creation_time: ~datetime.datetime - :ivar source_connection_info: Information for connecting to source. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.ConnectionInfo - :ivar target_connection_info: Information for connecting to target. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.ConnectionInfo - :ivar databases_info: List of DatabaseInfo. - :vartype databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] - :ivar provisioning_state: The project's provisioning state. Known values are: "Deleting" and - "Succeeded". - :vartype provisioning_state: str or ~azure.mgmt.datamigration.models.ProjectProvisioningState - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "creation_time": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - "etag": {"key": "etag", "type": "str"}, - "source_platform": {"key": "properties.sourcePlatform", "type": "str"}, - "azure_authentication_info": {"key": "properties.azureAuthenticationInfo", "type": "AzureActiveDirectoryApp"}, - "target_platform": {"key": "properties.targetPlatform", "type": "str"}, - "creation_time": {"key": "properties.creationTime", "type": "iso-8601"}, - "source_connection_info": {"key": "properties.sourceConnectionInfo", "type": "ConnectionInfo"}, - "target_connection_info": {"key": "properties.targetConnectionInfo", "type": "ConnectionInfo"}, - "databases_info": {"key": "properties.databasesInfo", "type": "[DatabaseInfo]"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[dict[str, str]] = None, - etag: Optional[str] = None, - source_platform: Optional[Union[str, "_models.ProjectSourcePlatform"]] = None, - azure_authentication_info: Optional["_models.AzureActiveDirectoryApp"] = None, - target_platform: Optional[Union[str, "_models.ProjectTargetPlatform"]] = None, - source_connection_info: Optional["_models.ConnectionInfo"] = None, - target_connection_info: Optional["_models.ConnectionInfo"] = None, - databases_info: Optional[list["_models.DatabaseInfo"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: - :paramtype location: str - :keyword tags: Dictionary of :code:``. - :paramtype tags: dict[str, str] - :keyword etag: HTTP strong entity tag value. This is ignored if submitted. - :paramtype etag: str - :keyword source_platform: Source platform for the project. Known values are: "SQL", "MySQL", - "PostgreSql", "MongoDb", and "Unknown". - :paramtype source_platform: str or ~azure.mgmt.datamigration.models.ProjectSourcePlatform - :keyword azure_authentication_info: Field that defines the Azure active directory application - info, used to connect to the target Azure resource. - :paramtype azure_authentication_info: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - :keyword target_platform: Target platform for the project. Known values are: "SQLDB", "SQLMI", - "AzureDbForMySql", "AzureDbForPostgreSql", "MongoDb", and "Unknown". - :paramtype target_platform: str or ~azure.mgmt.datamigration.models.ProjectTargetPlatform - :keyword source_connection_info: Information for connecting to source. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.ConnectionInfo - :keyword target_connection_info: Information for connecting to target. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.ConnectionInfo - :keyword databases_info: List of DatabaseInfo. - :paramtype databases_info: list[~azure.mgmt.datamigration.models.DatabaseInfo] - """ - super().__init__(location=location, tags=tags, **kwargs) - self.etag = etag - self.source_platform = source_platform - self.azure_authentication_info = azure_authentication_info - self.target_platform = target_platform - self.creation_time: Optional[datetime.datetime] = None - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.databases_info = databases_info - self.provisioning_state: Optional[Union[str, "_models.ProjectProvisioningState"]] = None - - -class ResourceAutoGenerated(_serialization.Model): - """ARM resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.type: Optional[str] = None - - -class ProjectFile(ResourceAutoGenerated): - """A file resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :ivar etag: HTTP strong entity tag value. This is ignored if submitted. - :vartype etag: str - :ivar properties: Custom file properties. - :vartype properties: ~azure.mgmt.datamigration.models.ProjectFileProperties - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "ProjectFileProperties"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - } - - def __init__( - 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 - :keyword properties: Custom file properties. - :paramtype properties: ~azure.mgmt.datamigration.models.ProjectFileProperties - """ - super().__init__(**kwargs) - self.etag = etag - self.properties = properties - self.system_data: Optional["_models.SystemDataAutoGenerated"] = None - - -class ProjectFileProperties(_serialization.Model): - """Base class for file properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar extension: Optional File extension. If submitted it should not have a leading period and - must match the extension from filePath. - :vartype extension: str - :ivar file_path: Relative path of this file resource. This property can be set when creating or - updating the file resource. - :vartype file_path: str - :ivar last_modified: Modification DateTime. - :vartype last_modified: ~datetime.datetime - :ivar media_type: File content type. This property can be modified to reflect the file content - type. - :vartype media_type: str - :ivar size: File size. - :vartype size: int - """ - - _validation = { - "last_modified": {"readonly": True}, - "size": {"readonly": True}, - } - - _attribute_map = { - "extension": {"key": "extension", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "last_modified": {"key": "lastModified", "type": "iso-8601"}, - "media_type": {"key": "mediaType", "type": "str"}, - "size": {"key": "size", "type": "int"}, - } - - def __init__( - self, - *, - extension: Optional[str] = None, - file_path: Optional[str] = None, - media_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword extension: Optional File extension. If submitted it should not have a leading period - and must match the extension from filePath. - :paramtype extension: str - :keyword file_path: Relative path of this file resource. This property can be set when creating - or updating the file resource. - :paramtype file_path: str - :keyword media_type: File content type. This property can be modified to reflect the file - content type. - :paramtype media_type: str - """ - super().__init__(**kwargs) - self.extension = extension - self.file_path = file_path - self.last_modified: Optional[datetime.datetime] = None - self.media_type = media_type - self.size: Optional[int] = None - - -class ProjectList(_serialization.Model): - """OData page of project resources. - - :ivar value: List of projects. - :vartype value: list[~azure.mgmt.datamigration.models.Project] - :ivar next_link: URL to load the next page of projects. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Project]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - 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] - :keyword next_link: URL to load the next page of projects. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ProjectTask(ResourceAutoGenerated): - """A task resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Resource ID. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :ivar etag: HTTP strong entity tag value. This is ignored if submitted. - :vartype etag: str - :ivar properties: Custom task properties. - :vartype properties: ~azure.mgmt.datamigration.models.ProjectTaskProperties - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "etag": {"key": "etag", "type": "str"}, - "properties": {"key": "properties", "type": "ProjectTaskProperties"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - } - - def __init__( - 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 - :keyword properties: Custom task properties. - :paramtype properties: ~azure.mgmt.datamigration.models.ProjectTaskProperties - """ - super().__init__(**kwargs) - self.etag = etag - self.properties = properties - self.system_data: Optional["_models.SystemDataAutoGenerated"] = None - - -class QueryAnalysisValidationResult(_serialization.Model): - """Results for query analysis comparison between the source and target. - - :ivar query_results: List of queries executed and it's execution results in source and target. - :vartype query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult - :ivar validation_errors: Errors that are part of the execution. - :vartype validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - - _attribute_map = { - "query_results": {"key": "queryResults", "type": "QueryExecutionResult"}, - "validation_errors": {"key": "validationErrors", "type": "ValidationError"}, - } - - def __init__( - self, - *, - query_results: Optional["_models.QueryExecutionResult"] = None, - validation_errors: Optional["_models.ValidationError"] = None, - **kwargs: Any - ) -> None: - """ - :keyword query_results: List of queries executed and it's execution results in source and - target. - :paramtype query_results: ~azure.mgmt.datamigration.models.QueryExecutionResult - :keyword validation_errors: Errors that are part of the execution. - :paramtype validation_errors: ~azure.mgmt.datamigration.models.ValidationError - """ - super().__init__(**kwargs) - self.query_results = query_results - self.validation_errors = validation_errors - - -class QueryExecutionResult(_serialization.Model): - """Describes query analysis results for execution in source and target. - - :ivar query_text: Query text retrieved from the source server. - :vartype query_text: str - :ivar statements_in_batch: Total no. of statements in the batch. - :vartype statements_in_batch: int - :ivar source_result: Query analysis result from the source. - :vartype source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - :ivar target_result: Query analysis result from the target. - :vartype target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - """ - - _attribute_map = { - "query_text": {"key": "queryText", "type": "str"}, - "statements_in_batch": {"key": "statementsInBatch", "type": "int"}, - "source_result": {"key": "sourceResult", "type": "ExecutionStatistics"}, - "target_result": {"key": "targetResult", "type": "ExecutionStatistics"}, - } - - def __init__( - self, - *, - query_text: Optional[str] = None, - statements_in_batch: Optional[int] = None, - source_result: Optional["_models.ExecutionStatistics"] = None, - target_result: Optional["_models.ExecutionStatistics"] = None, - **kwargs: Any - ) -> None: - """ - :keyword query_text: Query text retrieved from the source server. - :paramtype query_text: str - :keyword statements_in_batch: Total no. of statements in the batch. - :paramtype statements_in_batch: int - :keyword source_result: Query analysis result from the source. - :paramtype source_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - :keyword target_result: Query analysis result from the target. - :paramtype target_result: ~azure.mgmt.datamigration.models.ExecutionStatistics - """ - super().__init__(**kwargs) - self.query_text = query_text - self.statements_in_batch = statements_in_batch - self.source_result = source_result - self.target_result = target_result - - -class Quota(_serialization.Model): - """Describes a quota for or usage details about a resource. - - :ivar current_value: The current value of the quota. If null or missing, the current value - cannot be determined in the context of the request. - :vartype current_value: float - :ivar id: The resource ID of the quota object. - :vartype id: str - :ivar limit: The maximum value of the quota. If null or missing, the quota has no maximum, in - which case it merely tracks usage. - :vartype limit: float - :ivar name: The name of the quota. - :vartype name: ~azure.mgmt.datamigration.models.QuotaName - :ivar unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc. - :vartype unit: str - """ - - _attribute_map = { - "current_value": {"key": "currentValue", "type": "float"}, - "id": {"key": "id", "type": "str"}, - "limit": {"key": "limit", "type": "float"}, - "name": {"key": "name", "type": "QuotaName"}, - "unit": {"key": "unit", "type": "str"}, - } - - def __init__( - self, - *, - current_value: Optional[float] = None, - id: Optional[str] = None, # pylint: disable=redefined-builtin - limit: Optional[float] = None, - name: Optional["_models.QuotaName"] = None, - unit: Optional[str] = None, - **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. - :paramtype current_value: float - :keyword id: The resource ID of the quota object. - :paramtype id: str - :keyword limit: The maximum value of the quota. If null or missing, the quota has no maximum, - in which case it merely tracks usage. - :paramtype limit: float - :keyword name: The name of the quota. - :paramtype name: ~azure.mgmt.datamigration.models.QuotaName - :keyword unit: The unit for the quota, such as Count, Bytes, BytesPerSecond, etc. - :paramtype unit: str - """ - super().__init__(**kwargs) - self.current_value = current_value - self.id = id - self.limit = limit - self.name = name - self.unit = unit - - -class QuotaList(_serialization.Model): - """OData page of quota objects. - - :ivar value: List of quotas. - :vartype value: list[~azure.mgmt.datamigration.models.Quota] - :ivar next_link: URL to load the next page of quotas, or null or missing if this is the last - page. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Quota]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - 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] - :keyword next_link: URL to load the next page of quotas, or null or missing if this is the last - page. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class QuotaName(_serialization.Model): - """The name of the quota. - - :ivar localized_value: The localized name of the quota. - :vartype localized_value: str - :ivar value: The unlocalized name (or ID) of the quota. - :vartype value: str - """ - - _attribute_map = { - "localized_value": {"key": "localizedValue", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - 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 - :keyword value: The unlocalized name (or ID) of the quota. - :paramtype value: str - """ - super().__init__(**kwargs) - self.localized_value = localized_value - self.value = value - - -class RegenAuthKeys(_serialization.Model): - """An authentication key to regenerate. - - :ivar key_name: The name of authentication key to generate. - :vartype key_name: str - :ivar auth_key1: The first authentication key. - :vartype auth_key1: str - :ivar auth_key2: The second authentication key. - :vartype auth_key2: str - """ - - _attribute_map = { - "key_name": {"key": "keyName", "type": "str"}, - "auth_key1": {"key": "authKey1", "type": "str"}, - "auth_key2": {"key": "authKey2", "type": "str"}, - } - - def __init__( - self, - *, - key_name: Optional[str] = None, - auth_key1: Optional[str] = None, - auth_key2: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword key_name: The name of authentication key to generate. - :paramtype key_name: str - :keyword auth_key1: The first authentication key. - :paramtype auth_key1: str - :keyword auth_key2: The second authentication key. - :paramtype auth_key2: str - """ - super().__init__(**kwargs) - self.key_name = key_name - self.auth_key1 = auth_key1 - self.auth_key2 = auth_key2 - - -class ReportableException(_serialization.Model): - """Exception object for all custom exceptions. - - :ivar message: Error message. - :vartype message: str - :ivar actionable_message: Actionable steps for this exception. - :vartype actionable_message: str - :ivar file_path: The path to the file where exception occurred. - :vartype file_path: str - :ivar line_number: The line number where exception occurred. - :vartype line_number: str - :ivar h_result: Coded numerical value that is assigned to a specific exception. - :vartype h_result: int - :ivar stack_trace: Stack trace. - :vartype stack_trace: str - """ - - _attribute_map = { - "message": {"key": "message", "type": "str"}, - "actionable_message": {"key": "actionableMessage", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "line_number": {"key": "lineNumber", "type": "str"}, - "h_result": {"key": "hResult", "type": "int"}, - "stack_trace": {"key": "stackTrace", "type": "str"}, - } - - def __init__( - self, - *, - message: Optional[str] = None, - actionable_message: Optional[str] = None, - file_path: Optional[str] = None, - line_number: Optional[str] = None, - h_result: Optional[int] = None, - stack_trace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword message: Error message. - :paramtype message: str - :keyword actionable_message: Actionable steps for this exception. - :paramtype actionable_message: str - :keyword file_path: The path to the file where exception occurred. - :paramtype file_path: str - :keyword line_number: The line number where exception occurred. - :paramtype line_number: str - :keyword h_result: Coded numerical value that is assigned to a specific exception. - :paramtype h_result: int - :keyword stack_trace: Stack trace. - :paramtype stack_trace: str - """ - super().__init__(**kwargs) - self.message = message - self.actionable_message = actionable_message - self.file_path = file_path - self.line_number = line_number - self.h_result = h_result - self.stack_trace = stack_trace - - -class ResourceSku(_serialization.Model): - """Describes an available DMS (classic) SKU. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_type: The type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: The name of SKU. - :vartype name: str - :ivar tier: Specifies the tier of DMS (classic) in a scale set. - :vartype tier: str - :ivar size: The Size of the SKU. - :vartype size: str - :ivar family: The Family of this particular SKU. - :vartype family: str - :ivar kind: The Kind of resources that are supported in this SKU. - :vartype kind: str - :ivar capacity: Not used. - :vartype capacity: ~azure.mgmt.datamigration.models.ResourceSkuCapacity - :ivar locations: The set of locations that the SKU is available. - :vartype locations: list[str] - :ivar api_versions: The api versions that support this SKU. - :vartype api_versions: list[str] - :ivar costs: Metadata for retrieving price info. - :vartype costs: list[~azure.mgmt.datamigration.models.ResourceSkuCosts] - :ivar capabilities: A name value pair to describe the capability. - :vartype capabilities: list[~azure.mgmt.datamigration.models.ResourceSkuCapabilities] - :ivar restrictions: The restrictions because of which SKU cannot be used. This is empty if - there are no restrictions. - :vartype restrictions: list[~azure.mgmt.datamigration.models.ResourceSkuRestrictions] - """ - - _validation = { - "resource_type": {"readonly": True}, - "name": {"readonly": True}, - "tier": {"readonly": True}, - "size": {"readonly": True}, - "family": {"readonly": True}, - "kind": {"readonly": True}, - "capacity": {"readonly": True}, - "locations": {"readonly": True}, - "api_versions": {"readonly": True}, - "costs": {"readonly": True}, - "capabilities": {"readonly": True}, - "restrictions": {"readonly": True}, - } - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "family": {"key": "family", "type": "str"}, - "kind": {"key": "kind", "type": "str"}, - "capacity": {"key": "capacity", "type": "ResourceSkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "api_versions": {"key": "apiVersions", "type": "[str]"}, - "costs": {"key": "costs", "type": "[ResourceSkuCosts]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_type: Optional[str] = None - self.name: Optional[str] = None - self.tier: Optional[str] = None - self.size: Optional[str] = None - self.family: Optional[str] = None - self.kind: Optional[str] = None - self.capacity: Optional["_models.ResourceSkuCapacity"] = None - self.locations: Optional[list[str]] = None - self.api_versions: Optional[list[str]] = None - self.costs: Optional[list["_models.ResourceSkuCosts"]] = None - self.capabilities: Optional[list["_models.ResourceSkuCapabilities"]] = None - self.restrictions: Optional[list["_models.ResourceSkuRestrictions"]] = None - - -class ResourceSkuCapabilities(_serialization.Model): - """Describes The SKU capabilities object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: An invariant to describe the feature. - :vartype name: str - :ivar value: An invariant if the feature is measured by quantity. - :vartype value: str - """ - - _validation = { - "name": {"readonly": True}, - "value": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.value: Optional[str] = None - - -class ResourceSkuCapacity(_serialization.Model): - """Describes scaling information of a SKU. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar minimum: The minimum capacity. - :vartype minimum: int - :ivar maximum: The maximum capacity. - :vartype maximum: int - :ivar default: The default capacity. - :vartype default: int - :ivar scale_type: The scale type applicable to the SKU. Known values are: "Automatic", - "Manual", and "None". - :vartype scale_type: str or ~azure.mgmt.datamigration.models.ResourceSkuCapacityScaleType - """ - - _validation = { - "minimum": {"readonly": True}, - "maximum": {"readonly": True}, - "default": {"readonly": True}, - "scale_type": {"readonly": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.minimum: Optional[int] = None - self.maximum: Optional[int] = None - self.default: Optional[int] = None - self.scale_type: Optional[Union[str, "_models.ResourceSkuCapacityScaleType"]] = None - - -class ResourceSkuCosts(_serialization.Model): - """Describes metadata for retrieving price info. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar meter_id: Used for querying price from commerce. - :vartype meter_id: str - :ivar quantity: The multiplier is needed to extend the base metered cost. - :vartype quantity: int - :ivar extended_unit: An invariant to show the extended unit. - :vartype extended_unit: str - """ - - _validation = { - "meter_id": {"readonly": True}, - "quantity": {"readonly": True}, - "extended_unit": {"readonly": True}, - } - - _attribute_map = { - "meter_id": {"key": "meterID", "type": "str"}, - "quantity": {"key": "quantity", "type": "int"}, - "extended_unit": {"key": "extendedUnit", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.meter_id: Optional[str] = None - self.quantity: Optional[int] = None - self.extended_unit: Optional[str] = None - - -class ResourceSkuRestrictions(_serialization.Model): - """Describes scaling information of a SKU. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: The type of restrictions. "location" - :vartype type: str or ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsType - :ivar values: The value of restrictions. If the restriction type is set to location. This would - be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar reason_code: The reason code for restriction. Known values are: "QuotaId" and - "NotAvailableForSubscription". - :vartype reason_code: str or ~azure.mgmt.datamigration.models.ResourceSkuRestrictionsReasonCode - """ - - _validation = { - "type": {"readonly": True}, - "values": {"readonly": True}, - "reason_code": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None - self.values: Optional[list[str]] = None - self.reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None - - -class ResourceSkusResult(_serialization.Model): - """The DMS (classic) List SKUs operation response. - - All required parameters must be populated in order to send to server. - - :ivar value: The list of SKUs available for the subscription. Required. - :vartype value: list[~azure.mgmt.datamigration.models.ResourceSku] - :ivar next_link: The uri to fetch the next page of DMS (classic) SKUs. Call ListNext() with - this to fetch the next page of DMS (classic) SKUs. - :vartype next_link: str - """ - - _validation = { - "value": {"required": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - 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] - :keyword next_link: The uri to fetch the next page of DMS (classic) SKUs. Call ListNext() with - this to fetch the next page of DMS (classic) SKUs. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SchemaComparisonValidationResult(_serialization.Model): - """Results for schema comparison between the source and target. - - :ivar schema_differences: List of schema differences between the source and target databases. - :vartype schema_differences: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType - :ivar validation_errors: List of errors that happened while performing schema compare - validation. - :vartype validation_errors: ~azure.mgmt.datamigration.models.ValidationError - :ivar source_database_object_count: Count of source database objects. - :vartype source_database_object_count: dict[str, int] - :ivar target_database_object_count: Count of target database objects. - :vartype target_database_object_count: dict[str, int] - """ - - _attribute_map = { - "schema_differences": {"key": "schemaDifferences", "type": "SchemaComparisonValidationResultType"}, - "validation_errors": {"key": "validationErrors", "type": "ValidationError"}, - "source_database_object_count": {"key": "sourceDatabaseObjectCount", "type": "{int}"}, - "target_database_object_count": {"key": "targetDatabaseObjectCount", "type": "{int}"}, - } - - def __init__( - self, - *, - schema_differences: Optional["_models.SchemaComparisonValidationResultType"] = None, - 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: Any - ) -> None: - """ - :keyword schema_differences: List of schema differences between the source and target - databases. - :paramtype schema_differences: - ~azure.mgmt.datamigration.models.SchemaComparisonValidationResultType - :keyword validation_errors: List of errors that happened while performing schema compare - validation. - :paramtype validation_errors: ~azure.mgmt.datamigration.models.ValidationError - :keyword source_database_object_count: Count of source database objects. - :paramtype source_database_object_count: dict[str, int] - :keyword target_database_object_count: Count of target database objects. - :paramtype target_database_object_count: dict[str, int] - """ - super().__init__(**kwargs) - self.schema_differences = schema_differences - self.validation_errors = validation_errors - self.source_database_object_count = source_database_object_count - self.target_database_object_count = target_database_object_count - - -class SchemaComparisonValidationResultType(_serialization.Model): - """Description about the errors happen while performing migration validation. - - :ivar object_name: Name of the object that has the difference. - :vartype object_name: str - :ivar object_type: Type of the object that has the difference. e.g - (Table/View/StoredProcedure). Known values are: "StoredProcedures", "Table", "User", "View", - and "Function". - :vartype object_type: str or ~azure.mgmt.datamigration.models.ObjectType - :ivar update_action: Update action type with respect to target. Known values are: - "DeletedOnTarget", "ChangedOnTarget", and "AddedOnTarget". - :vartype update_action: str or ~azure.mgmt.datamigration.models.UpdateActionType - """ - - _attribute_map = { - "object_name": {"key": "objectName", "type": "str"}, - "object_type": {"key": "objectType", "type": "str"}, - "update_action": {"key": "updateAction", "type": "str"}, - } - - def __init__( - self, - *, - object_name: Optional[str] = None, - object_type: Optional[Union[str, "_models.ObjectType"]] = None, - update_action: Optional[Union[str, "_models.UpdateActionType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword object_name: Name of the object that has the difference. - :paramtype object_name: str - :keyword object_type: Type of the object that has the difference. e.g - (Table/View/StoredProcedure). Known values are: "StoredProcedures", "Table", "User", "View", - and "Function". - :paramtype object_type: str or ~azure.mgmt.datamigration.models.ObjectType - :keyword update_action: Update action type with respect to target. Known values are: - "DeletedOnTarget", "ChangedOnTarget", and "AddedOnTarget". - :paramtype update_action: str or ~azure.mgmt.datamigration.models.UpdateActionType - """ - super().__init__(**kwargs) - self.object_name = object_name - self.object_type = object_type - self.update_action = update_action - - -class SchemaMigrationSetting(_serialization.Model): - """Settings for migrating schema from source to target. - - :ivar schema_option: Option on how to migrate the schema. Known values are: "None", - "ExtractFromSource", and "UseStorageFile". - :vartype schema_option: str or ~azure.mgmt.datamigration.models.SchemaMigrationOption - :ivar file_id: Resource Identifier of a file resource containing the uploaded schema file. - :vartype file_id: str - :ivar file_name: Name of the file resource containing the uploaded schema file. - :vartype file_name: str - """ - - _attribute_map = { - "schema_option": {"key": "schemaOption", "type": "str"}, - "file_id": {"key": "fileId", "type": "str"}, - "file_name": {"key": "fileName", "type": "str"}, - } - - def __init__( - self, - *, - schema_option: Optional[Union[str, "_models.SchemaMigrationOption"]] = None, - file_id: Optional[str] = None, - file_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword schema_option: Option on how to migrate the schema. Known values are: "None", - "ExtractFromSource", and "UseStorageFile". - :paramtype schema_option: str or ~azure.mgmt.datamigration.models.SchemaMigrationOption - :keyword file_id: Resource Identifier of a file resource containing the uploaded schema file. - :paramtype file_id: str - :keyword file_name: Name of the file resource containing the uploaded schema file. - :paramtype file_name: str - """ - super().__init__(**kwargs) - self.schema_option = schema_option - self.file_id = file_id - self.file_name = file_name - - -class SelectedCertificateInput(_serialization.Model): - """Info for certificate to be exported for TDE enabled databases. - - All required parameters must be populated in order to send to server. - - :ivar certificate_name: Name of certificate to be exported. Required. - :vartype certificate_name: str - :ivar password: Password to use for encrypting the exported certificate. Required. - :vartype password: str - """ - - _validation = { - "certificate_name": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "certificate_name": {"key": "certificateName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - 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 - :keyword password: Password to use for encrypting the exported certificate. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.certificate_name = certificate_name - self.password = password - - -class ServerProperties(_serialization.Model): - """Server properties for MySQL type source. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar server_platform: Name of the server platform. - :vartype server_platform: str - :ivar server_name: Name of the server. - :vartype server_name: str - :ivar server_version: Version of the database server. - :vartype server_version: str - :ivar server_edition: Edition of the database server. - :vartype server_edition: str - :ivar server_operating_system_version: Version of the operating system. - :vartype server_operating_system_version: str - :ivar server_database_count: Number of databases in the server. - :vartype server_database_count: int - """ - - _validation = { - "server_platform": {"readonly": True}, - "server_name": {"readonly": True}, - "server_version": {"readonly": True}, - "server_edition": {"readonly": True}, - "server_operating_system_version": {"readonly": True}, - "server_database_count": {"readonly": True}, - } - - _attribute_map = { - "server_platform": {"key": "serverPlatform", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "server_edition": {"key": "serverEdition", "type": "str"}, - "server_operating_system_version": {"key": "serverOperatingSystemVersion", "type": "str"}, - "server_database_count": {"key": "serverDatabaseCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.server_platform: Optional[str] = None - self.server_name: Optional[str] = None - self.server_version: Optional[str] = None - self.server_edition: Optional[str] = None - self.server_operating_system_version: Optional[str] = None - self.server_database_count: Optional[int] = None - - -class ServiceOperation(_serialization.Model): - """Description of an action supported by the Azure Database Migration Service (classic). - - :ivar name: The fully qualified action name, e.g. Microsoft.DataMigration/services/read. - :vartype name: str - :ivar display: Localized display text. - :vartype display: ~azure.mgmt.datamigration.models.ServiceOperationDisplay - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display": {"key": "display", "type": "ServiceOperationDisplay"}, - } - - def __init__( - 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 - :keyword display: Localized display text. - :paramtype display: ~azure.mgmt.datamigration.models.ServiceOperationDisplay - """ - super().__init__(**kwargs) - self.name = name - self.display = display - - -class ServiceOperationDisplay(_serialization.Model): - """Localized display text. - - :ivar provider: The localized resource provider name. - :vartype provider: str - :ivar resource: The localized resource type name. - :vartype resource: str - :ivar operation: The localized operation name. - :vartype operation: str - :ivar description: The localized operation description. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: The localized resource provider name. - :paramtype provider: str - :keyword resource: The localized resource type name. - :paramtype resource: str - :keyword operation: The localized operation name. - :paramtype operation: str - :keyword description: The localized operation description. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class ServiceOperationList(_serialization.Model): - """OData page of action (operation) objects. - - :ivar value: List of actions. - :vartype value: list[~azure.mgmt.datamigration.models.ServiceOperation] - :ivar next_link: URL to load the next page of actions. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceOperation]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - 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] - :keyword next_link: URL to load the next page of actions. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSku(_serialization.Model): - """An Azure SKU instance. - - :ivar name: The unique name of the SKU, such as 'P3'. - :vartype name: str - :ivar tier: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'. - :vartype tier: str - :ivar family: The SKU family, used when the service has multiple performance classes within a - tier, such as 'A', 'D', etc. for virtual machines. - :vartype family: str - :ivar size: The size of the SKU, used when the name alone does not denote a service size or - when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines. - :vartype size: str - :ivar capacity: The capacity of the SKU, if it supports scaling. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "family": {"key": "family", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - tier: Optional[str] = None, - family: Optional[str] = None, - size: Optional[str] = None, - capacity: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The unique name of the SKU, such as 'P3'. - :paramtype name: str - :keyword tier: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'. - :paramtype tier: str - :keyword family: The SKU family, used when the service has multiple performance classes within - a tier, such as 'A', 'D', etc. for virtual machines. - :paramtype family: str - :keyword size: The size of the SKU, used when the name alone does not denote a service size or - when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines. - :paramtype size: str - :keyword capacity: The capacity of the SKU, if it supports scaling. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.family = family - self.size = size - self.capacity = capacity - - -class ServiceSkuList(_serialization.Model): - """OData page of available SKUs. - - :ivar value: List of service SKUs. - :vartype value: list[~azure.mgmt.datamigration.models.AvailableServiceSku] - :ivar next_link: URL to load the next page of service SKUs. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AvailableServiceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - 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] - :keyword next_link: URL to load the next page of service SKUs. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SourceLocation(_serialization.Model): - """Source Location details of backups. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar file_share: Source File share. - :vartype file_share: ~azure.mgmt.datamigration.models.SqlFileShare - :ivar azure_blob: Source Azure Blob. - :vartype azure_blob: ~azure.mgmt.datamigration.models.AzureBlob - :ivar file_storage_type: Backup storage Type. - :vartype file_storage_type: str - """ - - _validation = { - "file_storage_type": {"readonly": True}, - } - - _attribute_map = { - "file_share": {"key": "fileShare", "type": "SqlFileShare"}, - "azure_blob": {"key": "azureBlob", "type": "AzureBlob"}, - "file_storage_type": {"key": "fileStorageType", "type": "str"}, - } - - def __init__( - self, - *, - file_share: Optional["_models.SqlFileShare"] = None, - azure_blob: Optional["_models.AzureBlob"] = None, - **kwargs: Any - ) -> None: - """ - :keyword file_share: Source File share. - :paramtype file_share: ~azure.mgmt.datamigration.models.SqlFileShare - :keyword azure_blob: Source Azure Blob. - :paramtype azure_blob: ~azure.mgmt.datamigration.models.AzureBlob - """ - super().__init__(**kwargs) - self.file_share = file_share - self.azure_blob = azure_blob - self.file_storage_type: Optional[str] = None - - -class SqlBackupFileInfo(_serialization.Model): - """Information of backup file. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar file_name: File name. - :vartype file_name: str - :ivar status: Status of the file. (Initial, Uploading, Uploaded, Restoring, Restored or - Skipped). - :vartype status: str - :ivar total_size: File size in bytes. - :vartype total_size: int - :ivar data_read: Bytes read. - :vartype data_read: int - :ivar data_written: Bytes written. - :vartype data_written: int - :ivar copy_throughput: Copy throughput in KBps. - :vartype copy_throughput: float - :ivar copy_duration: Copy Duration in seconds. - :vartype copy_duration: int - :ivar family_sequence_number: Media family sequence number. - :vartype family_sequence_number: int - """ - - _validation = { - "file_name": {"readonly": True}, - "status": {"readonly": True}, - "total_size": {"readonly": True}, - "data_read": {"readonly": True}, - "data_written": {"readonly": True}, - "copy_throughput": {"readonly": True}, - "copy_duration": {"readonly": True}, - "family_sequence_number": {"readonly": True}, - } - - _attribute_map = { - "file_name": {"key": "fileName", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "total_size": {"key": "totalSize", "type": "int"}, - "data_read": {"key": "dataRead", "type": "int"}, - "data_written": {"key": "dataWritten", "type": "int"}, - "copy_throughput": {"key": "copyThroughput", "type": "float"}, - "copy_duration": {"key": "copyDuration", "type": "int"}, - "family_sequence_number": {"key": "familySequenceNumber", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.file_name: Optional[str] = None - self.status: Optional[str] = None - self.total_size: Optional[int] = None - self.data_read: Optional[int] = None - self.data_written: Optional[int] = None - self.copy_throughput: Optional[float] = None - self.copy_duration: Optional[int] = None - self.family_sequence_number: Optional[int] = None - - -class SqlBackupSetInfo(_serialization.Model): - """Information of backup set. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar backup_set_id: Backup set id. - :vartype backup_set_id: str - :ivar first_lsn: First LSN of the backup set. - :vartype first_lsn: str - :ivar last_lsn: Last LSN of the backup set. - :vartype last_lsn: str - :ivar backup_type: Backup type. - :vartype backup_type: str - :ivar list_of_backup_files: List of files in the backup set. - :vartype list_of_backup_files: list[~azure.mgmt.datamigration.models.SqlBackupFileInfo] - :ivar backup_start_date: Backup start date. - :vartype backup_start_date: ~datetime.datetime - :ivar backup_finish_date: Backup end time. - :vartype backup_finish_date: ~datetime.datetime - :ivar is_backup_restored: Whether this backup set has been restored or not. - :vartype is_backup_restored: bool - :ivar has_backup_checksums: Has Backup Checksums. - :vartype has_backup_checksums: bool - :ivar family_count: Media family count. - :vartype family_count: int - :ivar ignore_reasons: The reasons why the backup set is ignored. - :vartype ignore_reasons: list[str] - """ - - _validation = { - "backup_set_id": {"readonly": True}, - "first_lsn": {"readonly": True}, - "last_lsn": {"readonly": True}, - "backup_type": {"readonly": True}, - "list_of_backup_files": {"readonly": True}, - "backup_start_date": {"readonly": True}, - "backup_finish_date": {"readonly": True}, - "is_backup_restored": {"readonly": True}, - "has_backup_checksums": {"readonly": True}, - "family_count": {"readonly": True}, - "ignore_reasons": {"readonly": True}, - } - - _attribute_map = { - "backup_set_id": {"key": "backupSetId", "type": "str"}, - "first_lsn": {"key": "firstLSN", "type": "str"}, - "last_lsn": {"key": "lastLSN", "type": "str"}, - "backup_type": {"key": "backupType", "type": "str"}, - "list_of_backup_files": {"key": "listOfBackupFiles", "type": "[SqlBackupFileInfo]"}, - "backup_start_date": {"key": "backupStartDate", "type": "iso-8601"}, - "backup_finish_date": {"key": "backupFinishDate", "type": "iso-8601"}, - "is_backup_restored": {"key": "isBackupRestored", "type": "bool"}, - "has_backup_checksums": {"key": "hasBackupChecksums", "type": "bool"}, - "family_count": {"key": "familyCount", "type": "int"}, - "ignore_reasons": {"key": "ignoreReasons", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.backup_set_id: Optional[str] = None - self.first_lsn: Optional[str] = None - self.last_lsn: Optional[str] = None - self.backup_type: Optional[str] = None - self.list_of_backup_files: Optional[list["_models.SqlBackupFileInfo"]] = None - self.backup_start_date: Optional[datetime.datetime] = None - self.backup_finish_date: Optional[datetime.datetime] = None - self.is_backup_restored: Optional[bool] = None - self.has_backup_checksums: Optional[bool] = None - self.family_count: Optional[int] = None - self.ignore_reasons: Optional[list[str]] = None - - -class SqlConnectionInfo(ConnectionInfo): - """Information for connecting to SQL database server. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of connection info. Required. - :vartype type: str - :ivar user_name: User name. - :vartype user_name: str - :ivar password: Password credential. - :vartype password: str - :ivar data_source: Data source in the format - Protocol:MachineName\\SQLServerInstanceName,PortNumber. Required. - :vartype data_source: str - :ivar server_name: name of the server. - :vartype server_name: str - :ivar port: Port for Server. - :vartype port: int - :ivar server_version: server version. - :vartype server_version: str - :ivar server_brand_version: server brand version. - :vartype server_brand_version: str - :ivar resource_id: Represents the ID of an HTTP resource represented by an Azure resource - provider. - :vartype resource_id: str - :ivar authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :vartype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - :ivar encrypt_connection: Whether to encrypt the connection. - :vartype encrypt_connection: bool - :ivar additional_settings: Additional connection settings. - :vartype additional_settings: str - :ivar trust_server_certificate: Whether to trust the server certificate. - :vartype trust_server_certificate: bool - :ivar platform: Server platform type for connection. "SqlOnPrem" - :vartype platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform - """ - - _validation = { - "type": {"required": True}, - "data_source": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "data_source": {"key": "dataSource", "type": "str"}, - "server_name": {"key": "serverName", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "server_version": {"key": "serverVersion", "type": "str"}, - "server_brand_version": {"key": "serverBrandVersion", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "authentication": {"key": "authentication", "type": "str"}, - "encrypt_connection": {"key": "encryptConnection", "type": "bool"}, - "additional_settings": {"key": "additionalSettings", "type": "str"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "bool"}, - "platform": {"key": "platform", "type": "str"}, - } - - def __init__( - self, - *, - data_source: str, - user_name: Optional[str] = None, - password: Optional[str] = None, - server_name: Optional[str] = None, - port: Optional[int] = None, - server_version: Optional[str] = None, - server_brand_version: Optional[str] = None, - resource_id: Optional[str] = None, - authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - encrypt_connection: bool = True, - additional_settings: Optional[str] = None, - trust_server_certificate: bool = False, - platform: Optional[Union[str, "_models.SqlSourcePlatform"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword user_name: User name. - :paramtype user_name: str - :keyword password: Password credential. - :paramtype password: str - :keyword data_source: Data source in the format - Protocol:MachineName\\SQLServerInstanceName,PortNumber. Required. - :paramtype data_source: str - :keyword server_name: name of the server. - :paramtype server_name: str - :keyword port: Port for Server. - :paramtype port: int - :keyword server_version: server version. - :paramtype server_version: str - :keyword server_brand_version: server brand version. - :paramtype server_brand_version: str - :keyword resource_id: Represents the ID of an HTTP resource represented by an Azure resource - provider. - :paramtype resource_id: str - :keyword authentication: Authentication type to use for connection. Known values are: "None", - "WindowsAuthentication", "SqlAuthentication", "ActiveDirectoryIntegrated", and - "ActiveDirectoryPassword". - :paramtype authentication: str or ~azure.mgmt.datamigration.models.AuthenticationType - :keyword encrypt_connection: Whether to encrypt the connection. - :paramtype encrypt_connection: bool - :keyword additional_settings: Additional connection settings. - :paramtype additional_settings: str - :keyword trust_server_certificate: Whether to trust the server certificate. - :paramtype trust_server_certificate: bool - :keyword platform: Server platform type for connection. "SqlOnPrem" - :paramtype platform: str or ~azure.mgmt.datamigration.models.SqlSourcePlatform - """ - super().__init__(user_name=user_name, password=password, **kwargs) - self.type: str = "SqlConnectionInfo" - self.data_source = data_source - self.server_name = server_name - self.port = port - self.server_version = server_version - self.server_brand_version = server_brand_version - self.resource_id = resource_id - self.authentication = authentication - self.encrypt_connection = encrypt_connection - self.additional_settings = additional_settings - self.trust_server_certificate = trust_server_certificate - self.platform = platform - - -class SqlConnectionInformation(_serialization.Model): - """Source SQL Connection. - - :ivar data_source: Data source. - :vartype data_source: str - :ivar authentication: Authentication type. - :vartype authentication: str - :ivar user_name: User name to connect to source SQL. - :vartype user_name: str - :ivar password: Password to connect to source SQL. - :vartype password: str - :ivar encrypt_connection: Whether to encrypt connection or not. - :vartype encrypt_connection: bool - :ivar trust_server_certificate: Whether to trust server certificate or not. - :vartype trust_server_certificate: bool - """ - - _attribute_map = { - "data_source": {"key": "dataSource", "type": "str"}, - "authentication": {"key": "authentication", "type": "str"}, - "user_name": {"key": "userName", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "encrypt_connection": {"key": "encryptConnection", "type": "bool"}, - "trust_server_certificate": {"key": "trustServerCertificate", "type": "bool"}, - } - - def __init__( - self, - *, - data_source: Optional[str] = None, - authentication: Optional[str] = None, - user_name: Optional[str] = None, - password: Optional[str] = None, - encrypt_connection: Optional[bool] = None, - trust_server_certificate: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword data_source: Data source. - :paramtype data_source: str - :keyword authentication: Authentication type. - :paramtype authentication: str - :keyword user_name: User name to connect to source SQL. - :paramtype user_name: str - :keyword password: Password to connect to source SQL. - :paramtype password: str - :keyword encrypt_connection: Whether to encrypt connection or not. - :paramtype encrypt_connection: bool - :keyword trust_server_certificate: Whether to trust server certificate or not. - :paramtype trust_server_certificate: bool - """ - super().__init__(**kwargs) - self.data_source = data_source - self.authentication = authentication - self.user_name = user_name - self.password = password - self.encrypt_connection = encrypt_connection - self.trust_server_certificate = trust_server_certificate - - -class SqlDbMigrationStatusDetails(_serialization.Model): - """Detailed status of current Sql Db migration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar migration_state: Current State of Migration. - :vartype migration_state: str - :ivar sql_data_copy_errors: Sql Data Copy errors, if any. - :vartype sql_data_copy_errors: list[str] - :ivar list_of_copy_progress_details: Details on progress of ADF copy activities. - :vartype list_of_copy_progress_details: - list[~azure.mgmt.datamigration.models.CopyProgressDetails] - """ - - _validation = { - "migration_state": {"readonly": True}, - "sql_data_copy_errors": {"readonly": True}, - "list_of_copy_progress_details": {"readonly": True}, - } - - _attribute_map = { - "migration_state": {"key": "migrationState", "type": "str"}, - "sql_data_copy_errors": {"key": "sqlDataCopyErrors", "type": "[str]"}, - "list_of_copy_progress_details": {"key": "listOfCopyProgressDetails", "type": "[CopyProgressDetails]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.migration_state: Optional[str] = None - self.sql_data_copy_errors: Optional[list[str]] = None - self.list_of_copy_progress_details: Optional[list["_models.CopyProgressDetails"]] = None - - -class SqlDbOfflineConfiguration(_serialization.Model): - """Offline configuration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar offline: Offline migration. - :vartype offline: bool - """ - - _validation = { - "offline": {"readonly": True}, - } - - _attribute_map = { - "offline": {"key": "offline", "type": "bool"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.offline: Optional[bool] = None - - -class SqlFileShare(_serialization.Model): - """File share. - - :ivar path: Location as SMB share or local drive where backups are placed. - :vartype path: str - :ivar username: Username to access the file share location for backups. - :vartype username: str - :ivar password: Password for username to access file share location. - :vartype password: str - """ - - _attribute_map = { - "path": {"key": "path", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - 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 - :keyword username: Username to access the file share location for backups. - :paramtype username: str - :keyword password: Password for username to access file share location. - :paramtype password: str - """ - super().__init__(**kwargs) - self.path = path - self.username = username - self.password = password - - -class SqlMigrationListResult(_serialization.Model): - """A list of SQL Migration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: - :vartype value: list[~azure.mgmt.datamigration.models.SqlMigrationService] - :ivar next_link: - :vartype next_link: str - """ - - _validation = { - "value": {"readonly": True}, - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SqlMigrationService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value: Optional[list["_models.SqlMigrationService"]] = None - self.next_link: Optional[str] = None - - -class SqlMigrationService(TrackedResourceAutoGenerated): - """A SQL Migration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar location: - :vartype location: str - :ivar tags: Dictionary of :code:``. - :vartype tags: dict[str, str] - :ivar id: - :vartype id: str - :ivar name: - :vartype name: str - :ivar type: - :vartype type: str - :ivar system_data: - :vartype system_data: ~azure.mgmt.datamigration.models.SystemDataAutoGenerated - :ivar provisioning_state: Provisioning state to track the async operation status. - :vartype provisioning_state: str - :ivar integration_runtime_state: Current state of the Integration runtime. - :vartype integration_runtime_state: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "integration_runtime_state": {"readonly": True}, - } - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemDataAutoGenerated"}, - "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, - "integration_runtime_state": {"key": "properties.integrationRuntimeState", "type": "str"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: - :paramtype location: str - :keyword tags: Dictionary of :code:``. - :paramtype tags: dict[str, str] - """ - super().__init__(location=location, tags=tags, **kwargs) - self.provisioning_state: Optional[str] = None - self.integration_runtime_state: Optional[str] = None - - -class SqlMigrationServiceUpdate(_serialization.Model): - """An update to a SQL Migration Service. - - :ivar tags: Dictionary of :code:``. - :vartype tags: dict[str, str] - """ - - _attribute_map = { - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, tags: Optional[dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword tags: Dictionary of :code:``. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.tags = tags - - -class SsisMigrationInfo(_serialization.Model): - """SSIS migration info with SSIS store type, overwrite policy. - - :ivar ssis_store_type: The SSIS store type of source, only SSIS catalog is supported now in DMS - (classic). "SsisCatalog" - :vartype ssis_store_type: str or ~azure.mgmt.datamigration.models.SsisStoreType - :ivar project_overwrite_option: The overwrite option for the SSIS project migration. Known - values are: "Ignore" and "Overwrite". - :vartype project_overwrite_option: str or - ~azure.mgmt.datamigration.models.SsisMigrationOverwriteOption - :ivar environment_overwrite_option: The overwrite option for the SSIS environment migration. - Known values are: "Ignore" and "Overwrite". - :vartype environment_overwrite_option: str or - ~azure.mgmt.datamigration.models.SsisMigrationOverwriteOption - """ - - _attribute_map = { - "ssis_store_type": {"key": "ssisStoreType", "type": "str"}, - "project_overwrite_option": {"key": "projectOverwriteOption", "type": "str"}, - "environment_overwrite_option": {"key": "environmentOverwriteOption", "type": "str"}, - } - - def __init__( - self, - *, - 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: Any - ) -> None: - """ - :keyword ssis_store_type: The SSIS store type of source, only SSIS catalog is supported now in - DMS (classic). "SsisCatalog" - :paramtype ssis_store_type: str or ~azure.mgmt.datamigration.models.SsisStoreType - :keyword project_overwrite_option: The overwrite option for the SSIS project migration. Known - values are: "Ignore" and "Overwrite". - :paramtype project_overwrite_option: str or - ~azure.mgmt.datamigration.models.SsisMigrationOverwriteOption - :keyword environment_overwrite_option: The overwrite option for the SSIS environment migration. - Known values are: "Ignore" and "Overwrite". - :paramtype environment_overwrite_option: str or - ~azure.mgmt.datamigration.models.SsisMigrationOverwriteOption - """ - super().__init__(**kwargs) - self.ssis_store_type = ssis_store_type - self.project_overwrite_option = project_overwrite_option - self.environment_overwrite_option = environment_overwrite_option - - -class StartMigrationScenarioServerRoleResult(_serialization.Model): - """Server role migration result. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of server role. - :vartype name: str - :ivar state: Current state of migration. Known values are: "None", "InProgress", "Failed", - "Warning", "Completed", "Skipped", and "Stopped". - :vartype state: str or ~azure.mgmt.datamigration.models.MigrationState - :ivar exceptions_and_warnings: Migration exceptions and warnings. - :vartype exceptions_and_warnings: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "name": {"readonly": True}, - "state": {"readonly": True}, - "exceptions_and_warnings": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "state": {"key": "state", "type": "str"}, - "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name: Optional[str] = None - self.state: Optional[Union[str, "_models.MigrationState"]] = None - self.exceptions_and_warnings: Optional[list["_models.ReportableException"]] = None - - -class SyncMigrationDatabaseErrorEvent(_serialization.Model): - """Database migration errors for online migration. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar timestamp_string: String value of timestamp. - :vartype timestamp_string: str - :ivar event_type_string: Event type. - :vartype event_type_string: str - :ivar event_text: Event text. - :vartype event_text: str - """ - - _validation = { - "timestamp_string": {"readonly": True}, - "event_type_string": {"readonly": True}, - "event_text": {"readonly": True}, - } - - _attribute_map = { - "timestamp_string": {"key": "timestampString", "type": "str"}, - "event_type_string": {"key": "eventTypeString", "type": "str"}, - "event_text": {"key": "eventText", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.timestamp_string: Optional[str] = None - self.event_type_string: Optional[str] = None - self.event_text: Optional[str] = None - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :keyword last_modified_at: The timestamp of resource last modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class SystemDataAutoGenerated(_serialization.Model): - """SystemDataAutoGenerated. - - :ivar created_by: - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :ivar created_at: - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :ivar last_modified_at: - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :keyword created_at: - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that created the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or ~azure.mgmt.datamigration.models.CreatedByType - :keyword last_modified_at: - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TargetLocation(_serialization.Model): - """Target Location details for optional copy of backups. - - :ivar storage_account_resource_id: Resource Id of the storage account copying backups. - :vartype storage_account_resource_id: str - :ivar account_key: Storage Account Key. - :vartype account_key: str - """ - - _attribute_map = { - "storage_account_resource_id": {"key": "storageAccountResourceId", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__( - 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 - :keyword account_key: Storage Account Key. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_account_resource_id = storage_account_resource_id - self.account_key = account_key - - -class TaskList(_serialization.Model): - """OData page of tasks. - - :ivar value: List of tasks. - :vartype value: list[~azure.mgmt.datamigration.models.ProjectTask] - :ivar next_link: URL to load the next page of tasks. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ProjectTask]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - 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] - :keyword next_link: URL to load the next page of tasks. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class UploadOCIDriverTaskInput(_serialization.Model): - """Input for the service task to upload an OCI driver. - - :ivar driver_share: File share information for the OCI driver archive. - :vartype driver_share: ~azure.mgmt.datamigration.models.FileShare - """ - - _attribute_map = { - "driver_share": {"key": "driverShare", "type": "FileShare"}, - } - - 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 - """ - super().__init__(**kwargs) - self.driver_share = driver_share - - -class UploadOCIDriverTaskOutput(_serialization.Model): - """Output for the service task to upload an OCI driver. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar driver_package_name: The name of the driver package that was validated and uploaded. - :vartype driver_package_name: str - :ivar validation_errors: Validation errors. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "driver_package_name": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "driver_package_name": {"key": "driverPackageName", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.driver_package_name: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class UploadOCIDriverTaskProperties(ProjectTaskProperties): - """Properties for the task that uploads an OCI driver. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Input for the service task to upload an OCI driver. - :vartype input: ~azure.mgmt.datamigration.models.UploadOCIDriverTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: list[~azure.mgmt.datamigration.models.UploadOCIDriverTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "UploadOCIDriverTaskInput"}, - "output": {"key": "output", "type": "[UploadOCIDriverTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.UploadOCIDriverTaskInput"] = 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] - :keyword input: Input for the service task to upload an OCI driver. - :paramtype input: ~azure.mgmt.datamigration.models.UploadOCIDriverTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Service.Upload.OCI" - self.input = input - self.output: Optional[list["_models.UploadOCIDriverTaskOutput"]] = None - - -class UserAssignedIdentity(_serialization.Model): - """User assigned identity properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: The principal ID of the assigned identity. - :vartype principal_id: str - :ivar client_id: The client ID of the assigned identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id: Optional[str] = None - self.client_id: Optional[str] = None - - -class ValidateMigrationInputSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """Properties for task that validates migration input for SQL to Azure SQL DB sync migrations. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ValidateSyncMigrationInputSqlServerTaskInput"}, - "output": {"key": "output", "type": "[ValidateSyncMigrationInputSqlServerTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ValidateSyncMigrationInputSqlServerTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: ~azure.mgmt.datamigration.models.ValidateSyncMigrationInputSqlServerTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ValidateMigrationInput.SqlServer.SqlDb.Sync" - self.input = input - self.output: Optional[list["_models.ValidateSyncMigrationInputSqlServerTaskOutput"]] = None - - -class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): # pylint: disable=name-too-long - """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 server. - - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :ivar backup_file_share: Backup file share information for all selected databases. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar storage_resource_id: Fully qualified resourceId of storage. Required. - :vartype storage_resource_id: str - :ivar source_connection_info: Connection information for source SQL Server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Connection information for Azure SQL Database Managed Instance. - Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.MiSqlConnectionInfo - :ivar azure_app: Azure Active Directory Application the DMS (classic) instance will use to - connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage - Account. Required. - :vartype azure_app: ~azure.mgmt.datamigration.models.AzureActiveDirectoryApp - """ - - -class ValidateMigrationInputSqlServerSqlMISyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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. - - :ivar id: Database identifier. - :vartype id: str - :ivar name: Name of database. - :vartype name: str - :ivar validation_errors: Errors associated with a selected database object. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: - ~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ValidateMigrationInputSqlServerSqlMISyncTaskInput"}, - "output": {"key": "output", "type": "[ValidateMigrationInputSqlServerSqlMISyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ValidateMigrationInputSqlServerSqlMISyncTaskInput"] = 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] - :keyword input: Task input. - :paramtype input: - ~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMISyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS" - self.input = input - self.output: Optional[list["_models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput"]] = None - - -class ValidateMigrationInputSqlServerSqlMITaskInput(_serialization.Model): # pylint: disable=name-too-long - """Input for task that validates migration input for SQL to Azure SQL Managed Instance. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to source. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :ivar selected_logins: Logins to migrate. - :vartype selected_logins: list[str] - :ivar backup_file_share: Backup file share information for all selected databases. - :vartype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :ivar backup_blob_share: SAS URI of Azure Storage Account Container to be used for storing - backup files. Required. - :vartype backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :ivar backup_mode: Backup Mode to specify whether to use existing backup or create new backup. - Known values are: "CreateBackup" and "ExistingBackup". - :vartype backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - "backup_blob_share": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlMIDatabaseInput]"}, - "selected_logins": {"key": "selectedLogins", "type": "[str]"}, - "backup_file_share": {"key": "backupFileShare", "type": "FileShare"}, - "backup_blob_share": {"key": "backupBlobShare", "type": "BlobShare"}, - "backup_mode": {"key": "backupMode", "type": "str"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_databases: list["_models.MigrateSqlServerSqlMIDatabaseInput"], - backup_blob_share: "_models.BlobShare", - selected_logins: Optional[list[str]] = None, - backup_file_share: Optional["_models.FileShare"] = None, - backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlMIDatabaseInput] - :keyword selected_logins: Logins to migrate. - :paramtype selected_logins: list[str] - :keyword backup_file_share: Backup file share information for all selected databases. - :paramtype backup_file_share: ~azure.mgmt.datamigration.models.FileShare - :keyword backup_blob_share: SAS URI of Azure Storage Account Container to be used for storing - backup files. Required. - :paramtype backup_blob_share: ~azure.mgmt.datamigration.models.BlobShare - :keyword backup_mode: Backup Mode to specify whether to use existing backup or create new - backup. Known values are: "CreateBackup" and "ExistingBackup". - :paramtype backup_mode: str or ~azure.mgmt.datamigration.models.BackupMode - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases - self.selected_logins = selected_logins - self.backup_file_share = backup_file_share - self.backup_blob_share = backup_blob_share - self.backup_mode = backup_mode - - -class ValidateMigrationInputSqlServerSqlMITaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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. - - :ivar id: Result identifier. - :vartype id: str - :ivar name: Name of database. - :vartype name: str - :ivar restore_database_name_errors: Errors associated with the RestoreDatabaseName. - :vartype restore_database_name_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_folder_errors: Errors associated with the BackupFolder path. - :vartype backup_folder_errors: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_share_credentials_errors: Errors associated with backup share user name and - password credentials. - :vartype backup_share_credentials_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar backup_storage_account_errors: Errors associated with the storage account provided. - :vartype backup_storage_account_errors: - list[~azure.mgmt.datamigration.models.ReportableException] - :ivar existing_backup_errors: Errors associated with existing backup files. - :vartype existing_backup_errors: list[~azure.mgmt.datamigration.models.ReportableException] - :ivar database_backup_info: Information about backup files when existing backup mode is used. - :vartype database_backup_info: ~azure.mgmt.datamigration.models.DatabaseBackupInfo - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "restore_database_name_errors": {"readonly": True}, - "backup_folder_errors": {"readonly": True}, - "backup_share_credentials_errors": {"readonly": True}, - "backup_storage_account_errors": {"readonly": True}, - "existing_backup_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "restore_database_name_errors": {"key": "restoreDatabaseNameErrors", "type": "[ReportableException]"}, - "backup_folder_errors": {"key": "backupFolderErrors", "type": "[ReportableException]"}, - "backup_share_credentials_errors": {"key": "backupShareCredentialsErrors", "type": "[ReportableException]"}, - "backup_storage_account_errors": {"key": "backupStorageAccountErrors", "type": "[ReportableException]"}, - "existing_backup_errors": {"key": "existingBackupErrors", "type": "[ReportableException]"}, - "database_backup_info": {"key": "databaseBackupInfo", "type": "DatabaseBackupInfo"}, - } - - 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. - :paramtype database_backup_info: ~azure.mgmt.datamigration.models.DatabaseBackupInfo - """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.restore_database_name_errors: Optional[list["_models.ReportableException"]] = None - self.backup_folder_errors: Optional[list["_models.ReportableException"]] = None - self.backup_share_credentials_errors: Optional[list["_models.ReportableException"]] = None - self.backup_storage_account_errors: Optional[list["_models.ReportableException"]] = None - self.existing_backup_errors: Optional[list["_models.ReportableException"]] = None - self.database_backup_info = database_backup_info - - -class ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Task input. - :vartype input: ~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput - :ivar output: Task output. This is ignored if submitted. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "ValidateMigrationInputSqlServerSqlMITaskInput"}, - "output": {"key": "output", "type": "[ValidateMigrationInputSqlServerSqlMITaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.ValidateMigrationInputSqlServerSqlMITaskInput"] = 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] - :keyword input: Task input. - :paramtype input: - ~azure.mgmt.datamigration.models.ValidateMigrationInputSqlServerSqlMITaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "ValidateMigrationInput.SqlServer.AzureSqlDbMI" - self.input = input - self.output: Optional[list["_models.ValidateMigrationInputSqlServerSqlMITaskOutput"]] = None - - -class ValidateMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates a migration between MongoDB data sources. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Describes how a MongoDB data migration should be performed. - :vartype input: ~azure.mgmt.datamigration.models.MongoDbMigrationSettings - :ivar output: An array containing a single MongoDbMigrationProgress object. - :vartype output: list[~azure.mgmt.datamigration.models.MongoDbMigrationProgress] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MongoDbMigrationSettings"}, - "output": {"key": "output", "type": "[MongoDbMigrationProgress]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MongoDbMigrationSettings"] = 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] - :keyword input: Describes how a MongoDB data migration should be performed. - :paramtype input: ~azure.mgmt.datamigration.models.MongoDbMigrationSettings - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Validate.MongoDb" - self.input = input - self.output: Optional[list["_models.MongoDbMigrationProgress"]] = None - - -class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): # pylint: disable=name-too-long - """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. - - All required parameters must be populated in order to send to server. - - :ivar task_type: Task type. Required. Known values are: "Connect.MongoDb", - "ConnectToSource.SqlServer", "ConnectToSource.SqlServer.Sync", - "ConnectToSource.PostgreSql.Sync", "ConnectToSource.MySql", "ConnectToSource.Oracle.Sync", - "ConnectToTarget.SqlDb", "ConnectToTarget.SqlDb.Sync", - "ConnectToTarget.AzureDbForPostgreSql.Sync", - "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", "ConnectToTarget.AzureSqlDbMI", - "ConnectToTarget.AzureSqlDbMI.Sync.LRS", "ConnectToTarget.AzureDbForMySql", - "GetUserTables.Sql", "GetUserTables.AzureSqlDb.Sync", "GetUserTablesOracle", - "GetUserTablesPostgreSql", "GetUserTablesMySql", "Migrate.MongoDb", - "Migrate.SqlServer.AzureSqlDbMI", "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", - "Migrate.SqlServer.SqlDb", "Migrate.SqlServer.AzureSqlDb.Sync", - "Migrate.MySql.AzureDbForMySql.Sync", "Migrate.MySql.AzureDbForMySql", - "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", "Migrate.Oracle.AzureDbForPostgreSql.Sync", - "ValidateMigrationInput.SqlServer.SqlDb.Sync", "ValidateMigrationInput.SqlServer.AzureSqlDbMI", - "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", "Validate.MongoDb", - "Validate.Oracle.AzureDbPostgreSql.Sync", "GetTDECertificates.Sql", "Migrate.Ssis", - "Service.Check.OCI", "Service.Upload.OCI", "Service.Install.OCI", and - "MigrateSchemaSqlServerSqlDb". - :vartype task_type: str or ~azure.mgmt.datamigration.models.TaskType - :ivar errors: Array of errors. This is ignored if submitted. - :vartype errors: list[~azure.mgmt.datamigration.models.ODataError] - :ivar state: The state of the task. This is ignored if submitted. Known values are: "Unknown", - "Queued", "Running", "Canceled", "Succeeded", "Failed", "FailedInputValidation", and "Faulted". - :vartype state: str or ~azure.mgmt.datamigration.models.TaskState - :ivar commands: Array of command properties. - :vartype commands: list[~azure.mgmt.datamigration.models.CommandProperties] - :ivar client_data: Key value pairs of client data to attach meta data information to task. - :vartype client_data: dict[str, str] - :ivar input: Input for the task that migrates Oracle databases to Azure Database for PostgreSQL - for online migrations. - :vartype input: ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput - :ivar output: An array containing a single validation error response object. - :vartype output: - list[~azure.mgmt.datamigration.models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput] - """ - - _validation = { - "task_type": {"required": True}, - "errors": {"readonly": True}, - "state": {"readonly": True}, - "commands": {"readonly": True}, - "output": {"readonly": True}, - } - - _attribute_map = { - "task_type": {"key": "taskType", "type": "str"}, - "errors": {"key": "errors", "type": "[ODataError]"}, - "state": {"key": "state", "type": "str"}, - "commands": {"key": "commands", "type": "[CommandProperties]"}, - "client_data": {"key": "clientData", "type": "{str}"}, - "input": {"key": "input", "type": "MigrateOracleAzureDbPostgreSqlSyncTaskInput"}, - "output": {"key": "output", "type": "[ValidateOracleAzureDbPostgreSqlSyncTaskOutput]"}, - } - - def __init__( - self, - *, - client_data: Optional[dict[str, str]] = None, - input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = 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] - :keyword input: Input for the task that migrates Oracle databases to Azure Database for - PostgreSQL for online migrations. - :paramtype input: ~azure.mgmt.datamigration.models.MigrateOracleAzureDbPostgreSqlSyncTaskInput - """ - super().__init__(client_data=client_data, **kwargs) - self.task_type: str = "Validate.Oracle.AzureDbPostgreSql.Sync" - self.input = input - self.output: Optional[list["_models.ValidateOracleAzureDbPostgreSqlSyncTaskOutput"]] = None - - -class ValidateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """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. - - :ivar validation_errors: Errors associated with a selected database object. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ValidateSyncMigrationInputSqlServerTaskInput(_serialization.Model): # pylint: disable=name-too-long - """Input for task that validates migration input for SQL sync migrations. - - All required parameters must be populated in order to send to server. - - :ivar source_connection_info: Information for connecting to source SQL server. Required. - :vartype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar target_connection_info: Information for connecting to target. Required. - :vartype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :ivar selected_databases: Databases to migrate. Required. - :vartype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - """ - - _validation = { - "source_connection_info": {"required": True}, - "target_connection_info": {"required": True}, - "selected_databases": {"required": True}, - } - - _attribute_map = { - "source_connection_info": {"key": "sourceConnectionInfo", "type": "SqlConnectionInfo"}, - "target_connection_info": {"key": "targetConnectionInfo", "type": "SqlConnectionInfo"}, - "selected_databases": {"key": "selectedDatabases", "type": "[MigrateSqlServerSqlDbSyncDatabaseInput]"}, - } - - def __init__( - self, - *, - source_connection_info: "_models.SqlConnectionInfo", - target_connection_info: "_models.SqlConnectionInfo", - selected_databases: list["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], - **kwargs: Any - ) -> None: - """ - :keyword source_connection_info: Information for connecting to source SQL server. Required. - :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword target_connection_info: Information for connecting to target. Required. - :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo - :keyword selected_databases: Databases to migrate. Required. - :paramtype selected_databases: - list[~azure.mgmt.datamigration.models.MigrateSqlServerSqlDbSyncDatabaseInput] - """ - super().__init__(**kwargs) - self.source_connection_info = source_connection_info - self.target_connection_info = target_connection_info - self.selected_databases = selected_databases - - -class ValidateSyncMigrationInputSqlServerTaskOutput(_serialization.Model): # pylint: disable=name-too-long - """Output for task that validates migration input for SQL sync migrations. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Database identifier. - :vartype id: str - :ivar name: Name of database. - :vartype name: str - :ivar validation_errors: Errors associated with a selected database object. - :vartype validation_errors: list[~azure.mgmt.datamigration.models.ReportableException] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "validation_errors": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id: Optional[str] = None - self.name: Optional[str] = None - self.validation_errors: Optional[list["_models.ReportableException"]] = None - - -class ValidationError(_serialization.Model): - """Description about the errors happen while performing migration validation. - - :ivar text: Error Text. - :vartype text: str - :ivar severity: Severity of the error. Known values are: "Message", "Warning", and "Error". - :vartype severity: str or ~azure.mgmt.datamigration.models.Severity - """ - - _attribute_map = { - "text": {"key": "text", "type": "str"}, - "severity": {"key": "severity", "type": "str"}, - } - - def __init__( - self, *, text: Optional[str] = None, severity: Optional[Union[str, "_models.Severity"]] = None, **kwargs: Any - ) -> None: - """ - :keyword text: Error Text. - :paramtype text: str - :keyword severity: Severity of the error. Known values are: "Message", "Warning", and "Error". - :paramtype severity: str or ~azure.mgmt.datamigration.models.Severity - """ - super().__init__(**kwargs) - self.text = text - self.severity = severity - - -class WaitStatistics(_serialization.Model): - """Wait statistics gathered during query batch execution. - - :ivar wait_type: Type of the Wait. - :vartype wait_type: str - :ivar wait_time_ms: Total wait time in millisecond(s). - :vartype wait_time_ms: float - :ivar wait_count: Total no. of waits. - :vartype wait_count: int - """ - - _attribute_map = { - "wait_type": {"key": "waitType", "type": "str"}, - "wait_time_ms": {"key": "waitTimeMs", "type": "float"}, - "wait_count": {"key": "waitCount", "type": "int"}, - } - - def __init__( - 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 - :keyword wait_time_ms: Total wait time in millisecond(s). - :paramtype wait_time_ms: float - :keyword wait_count: Total no. of waits. - :paramtype wait_count: int - """ - super().__init__(**kwargs) - self.wait_type = wait_type - self.wait_time_ms = wait_time_ms - self.wait_count = wait_count diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_patch.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_patch.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py index 5ca18c11cedc..5e22fc1ea415 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/__init__.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- # pylint: disable=wrong-import-position @@ -13,42 +12,42 @@ if TYPE_CHECKING: from ._patch import * # pylint: disable=unused-wildcard-import -from ._database_migrations_mongo_to_cosmos_db_ru_mongo_operations import DatabaseMigrationsMongoToCosmosDbRUMongoOperations # type: ignore -from ._database_migrations_mongo_to_cosmos_dbv_core_mongo_operations import DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations # type: ignore -from ._database_migrations_sql_db_operations import DatabaseMigrationsSqlDbOperations # type: ignore -from ._database_migrations_sql_mi_operations import DatabaseMigrationsSqlMiOperations # type: ignore -from ._database_migrations_sql_vm_operations import DatabaseMigrationsSqlVmOperations # type: ignore from ._operations import Operations # type: ignore -from ._migration_services_operations import MigrationServicesOperations # type: ignore -from ._sql_migration_services_operations import SqlMigrationServicesOperations # type: ignore -from ._resource_skus_operations import ResourceSkusOperations # type: ignore -from ._services_operations import ServicesOperations # type: ignore -from ._tasks_operations import TasksOperations # type: ignore -from ._service_tasks_operations import ServiceTasksOperations # type: ignore -from ._projects_operations import ProjectsOperations # type: ignore -from ._usages_operations import UsagesOperations # type: ignore -from ._files_operations import FilesOperations # type: ignore +from ._operations import DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations # type: ignore +from ._operations import MigrationServicesOperations # type: ignore +from ._operations import SqlMigrationServicesOperations # type: ignore +from ._operations import ServiceTasksOperations # type: ignore +from ._operations import ProjectsOperations # type: ignore +from ._operations import DatabaseMigrationsMongoToCosmosDbRUMongoOperations # type: ignore +from ._operations import DatabaseMigrationsSqlDbOperations # type: ignore +from ._operations import DatabaseMigrationsSqlMiOperations # type: ignore +from ._operations import DatabaseMigrationsSqlVmOperations # type: ignore +from ._operations import ServicesOperations # type: ignore +from ._operations import TasksOperations # type: ignore +from ._operations import FilesOperations # type: ignore +from ._operations import ResourceSkusOperations # type: ignore +from ._operations import UsagesOperations # type: ignore from ._patch import __all__ as _patch_all from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ - "DatabaseMigrationsMongoToCosmosDbRUMongoOperations", + "Operations", "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations", + "MigrationServicesOperations", + "SqlMigrationServicesOperations", + "ServiceTasksOperations", + "ProjectsOperations", + "DatabaseMigrationsMongoToCosmosDbRUMongoOperations", "DatabaseMigrationsSqlDbOperations", "DatabaseMigrationsSqlMiOperations", "DatabaseMigrationsSqlVmOperations", - "Operations", - "MigrationServicesOperations", - "SqlMigrationServicesOperations", - "ResourceSkusOperations", "ServicesOperations", "TasksOperations", - "ServiceTasksOperations", - "ProjectsOperations", - "UsagesOperations", "FilesOperations", + "ResourceSkusOperations", + "UsagesOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py deleted file mode 100644 index efb72175741f..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py +++ /dev/null @@ -1,707 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "migrationName": _SERIALIZER.url("migration_name", migration_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_request( - resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "migrationName": _SERIALIZER.url("migration_name", migration_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - target_resource_name: str, - migration_name: str, - subscription_id: str, - *, - force: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "migrationName": _SERIALIZER.url("migration_name", migration_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if force is not None: - _params["force"] = _SERIALIZER.query("force", force, "bool") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_for_scope_request( - resource_group_name: str, target_resource_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class DatabaseMigrationsMongoToCosmosDbRUMongoOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`database_migrations_mongo_to_cosmos_db_ru_mongo` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any - ) -> _models.DatabaseMigrationCosmosDbMongo: - """Get Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :return: DatabaseMigrationCosmosDbMongo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationCosmosDbMongo") - - _request = build_create_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: _models.DatabaseMigrationCosmosDbMongo, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationCosmosDbMongo or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationCosmosDbMongo or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Is either a - DatabaseMigrationCosmosDbMongo type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or IO[bytes] - :return: An instance of LROPoller that returns either DatabaseMigrationCosmosDbMongo or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationCosmosDbMongo]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> LROPoller[None]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_for_scope( - self, resource_group_name: str, target_resource_name: str, **kwargs: Any - ) -> ItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: - """Get Database Migration resources for the scope. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :return: An iterator like instance of either DatabaseMigrationCosmosDbMongo or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongoListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_get_for_scope_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongoListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py deleted file mode 100644 index e6c27abd9e16..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py +++ /dev/null @@ -1,707 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "migrationName": _SERIALIZER.url("migration_name", migration_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_request( - resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "migrationName": _SERIALIZER.url("migration_name", migration_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - target_resource_name: str, - migration_name: str, - subscription_id: str, - *, - force: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "migrationName": _SERIALIZER.url("migration_name", migration_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if force is not None: - _params["force"] = _SERIALIZER.query("force", force, "bool") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_for_scope_request( - resource_group_name: str, target_resource_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "targetResourceName": _SERIALIZER.url( - "target_resource_name", target_resource_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations: # pylint: disable=name-too-long - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`database_migrations_mongo_to_cosmos_dbv_core_mongo` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any - ) -> _models.DatabaseMigrationCosmosDbMongo: - """Get Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :return: DatabaseMigrationCosmosDbMongo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationCosmosDbMongo") - - _request = build_create_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: _models.DatabaseMigrationCosmosDbMongo, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationCosmosDbMongo or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationCosmosDbMongo or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - parameters: Union[_models.DatabaseMigrationCosmosDbMongo, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param parameters: Details of CosmosDB for Mongo API Migration resource. Is either a - DatabaseMigrationCosmosDbMongo type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or IO[bytes] - :return: An instance of LROPoller that returns either DatabaseMigrationCosmosDbMongo or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongo", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationCosmosDbMongo]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - target_resource_name: str, - migration_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> LROPoller[None]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :param migration_name: Name of the migration. Required. - :type migration_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - migration_name=migration_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_for_scope( - self, resource_group_name: str, target_resource_name: str, **kwargs: Any - ) -> ItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: - """Get Database Migration resources for the scope. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param target_resource_name: The name of the target resource/account. Required. - :type target_resource_name: str - :return: An iterator like instance of either DatabaseMigrationCosmosDbMongo or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationCosmosDbMongoListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_get_for_scope_request( - resource_group_name=resource_group_name, - target_resource_name=target_resource_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationCosmosDbMongoListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py deleted file mode 100644 index 32bfa1578822..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_db_operations.py +++ /dev/null @@ -1,1054 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - subscription_id: str, - *, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if migration_operation_id is not None: - _params["migrationOperationId"] = _SERIALIZER.query("migration_operation_id", migration_operation_id, "str") - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, sql_db_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - subscription_id: str, - *, - force: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if force is not None: - _params["force"] = _SERIALIZER.query("force", force, "bool") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) - - -def build_cancel_request( - resource_group_name: str, sql_db_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_retry_request( - resource_group_name: str, sql_db_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlDbInstanceName": _SERIALIZER.url( - "sql_db_instance_name", sql_db_instance_name, "str", pattern=r"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$" - ), - "targetDbName": _SERIALIZER.url( - "target_db_name", target_db_name, "str", pattern=r"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DatabaseMigrationsSqlDbOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`database_migrations_sql_db` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.DatabaseMigrationSqlDb: - """Retrieve the Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_id: Optional migration operation ID. If this is provided, then - details of migration operation for that ID are retrieved. If not provided (default), then - details related to most recent or current operation are retrieved. Default value is None. - :type migration_operation_id: str - :param expand: Complete migration details be included in the response. Default value is None. - :type expand: str - :return: DatabaseMigrationSqlDb or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - migration_operation_id=migration_operation_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationSqlDb", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlDb, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationSqlDb") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: _models.DatabaseMigrationSqlDb, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlDb]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of Sql Db migration resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlDb]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of Sql Db migration resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlDb, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlDb]: - """Create or Update Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of Sql Db migration resource. Is either a DatabaseMigrationSqlDb - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb or IO[bytes] - :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlDb", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationSqlDb].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationSqlDb]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> LROPoller[None]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _cancel_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cancel_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_cancel( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Stop on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_cancel( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Stop on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_cancel( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Stop on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. Is - either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._cancel_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _retry_initial( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(migration_operation_input, (IOBase, bytes)): - _content = migration_operation_input - else: - _json = self._serialize.body(migration_operation_input, "MigrationOperationInput") - - _request = build_retry_request( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_retry( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlDb]: - """Retry on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_input: Required migration operation ID for which retry will be - initiated. Required. - :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_retry( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlDb]: - """Retry on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_input: Required migration operation ID for which retry will be - initiated. Required. - :type migration_operation_input: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_retry( - self, - resource_group_name: str, - sql_db_instance_name: str, - target_db_name: str, - migration_operation_input: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlDb]: - """Retry on going migration for the database. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_db_instance_name: Required. - :type sql_db_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_input: Required migration operation ID for which retry will be - initiated. Is either a MigrationOperationInput type or a IO[bytes] type. Required. - :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput or - IO[bytes] - :return: An instance of LROPoller that returns either DatabaseMigrationSqlDb or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._retry_initial( - resource_group_name=resource_group_name, - sql_db_instance_name=sql_db_instance_name, - target_db_name=target_db_name, - migration_operation_input=migration_operation_input, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlDb", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationSqlDb].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationSqlDb]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py deleted file mode 100644 index 85e1084aa5a5..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_mi_operations.py +++ /dev/null @@ -1,1050 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - subscription_id: str, - *, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if migration_operation_id is not None: - _params["migrationOperationId"] = _SERIALIZER.query("migration_operation_id", migration_operation_id, "str") - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, managed_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - subscription_id: str, - *, - force: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if force is not None: - _params["force"] = _SERIALIZER.query("force", force, "bool") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cancel_request( - resource_group_name: str, managed_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cutover_request( - resource_group_name: str, managed_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DatabaseMigrationsSqlMiOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`database_migrations_sql_mi` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.DatabaseMigrationSqlMi: - """Retrieve the specified database migration for a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_id: Optional migration operation ID. If this is provided, then - details of migration operation for that ID are retrieved. If not provided (default), then - details related to most recent or current operation are retrieved. Default value is None. - :type migration_operation_id: str - :param expand: Complete migration details be included in the response. Default value is None. - :type expand: str - :return: DatabaseMigrationSqlMi or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - migration_operation_id=migration_operation_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationSqlMi", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlMi, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationSqlMi") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: _models.DatabaseMigrationSqlMi, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlMi]: - """Create a new database migration to a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlMi or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlMi]: - """Create a new database migration to a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlMi or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlMi, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlMi]: - """Create a new database migration to a given SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Is either a DatabaseMigrationSqlMi - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi or IO[bytes] - :return: An instance of LROPoller that returns either DatabaseMigrationSqlMi or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlMi", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationSqlMi]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlMi]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of LROPoller that returns either DatabaseMigrationSqlMi or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlMi", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationSqlMi]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _cancel_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cancel_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_cancel( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Stop in-progress database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_cancel( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Stop in-progress database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_cancel( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Stop in-progress database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cancel will be initiated. Is - either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._cancel_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _cutover_initial( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cutover_request( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_cutover( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cutover will be initiated. - Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_cutover( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cutover will be initiated. - Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_cutover( - self, - resource_group_name: str, - managed_instance_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL Managed Instance. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param managed_instance_name: Required. - :type managed_instance_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required migration operation ID for which cutover will be initiated. Is - either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._cutover_initial( - resource_group_name=resource_group_name, - managed_instance_name=managed_instance_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py deleted file mode 100644 index 29a8e1c30898..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_database_migrations_sql_vm_operations.py +++ /dev/null @@ -1,1044 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - subscription_id: str, - *, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if migration_operation_id is not None: - _params["migrationOperationId"] = _SERIALIZER.query("migration_operation_id", migration_operation_id, "str") - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, sql_virtual_machine_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - subscription_id: str, - *, - force: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - if force is not None: - _params["force"] = _SERIALIZER.query("force", force, "bool") - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cancel_request( - resource_group_name: str, sql_virtual_machine_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cutover_request( - resource_group_name: str, sql_virtual_machine_name: str, target_db_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), - "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DatabaseMigrationsSqlVmOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`database_migrations_sql_vm` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - migration_operation_id: Optional[str] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.DatabaseMigrationSqlVm: - """Retrieve the specified database migration for a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param migration_operation_id: Optional migration operation ID. If this is provided, then - details of migration operation for that ID are retrieved. If not provided (default), then - details related to most recent or current operation are retrieved. Default value is None. - :type migration_operation_id: str - :param expand: Complete migration details be included in the response. Default value is None. - :type expand: str - :return: DatabaseMigrationSqlVm or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - migration_operation_id=migration_operation_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DatabaseMigrationSqlVm", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlVm, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DatabaseMigrationSqlVm") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: _models.DatabaseMigrationSqlVm, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlVm]: - """Create a new database migration to a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlVm or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlVm]: - """Create a new database migration to a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DatabaseMigrationSqlVm or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.DatabaseMigrationSqlVm, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlVm]: - """Create a new database migration to a given SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Details of SqlMigrationService resource. Is either a DatabaseMigrationSqlVm - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm or IO[bytes] - :return: An instance of LROPoller that returns either DatabaseMigrationSqlVm or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlVm", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationSqlVm]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - force=force, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - force: Optional[bool] = None, - **kwargs: Any - ) -> LROPoller[_models.DatabaseMigrationSqlVm]: - """Delete Database Migration resource. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param force: Optional force delete boolean. If this is provided as true, migration will be - deleted even if active. Default value is None. - :type force: bool - :return: An instance of LROPoller that returns either DatabaseMigrationSqlVm or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - force=force, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationSqlVm", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DatabaseMigrationSqlVm]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _cancel_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cancel_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_cancel( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Stop in-progress database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_cancel( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Stop in-progress database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_cancel( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Stop in-progress database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Is either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._cancel_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _cutover_initial( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationOperationInput") - - _request = build_cutover_request( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_cutover( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: _models.MigrationOperationInput, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_cutover( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_cutover( - self, - resource_group_name: str, - sql_virtual_machine_name: str, - target_db_name: str, - parameters: Union[_models.MigrationOperationInput, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Initiate cutover for in-progress online database migration to SQL VM. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_virtual_machine_name: Required. - :type sql_virtual_machine_name: str - :param target_db_name: The name of the target database. Required. - :type target_db_name: str - :param parameters: Is either a MigrationOperationInput type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._cutover_initial( - resource_group_name=resource_group_name, - sql_virtual_machine_name=sql_virtual_machine_name, - target_db_name=target_db_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py deleted file mode 100644 index 53f4f4bc49a1..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_files_operations.py +++ /dev/null @@ -1,973 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "fileName": _SERIALIZER.url("file_name", file_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "fileName": _SERIALIZER.url("file_name", file_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "fileName": _SERIALIZER.url("file_name", file_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "fileName": _SERIALIZER.url("file_name", file_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_read_request( - group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "fileName": _SERIALIZER.url("file_name", file_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_read_write_request( - group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "fileName": _SERIALIZER.url("file_name", file_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class FilesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`files` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, group_name: str, service_name: str, project_name: str, **kwargs: Any - ) -> ItemPaged["_models.ProjectFile"]: - """Get files in a project. - - The project resource is a nested resource representing a stored migration project. This method - returns a list of files owned by a project resource. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :return: An iterator like instance of either ProjectFile or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ProjectFile] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FileList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("FileList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> _models.ProjectFile: - """Get file information. - - The files resource is a nested, proxy-only resource representing a file stored under the - project resource. This method retrieves information about a file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: _models.ProjectFile, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Create a file resource. - - The PUT method creates a new file or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Create a file resource. - - The PUT method creates a new file or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: Union[_models.ProjectFile, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectFile: - """Create a file resource. - - The PUT method creates a new file or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Is either a ProjectFile type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or IO[bytes] - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectFile") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> None: - """Delete file. - - This method deletes a file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: _models.ProjectFile, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Update a file. - - This method updates an existing file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectFile: - """Update a file. - - This method updates an existing file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - group_name: str, - service_name: str, - project_name: str, - file_name: str, - parameters: Union[_models.ProjectFile, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectFile: - """Update a file. - - This method updates an existing file. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :param parameters: Information about the file. Is either a ProjectFile type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or IO[bytes] - :return: ProjectFile or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectFile - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectFile") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectFile", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def read( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> _models.FileStorageInfo: - """Request storage information for downloading the file content. - - This method is used for requesting storage information using which contents of the file can be - downloaded. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: FileStorageInfo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) - - _request = build_read_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def read_write( - self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any - ) -> _models.FileStorageInfo: - """Request information for reading and writing file content. - - This method is used for requesting information for reading and writing the file content. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param file_name: Name of the File. Required. - :type file_name: str - :return: FileStorageInfo or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) - - _request = build_read_write_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - file_name=file_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("FileStorageInfo", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py deleted file mode 100644 index 1a5ed2b8cb23..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_migration_services_operations.py +++ /dev/null @@ -1,1102 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "migrationServiceName": _SERIALIZER.url( - "migration_service_name", migration_service_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "migrationServiceName": _SERIALIZER.url( - "migration_service_name", migration_service_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "migrationServiceName": _SERIALIZER.url( - "migration_service_name", migration_service_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "migrationServiceName": _SERIALIZER.url( - "migration_service_name", migration_service_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/migrationServices" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_migrations_request( - resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}/listMigrations", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "migrationServiceName": _SERIALIZER.url( - "migration_service_name", migration_service_name, "str", pattern=r"^[A-Za-z][A-Za-z0-9_-]*$" - ), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class MigrationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`migration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get(self, resource_group_name: str, migration_service_name: str, **kwargs: Any) -> _models.MigrationService: - """Retrieve the Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :return: MigrationService or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.MigrationService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MigrationService", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationService, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: _models.MigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Is either a MigrationService type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationService or IO[bytes] - :return: An instance of LROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial(self, resource_group_name: str, migration_service_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, migration_service_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "MigrationServiceUpdate") - - _request = build_update_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: _models.MigrationServiceUpdate, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - migration_service_name: str, - parameters: Union[_models.MigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :param parameters: Details of MigrationService resource. Is either a MigrationServiceUpdate - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate or IO[bytes] - :return: An instance of LROPoller that returns either MigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.MigrationService"]: - """Retrieve all migration services in the resource group. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either MigrationService or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MigrationServiceListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("MigrationServiceListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.MigrationService"]: - """Retrieve all migration services in the subscriptions. - - :return: An iterator like instance of either MigrationService or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.MigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.MigrationServiceListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("MigrationServiceListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_migrations( - self, resource_group_name: str, migration_service_name: str, **kwargs: Any - ) -> ItemPaged["_models.DatabaseMigrationBase"]: - """Retrieve the List of database migrations attached to the service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param migration_service_name: Name of the Migration Service. Required. - :type migration_service_name: str - :return: An iterator like instance of either DatabaseMigrationBase or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationBase] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationBaseListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_migrations_request( - resource_group_name=resource_group_name, - migration_service_name=migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationBaseListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ErrorResponse, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py index 987e42035f75..a1a2fee9198c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_operations.py @@ -1,12 +1,15 @@ +# pylint: disable=line-too-long,useless-suppression,too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar +from io import IOBase +import json +from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core import PipelineClient @@ -16,28 +19,34 @@ ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, + StreamClosedError, + StreamConsumedError, map_error, ) from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models as _models from .._configuration import DataMigrationManagementClientConfiguration +from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] +JSON = MutableMapping[str, Any] List = list _SERIALIZER = Serializer() _SERIALIZER.client_side_validation = False -def build_list_request(**kwargs: Any) -> HttpRequest: +def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -45,7 +54,2415 @@ def build_list_request(**kwargs: Any) -> HttpRequest: accept = _headers.pop("Accept", "application/json") # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.DataMigration/operations") + _url = "/providers/Microsoft.DataMigration/operations" + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_request( # pylint: disable=name-too-long + resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + "migrationName": _SERIALIZER.url("migration_name", migration_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_dbv_core_mongo_create_request( # pylint: disable=name-too-long + resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + "migrationName": _SERIALIZER.url("migration_name", migration_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_dbv_core_mongo_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + target_resource_name: str, + migration_name: str, + subscription_id: str, + *, + force: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + "migrationName": _SERIALIZER.url("migration_name", migration_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if force is not None: + _params["force"] = _SERIALIZER.query("force", force, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope_request( # pylint: disable=name-too-long + resource_group_name: str, target_resource_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_migration_services_get_request( + resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "migrationServiceName": _SERIALIZER.url("migration_service_name", migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_migration_services_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "migrationServiceName": _SERIALIZER.url("migration_service_name", migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_migration_services_update_request( + resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "migrationServiceName": _SERIALIZER.url("migration_service_name", migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_migration_services_delete_request( + resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "migrationServiceName": _SERIALIZER.url("migration_service_name", migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_migration_services_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_migration_services_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/migrationServices" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_migration_services_list_migrations_request( # pylint: disable=name-too-long + resource_group_name: str, migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/migrationServices/{migrationServiceName}/listMigrations" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "migrationServiceName": _SERIALIZER.url("migration_service_name", migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_get_request( + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_update_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_delete_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_sql_migration_services_list_by_resource_group_request( # pylint: disable=name-too-long + resource_group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_list_by_subscription_request( # pylint: disable=name-too-long + subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_list_auth_keys_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_regenerate_auth_keys_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_delete_node_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_list_migrations_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_sql_migration_services_list_monitoring_data_request( # pylint: disable=name-too-long + resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_service_tasks_get_request( + group_name: str, + service_name: str, + task_name: str, + subscription_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_service_tasks_create_or_update_request( # pylint: disable=name-too-long + group_name: str, service_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_service_tasks_update_request( + group_name: str, service_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_service_tasks_delete_request( + group_name: str, + service_name: str, + task_name: str, + subscription_id: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if delete_running_tasks is not None: + _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_service_tasks_list_request( + group_name: str, service_name: str, subscription_id: str, *, task_type: Optional[str] = None, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if task_type is not None: + _params["taskType"] = _SERIALIZER.query("task_type", task_type, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_service_tasks_cancel_request( + group_name: str, service_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_projects_get_request( + group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_projects_create_or_update_request( + group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_projects_update_request( + group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_projects_delete_request( + group_name: str, + service_name: str, + project_name: str, + subscription_id: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if delete_running_tasks is not None: + _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_projects_list_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_request( # pylint: disable=name-too-long + resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + "migrationName": _SERIALIZER.url("migration_name", migration_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_db_ru_mongo_create_request( # pylint: disable=name-too-long + resource_group_name: str, target_resource_name: str, migration_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + "migrationName": _SERIALIZER.url("migration_name", migration_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_db_ru_mongo_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + target_resource_name: str, + migration_name: str, + subscription_id: str, + *, + force: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations/{migrationName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + "migrationName": _SERIALIZER.url("migration_name", migration_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if force is not None: + _params["force"] = _SERIALIZER.query("force", force, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope_request( # pylint: disable=name-too-long + resource_group_name: str, target_resource_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{targetResourceName}/providers/Microsoft.DataMigration/databaseMigrations" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "targetResourceName": _SERIALIZER.url("target_resource_name", target_resource_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_db_get_request( # pylint: disable=name-too-long + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + subscription_id: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if migration_operation_id is not None: + _params["migrationOperationId"] = _SERIALIZER.query("migration_operation_id", migration_operation_id, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_db_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, sql_db_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_db_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + subscription_id: str, + *, + force: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if force is not None: + _params["force"] = _SERIALIZER.query("force", force, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_database_migrations_sql_db_cancel_request( # pylint: disable=name-too-long + resource_group_name: str, sql_db_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_db_retry_request( # pylint: disable=name-too-long + resource_group_name: str, sql_db_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlDbInstanceName": _SERIALIZER.url("sql_db_instance_name", sql_db_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_mi_get_request( # pylint: disable=name-too-long + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + subscription_id: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if migration_operation_id is not None: + _params["migrationOperationId"] = _SERIALIZER.query("migration_operation_id", migration_operation_id, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_mi_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, managed_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_mi_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + subscription_id: str, + *, + force: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if force is not None: + _params["force"] = _SERIALIZER.query("force", force, "bool") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_mi_cancel_request( # pylint: disable=name-too-long + resource_group_name: str, managed_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_mi_cutover_request( # pylint: disable=name-too-long + resource_group_name: str, managed_instance_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "managedInstanceName": _SERIALIZER.url("managed_instance_name", managed_instance_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_vm_get_request( # pylint: disable=name-too-long + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + subscription_id: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if migration_operation_id is not None: + _params["migrationOperationId"] = _SERIALIZER.query("migration_operation_id", migration_operation_id, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_vm_create_or_update_request( # pylint: disable=name-too-long + resource_group_name: str, sql_virtual_machine_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_vm_delete_request( # pylint: disable=name-too-long + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + subscription_id: str, + *, + force: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if force is not None: + _params["force"] = _SERIALIZER.query("force", force, "bool") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_vm_cancel_request( # pylint: disable=name-too-long + resource_group_name: str, sql_virtual_machine_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_database_migrations_sql_vm_cutover_request( # pylint: disable=name-too-long + resource_group_name: str, sql_virtual_machine_name: str, target_db_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), + "sqlVirtualMachineName": _SERIALIZER.url("sql_virtual_machine_name", sql_virtual_machine_name, "str"), + "targetDbName": _SERIALIZER.url("target_db_name", target_db_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_get_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_create_or_update_request( + group_name: str, service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_update_request( + group_name: str, service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_delete_request( + group_name: str, + service_name: str, + subscription_id: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if delete_running_tasks is not None: + _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_services_list_by_resource_group_request( # pylint: disable=name-too-long + group_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_check_status_request( + group_name: str, service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_start_request( + group_name: str, service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/start" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_services_stop_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="POST", url=_url, params=_params, **kwargs) + + +def build_services_list_skus_request( + group_name: str, service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_check_children_name_availability_request( # pylint: disable=name-too-long + group_name: str, service_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_services_check_name_availability_request( # pylint: disable=name-too-long + location: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = ( + "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability" + ) + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "location": _SERIALIZER.url("location", location, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_tasks_get_request( + group_name: str, + service_name: str, + project_name: str, + task_name: str, + subscription_id: str, + *, + expand: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if expand is not None: + _params["$expand"] = _SERIALIZER.query("expand", expand, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_tasks_create_or_update_request( + group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_tasks_update_request( + group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_tasks_delete_request( + group_name: str, + service_name: str, + project_name: str, + task_name: str, + subscription_id: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if delete_running_tasks is not None: + _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_tasks_list_request( + group_name: str, + service_name: str, + project_name: str, + subscription_id: str, + *, + task_type: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if task_type is not None: + _params["taskType"] = _SERIALIZER.query("task_type", task_type, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_tasks_cancel_request( + group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_tasks_command_request( + group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "taskName": _SERIALIZER.url("task_name", task_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_files_get_request( + group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "fileName": _SERIALIZER.url("file_name", file_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_files_create_or_update_request( + group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "fileName": _SERIALIZER.url("file_name", file_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_files_update_request( + group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "fileName": _SERIALIZER.url("file_name", file_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_files_delete_request( + group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "fileName": _SERIALIZER.url("file_name", file_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) + + +def build_files_list_request( + group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_files_read_request( + group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/read" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "fileName": _SERIALIZER.url("file_name", file_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_files_read_write_request( + group_name: str, service_name: str, project_name: str, file_name: str, subscription_id: str, **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/files/{fileName}/readwrite" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "groupName": _SERIALIZER.url("group_name", group_name, "str"), + "serviceName": _SERIALIZER.url("service_name", service_name, "str"), + "projectName": _SERIALIZER.url("project_name", project_name, "str"), + "fileName": _SERIALIZER.url("file_name", file_name, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_resource_skus_list_skus_request(subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_usages_list_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages" + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), + "location": _SERIALIZER.url("location", location, "str"), + } + + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -63,10 +2480,11690 @@ class Operations: Instead, you should access the following operations through :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`operations` attribute. + :attr:`operations` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.OperationsDefinition"]: + """List the operations for the provider. + + :return: An iterator like instance of OperationsDefinition + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.OperationsDefinition] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.OperationsDefinition]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_operations_list_request( + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.OperationsDefinition], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`database_migrations_mongo_to_cosmos_dbv_core_mongo` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any + ) -> _models.DatabaseMigrationCosmosDbMongo: + """Get Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :return: DatabaseMigrationCosmosDbMongo. The DatabaseMigrationCosmosDbMongo is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_create_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: _models.DatabaseMigrationCosmosDbMongo, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Is one of the + following types: DatabaseMigrationCosmosDbMongo, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or JSON or + IO[bytes] + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationCosmosDbMongo]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_delete_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[None]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def get_for_scope( + self, resource_group_name: str, target_resource_name: str, **kwargs: Any + ) -> ItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: + """Get Database Migration resources for the scope. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :return: An iterator like instance of DatabaseMigrationCosmosDbMongo + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigrationCosmosDbMongo]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigrationCosmosDbMongo], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class MigrationServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`migration_services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, resource_group_name: str, migration_service_name: str, **kwargs: Any) -> _models.MigrationService: + """Retrieve the Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :return: MigrationService. The MigrationService is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.MigrationService + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) + + _request = build_migration_services_get_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.MigrationService, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_migration_services_create_or_update_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: _models.MigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Is one of the following types: + MigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationService or JSON or IO[bytes] + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.MigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.MigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.MigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_migration_services_update_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: _models.MigrationServiceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + migration_service_name: str, + parameters: Union[_models.MigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.MigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :param parameters: Details of MigrationService resource. Is one of the following types: + MigrationServiceUpdate, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationServiceUpdate or JSON or IO[bytes] + :return: An instance of LROPoller that returns MigrationService. The MigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.MigrationService] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.MigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.MigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.MigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial(self, resource_group_name: str, migration_service_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_migration_services_delete_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, migration_service_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.MigrationService"]: + """Retrieve all migration services in the resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of MigrationService + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.MigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_migration_services_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.MigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.MigrationService"]: + """Retrieve all migration services in the subscriptions. + + :return: An iterator like instance of MigrationService + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.MigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.MigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_migration_services_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.MigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_migrations( + self, resource_group_name: str, migration_service_name: str, **kwargs: Any + ) -> ItemPaged["_models.DatabaseMigrationBase"]: + """Retrieve the List of database migrations attached to the service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param migration_service_name: Name of the Migration Service. Required. + :type migration_service_name: str + :return: An iterator like instance of DatabaseMigrationBase + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationBase] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigrationBase]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_migration_services_list_migrations_request( + resource_group_name=resource_group_name, + migration_service_name=migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigrationBase], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class SqlMigrationServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`sql_migration_services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> _models.SqlMigrationService: + """Retrieve the Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: SqlMigrationService. The SqlMigrationService is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.SqlMigrationService + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_get_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.SqlMigrationService, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_create_or_update_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.SqlMigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Create or Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + SqlMigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService or JSON or IO[bytes] + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.SqlMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.SqlMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.SqlMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_update_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 200: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if response.status_code == 201: + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.SqlMigrationServiceUpdate, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.SqlMigrationServiceUpdate, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.SqlMigrationService]: + """Update Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + SqlMigrationServiceUpdate, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate or JSON or + IO[bytes] + :return: An instance of LROPoller that returns SqlMigrationService. The SqlMigrationService is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response_headers = {} + response = pipeline_response.http_response + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = _deserialize(_models.SqlMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.SqlMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.SqlMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_delete_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete(self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any) -> LROPoller[None]: + """Delete Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group( + self, resource_group_name: str, **kwargs: Any + ) -> ItemPaged["_models.SqlMigrationService"]: + """Retrieve all SQL migration services in the resource group. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :return: An iterator like instance of SqlMigrationService + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SqlMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_sql_migration_services_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SqlMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SqlMigrationService"]: + """Retrieve all SQL migration services in the subscriptions. + + :return: An iterator like instance of SqlMigrationService + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.SqlMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_sql_migration_services_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.SqlMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_auth_keys( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> _models.AuthenticationKeys: + """Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: AuthenticationKeys. The AuthenticationKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.AuthenticationKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.AuthenticationKeys] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_list_auth_keys_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.AuthenticationKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.RegenAuthKeys, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def regenerate_auth_keys( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.RegenAuthKeys, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.RegenAuthKeys: + """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + RegenAuthKeys, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys or JSON or IO[bytes] + :return: RegenAuthKeys. The RegenAuthKeys is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.RegenAuthKeys] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_regenerate_auth_keys_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.RegenAuthKeys, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: _models.DeleteNode, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DeleteNode + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def delete_node( + self, + resource_group_name: str, + sql_migration_service_name: str, + parameters: Union[_models.DeleteNode, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.DeleteNode: + """Delete the integration runtime node. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + DeleteNode, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DeleteNode or JSON or IO[bytes] + :return: DeleteNode. The DeleteNode is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DeleteNode + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DeleteNode] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_sql_migration_services_delete_node_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DeleteNode, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def list_migrations( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> ItemPaged["_models.DatabaseMigration"]: + """Retrieve the List of database migrations attached to the service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: An iterator like instance of DatabaseMigration + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigration] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigration]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_sql_migration_services_list_migrations_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigration], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list_monitoring_data( + self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any + ) -> _models.IntegrationRuntimeMonitoringData: + """Retrieve the registered Integration Runtime nodes and their monitoring data for a given + Database Migration Service. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_migration_service_name: Name of the SQL Migration Service. Required. + :type sql_migration_service_name: str + :return: IntegrationRuntimeMonitoringData. The IntegrationRuntimeMonitoringData is compatible + with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.IntegrationRuntimeMonitoringData + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) + + _request = build_sql_migration_services_list_monitoring_data_request( + resource_group_name=resource_group_name, + sql_migration_service_name=sql_migration_service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.IntegrationRuntimeMonitoringData, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ServiceTasksOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`service_tasks` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, group_name: str, service_name: str, task_name: str, *, expand: Optional[str] = None, **kwargs: Any + ) -> _models.ProjectTask: + """Get service task information. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The GET method retrieves information about a service task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword expand: Expand the response. Default value is None. + :paramtype expand: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_service_tasks_get_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PUT method creates a new service task or updates an existing one, + although since service tasks have no mutable custom properties, there is little reason to + update an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_service_tasks_create_or_update_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + group_name: str, + service_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The PATCH method updates an existing service task, but since service + tasks have no mutable custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_service_tasks_update_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, + group_name: str, + service_name: str, + task_name: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. The DELETE method deletes a service task, canceling it first if it's + running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_service_tasks_delete_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, group_name: str, service_name: str, *, task_type: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.ProjectTask"]: + """Get service level tasks for a service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of service level tasks owned by a service + resource. Some tasks may have a status of Unknown, which indicates that an error occurred while + querying the status of that task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :keyword task_type: Filter tasks by task type. Default value is None. + :paramtype task_type: str + :return: An iterator like instance of ProjectTask + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ProjectTask] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ProjectTask]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_service_tasks_list_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + task_type=task_type, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ProjectTask], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def cancel(self, group_name: str, service_name: str, task_name: str, **kwargs: Any) -> _models.ProjectTask: + """Cancel a service task. + + The service tasks resource is a nested, proxy-only resource representing work performed by a + DMS (classic) instance. This method cancels a service task if it's currently queued or running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_service_tasks_cancel_request( + group_name=group_name, + service_name=service_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ProjectsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`projects` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, group_name: str, service_name: str, project_name: str, **kwargs: Any) -> _models.Project: + """Get project information. + + The project resource is a nested resource representing a stored migration project. The GET + method retrieves information about a project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.Project] = kwargs.pop("cls", None) + + _request = build_projects_get_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Project, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: _models.Project, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: ~azure.mgmt.datamigration.models.Project + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: Union[_models.Project, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Project: + """Create or update project. + + The project resource is a nested resource representing a stored migration project. The PUT + method creates a new project or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Is one of the following types: Project, JSON, + IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.Project or JSON or IO[bytes] + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Project] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_projects_create_or_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Project, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: _models.Project, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: ~azure.mgmt.datamigration.models.Project + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + group_name: str, + service_name: str, + project_name: str, + parameters: Union[_models.Project, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.Project: + """Update project. + + The project resource is a nested resource representing a stored migration project. The PATCH + method updates an existing project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param parameters: Information about the project. Is one of the following types: Project, JSON, + IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.Project or JSON or IO[bytes] + :return: Project. The Project is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.Project + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.Project] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_projects_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.Project, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, + group_name: str, + service_name: str, + project_name: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete project. + + The project resource is a nested resource representing a stored migration project. The DELETE + method deletes a project. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_projects_delete_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list(self, group_name: str, service_name: str, **kwargs: Any) -> ItemPaged["_models.Project"]: + """Get projects in a service. + + The project resource is a nested resource representing a stored migration project. This method + returns a list of projects owned by a service resource. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An iterator like instance of Project + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.Project] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.Project]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_projects_list_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Project], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class DatabaseMigrationsMongoToCosmosDbRUMongoOperations: # pylint: disable=name-too-long + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`database_migrations_mongo_to_cosmos_db_ru_mongo` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, resource_group_name: str, target_resource_name: str, migration_name: str, **kwargs: Any + ) -> _models.DatabaseMigrationCosmosDbMongo: + """Get Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :return: DatabaseMigrationCosmosDbMongo. The DatabaseMigrationCosmosDbMongo is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_create_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: _models.DatabaseMigrationCosmosDbMongo, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + parameters: Union[_models.DatabaseMigrationCosmosDbMongo, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationCosmosDbMongo]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :param parameters: Details of CosmosDB for Mongo API Migration resource. Is one of the + following types: DatabaseMigrationCosmosDbMongo, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo or JSON or + IO[bytes] + :return: An instance of LROPoller that returns DatabaseMigrationCosmosDbMongo. The + DatabaseMigrationCosmosDbMongo is compatible with MutableMapping + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationCosmosDbMongo] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationCosmosDbMongo, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationCosmosDbMongo].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationCosmosDbMongo]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_delete_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + target_resource_name: str, + migration_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[None]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :param migration_name: Name of the migration. Required. + :type migration_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + migration_name=migration_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def get_for_scope( + self, resource_group_name: str, target_resource_name: str, **kwargs: Any + ) -> ItemPaged["_models.DatabaseMigrationCosmosDbMongo"]: + """Get Database Migration resources for the scope. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param target_resource_name: The name of the target resource/account. Required. + :type target_resource_name: str + :return: An iterator like instance of DatabaseMigrationCosmosDbMongo + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigrationCosmosDbMongo] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DatabaseMigrationCosmosDbMongo]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope_request( + resource_group_name=resource_group_name, + target_resource_name=target_resource_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DatabaseMigrationCosmosDbMongo], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class DatabaseMigrationsSqlDbOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`database_migrations_sql_db` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.DatabaseMigrationSqlDb: + """Retrieve the Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword migration_operation_id: Optional migration operation ID. If this is provided, then + details of migration operation for that ID are retrieved. If not provided (default), then + details related to most recent or current operation are retrieved. Default value is None. + :paramtype migration_operation_id: str + :keyword expand: Complete migration details be included in the response. Default value is None. + :paramtype expand: str + :return: DatabaseMigrationSqlDb. The DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_db_get_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + migration_operation_id=migration_operation_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationSqlDb, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlDb, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_db_create_or_update_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: _models.DatabaseMigrationSqlDb, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlDb, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlDb]: + """Create or Update Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of Sql Db migration resource. Is one of the following types: + DatabaseMigrationSqlDb, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb or JSON or IO[bytes] + :return: An instance of LROPoller that returns DatabaseMigrationSqlDb. The + DatabaseMigrationSqlDb is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlDb] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationSqlDb] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlDb, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationSqlDb].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationSqlDb]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_db_delete_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[None]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _cancel_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_db_cancel_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_cancel( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Stop on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. Is one + of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._cancel_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _retry_initial( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(migration_operation_input, (IOBase, bytes)): + _content = migration_operation_input + else: + _content = json.dumps(migration_operation_input, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_db_retry_request( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Required. + :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Required. + :type migration_operation_input: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Required. + :type migration_operation_input: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_retry( + self, + resource_group_name: str, + sql_db_instance_name: str, + target_db_name: str, + migration_operation_input: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Retry on going migration for the database. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_db_instance_name: The name of the target SQL DB instance. Required. + :type sql_db_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param migration_operation_input: Required migration operation ID for which retry will be + initiated. Is one of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type migration_operation_input: ~azure.mgmt.datamigration.models.MigrationOperationInput or + JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._retry_initial( + resource_group_name=resource_group_name, + sql_db_instance_name=sql_db_instance_name, + target_db_name=target_db_name, + migration_operation_input=migration_operation_input, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class DatabaseMigrationsSqlMiOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`database_migrations_sql_mi` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.DatabaseMigrationSqlMi: + """Retrieve the specified database migration for a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword migration_operation_id: Optional migration operation ID. If this is provided, then + details of migration operation for that ID are retrieved. If not provided (default), then + details related to most recent or current operation are retrieved. Default value is None. + :paramtype migration_operation_id: str + :keyword expand: Complete migration details be included in the response. Default value is None. + :paramtype expand: str + :return: DatabaseMigrationSqlMi. The DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_mi_get_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + migration_operation_id=migration_operation_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationSqlMi, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlMi, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_mi_create_or_update_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: _models.DatabaseMigrationSqlMi, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlMi, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlMi]: + """Create a new database migration to a given SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + DatabaseMigrationSqlMi, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi or JSON or IO[bytes] + :return: An instance of LROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlMi, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationSqlMi]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_mi_delete_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlMi]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of LROPoller that returns DatabaseMigrationSqlMi. The + DatabaseMigrationSqlMi is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlMi] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlMi] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlMi, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationSqlMi].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationSqlMi]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _cancel_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_mi_cancel_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_cancel( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cancel will be initiated. Is one + of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._cancel_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _cutover_initial( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_mi_cutover_request( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. + Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. + Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_cutover( + self, + resource_group_name: str, + managed_instance_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL Managed Instance. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param managed_instance_name: The name of the target SQL Managed Instance. Required. + :type managed_instance_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required migration operation ID for which cutover will be initiated. Is one + of the following types: MigrationOperationInput, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._cutover_initial( + resource_group_name=resource_group_name, + managed_instance_name=managed_instance_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class DatabaseMigrationsSqlVmOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`database_migrations_sql_vm` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + *, + migration_operation_id: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.DatabaseMigrationSqlVm: + """Retrieve the specified database migration for a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword migration_operation_id: Optional migration operation ID. If this is provided, then + details of migration operation for that ID are retrieved. If not provided (default), then + details related to most recent or current operation are retrieved. Default value is None. + :paramtype migration_operation_id: str + :keyword expand: Complete migration details be included in the response. Default value is None. + :paramtype expand: str + :return: DatabaseMigrationSqlVm. The DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_vm_get_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + migration_operation_id=migration_operation_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DatabaseMigrationSqlVm, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlVm, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_vm_create_or_update_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: _models.DatabaseMigrationSqlVm, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.DatabaseMigrationSqlVm, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlVm]: + """Create a new database migration to a given SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Details of SqlMigrationService resource. Is one of the following types: + DatabaseMigrationSqlVm, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm or JSON or IO[bytes] + :return: An instance of LROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlVm, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationSqlVm]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_database_migrations_sql_vm_delete_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + force=force, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + *, + force: Optional[bool] = None, + **kwargs: Any + ) -> LROPoller[_models.DatabaseMigrationSqlVm]: + """Delete Database Migration resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :keyword force: Optional force delete boolean. If this is provided as true, migration will be + deleted even if active. Default value is None. + :paramtype force: bool + :return: An instance of LROPoller that returns DatabaseMigrationSqlVm. The + DatabaseMigrationSqlVm is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DatabaseMigrationSqlVm] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DatabaseMigrationSqlVm] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + force=force, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DatabaseMigrationSqlVm, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DatabaseMigrationSqlVm].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DatabaseMigrationSqlVm]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _cancel_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_vm_cancel_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_cancel( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Stop in-progress database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Is one of the following types: MigrationOperationInput, JSON, IO[bytes] + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._cancel_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _cutover_initial( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_database_migrations_sql_vm_cutover_request( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ErrorResponse, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: _models.MigrationOperationInput, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_cutover( + self, + resource_group_name: str, + sql_virtual_machine_name: str, + target_db_name: str, + parameters: Union[_models.MigrationOperationInput, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[None]: + """Initiate cutover for in-progress online database migration to SQL VM. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + Required. + :type resource_group_name: str + :param sql_virtual_machine_name: The name of the target SQL Virtual Machine. Required. + :type sql_virtual_machine_name: str + :param target_db_name: The name of the target database. Required. + :type target_db_name: str + :param parameters: Is one of the following types: MigrationOperationInput, JSON, IO[bytes] + Required. + :type parameters: ~azure.mgmt.datamigration.models.MigrationOperationInput or JSON or IO[bytes] + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._cutover_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + target_db_name=target_db_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + +class ServicesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`services` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get(self, group_name: str, service_name: str, **kwargs: Any) -> _models.DataMigrationService: + """Get DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The GET method retrieves information about a service instance. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: DataMigrationService. The DataMigrationService is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DataMigrationService + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) + + _request = build_services_get_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataMigrationService, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _create_or_update_initial( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_create_or_update_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 201: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: _models.DataMigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_create_or_update( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PUT method creates a new service or updates an existing one. When a + service is updated, existing child resources (i.e. tasks) are unaffected. Services currently + support a single kind, "vm", which refers to a VM-based service, although other kinds may be + added in the future. This method can change the kind, SKU, and network of the service, but if + tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request + ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. + Long-running operations use the provisioningState property. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Is one of the following types: + DataMigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or JSON or IO[bytes] + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._create_or_update_initial( + group_name=group_name, + service_name=service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DataMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DataMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DataMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _update_initial( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_update_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @overload + def begin_update( + self, + group_name: str, + service_name: str, + parameters: _models.DataMigrationService, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + group_name: str, + service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def begin_update( + self, + group_name: str, + service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def begin_update( + self, + group_name: str, + service_name: str, + parameters: Union[_models.DataMigrationService, JSON, IO[bytes]], + **kwargs: Any + ) -> LROPoller[_models.DataMigrationService]: + """Create or update DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The PATCH method updates an existing service. This method can change the + kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is + busy), this will fail with 400 Bad Request ("ServiceIsBusy"). + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Information about the service. Is one of the following types: + DataMigrationService, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or JSON or IO[bytes] + :return: An instance of LROPoller that returns DataMigrationService. The DataMigrationService + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._update_initial( + group_name=group_name, + service_name=service_name, + parameters=parameters, + content_type=content_type, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = _deserialize(_models.DataMigrationService, response.json()) + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + return deserialized + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[_models.DataMigrationService].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[_models.DataMigrationService]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) + + def _delete_initial( + self, group_name: str, service_name: str, *, delete_running_tasks: Optional[bool] = None, **kwargs: Any + ) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_services_delete_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_delete( + self, group_name: str, service_name: str, *, delete_running_tasks: Optional[bool] = None, **kwargs: Any + ) -> LROPoller[None]: + """Delete DMS (classic) Service Instance. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). The DELETE method deletes a service. Any running tasks will be canceled. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._delete_initial( + group_name=group_name, + service_name=service_name, + delete_running_tasks=delete_running_tasks, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_by_resource_group(self, group_name: str, **kwargs: Any) -> ItemPaged["_models.DataMigrationService"]: + """Get services in resource group. + + The Services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of service resources in a resource group. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :return: An iterator like instance of DataMigrationService + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_services_list_by_resource_group_request( + group_name=group_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def list(self, **kwargs: Any) -> ItemPaged["_models.DataMigrationService"]: + """Get services in subscription. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of service resources in a subscription. + + :return: An iterator like instance of DataMigrationService + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.DataMigrationService]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_services_list_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.DataMigrationService], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def check_status( + self, group_name: str, service_name: str, **kwargs: Any + ) -> _models.DataMigrationServiceStatusResponse: + """Check service health status. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This action performs a health check and returns the status of the service + and virtual machine size. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: DataMigrationServiceStatusResponse. The DataMigrationServiceStatusResponse is + compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.DataMigrationServiceStatusResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.DataMigrationServiceStatusResponse] = kwargs.pop("cls", None) + + _request = build_services_check_status_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.DataMigrationServiceStatusResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + def _start_initial(self, group_name: str, service_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_services_start_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_start(self, group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: + """Start service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This action starts the service and the service can be used for data + migration. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._start_initial( + group_name=group_name, + service_name=service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + def _stop_initial(self, group_name: str, service_name: str, **kwargs: Any) -> Iterator[bytes]: + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) + + _request = build_services_stop_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = True + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After")) + + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + + if cls: + return cls(pipeline_response, deserialized, response_headers) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def begin_stop(self, group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: + """Stop service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This action stops the service and the service cannot be used for data + migration. The service owner won't be billed when the service is stopped. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) + lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) + cont_token: Optional[str] = kwargs.pop("continuation_token", None) + if cont_token is None: + raw_result = self._stop_initial( + group_name=group_name, + service_name=service_name, + cls=lambda x, y, z: x, + headers=_headers, + params=_params, + **kwargs + ) + raw_result.http_response.read() # type: ignore + kwargs.pop("error_map", None) + + def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + + if polling is True: + polling_method: PollingMethod = cast( + PollingMethod, ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + ) + elif polling is False: + polling_method = cast(PollingMethod, NoPolling()) + else: + polling_method = polling + if cont_token: + return LROPoller[None].from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output, + ) + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore + + @distributed_trace + def list_skus(self, group_name: str, service_name: str, **kwargs: Any) -> ItemPaged["_models.AvailableServiceSku"]: + """Get compatible SKUs. + + The services resource is the top-level resource that represents the Database Migration Service + (classic). The skus action returns the list of SKUs that a service resource can be updated to. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :return: An iterator like instance of AvailableServiceSku + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.AvailableServiceSku] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.AvailableServiceSku]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_services_list_skus_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.AvailableServiceSku], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: _models.NameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def check_children_name_availability( + self, + group_name: str, + service_name: str, + parameters: Union[_models.NameAvailabilityRequest, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check nested resource name validity and availability. + + This method checks whether a proposed nested resource name is valid and available. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param parameters: Requested name to validate. Is one of the following types: + NameAvailabilityRequest, JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or JSON or IO[bytes] + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_check_children_name_availability_request( + group_name=group_name, + service_name=service_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def check_name_availability( + self, + location: str, + parameters: _models.NameAvailabilityRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_name_availability( + self, location: str, parameters: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def check_name_availability( + self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def check_name_availability( + self, location: str, parameters: Union[_models.NameAvailabilityRequest, JSON, IO[bytes]], **kwargs: Any + ) -> _models.NameAvailabilityResponse: + """Check name validity and availability. + + This method checks whether a proposed top-level resource name is valid and available. + + :param location: The location name. Required. + :type location: str + :param parameters: The request body. Is one of the following types: NameAvailabilityRequest, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or JSON or IO[bytes] + :return: NameAvailabilityResponse. The NameAvailabilityResponse is compatible with + MutableMapping + :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_services_check_name_availability_request( + location=location, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.NameAvailabilityResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class TasksOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`tasks` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + *, + expand: Optional[str] = None, + **kwargs: Any + ) -> _models.ProjectTask: + """Get task information. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The GET method retrieves information about a task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword expand: Expand the response. Default value is None. + :paramtype expand: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_tasks_get_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + expand=expand, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PUT method creates a new task or updates an existing one, although + since tasks have no mutable custom properties, there is little reason to update an existing + one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_tasks_create_or_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: _models.ProjectTask, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: Union[_models.ProjectTask, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectTask: + """Create or update task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable + custom properties, there is little reason to do so. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Information about the task. Is one of the following types: ProjectTask, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or JSON or IO[bytes] + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_tasks_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + *, + delete_running_tasks: Optional[bool] = None, + **kwargs: Any + ) -> None: + """Delete task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. The DELETE method deletes a task, canceling it first if it's running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :keyword delete_running_tasks: Delete the resource even if it contains running tasks. Default + value is None. + :paramtype delete_running_tasks: bool + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_tasks_delete_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + delete_running_tasks=delete_running_tasks, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, group_name: str, service_name: str, project_name: str, *, task_type: Optional[str] = None, **kwargs: Any + ) -> ItemPaged["_models.ProjectTask"]: + """Get tasks in a service. + + The services resource is the top-level resource that represents the Azure Database Migration + Service (classic). This method returns a list of tasks owned by a service resource. Some tasks + may have a status of Unknown, which indicates that an error occurred while querying the status + of that task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :keyword task_type: Filter tasks by task type. Default value is None. + :paramtype task_type: str + :return: An iterator like instance of ProjectTask + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ProjectTask] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ProjectTask]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_tasks_list_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + task_type=task_type, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ProjectTask], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def cancel( + self, group_name: str, service_name: str, project_name: str, task_name: str, **kwargs: Any + ) -> _models.ProjectTask: + """Cancel a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method cancels a task if it's currently queued or running. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :return: ProjectTask. The ProjectTask is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectTask + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) + + _request = build_tasks_cancel_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectTask, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: _models.CommandProperties, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Required. + :type parameters: ~azure.mgmt.datamigration.models.CommandProperties + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def command( + self, + group_name: str, + service_name: str, + project_name: str, + task_name: str, + parameters: Union[_models.CommandProperties, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.CommandProperties: + """Execute a command on a task. + + The tasks resource is a nested, proxy-only resource representing work performed by a DMS + (classic) instance. This method executes a command on a running task. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param task_name: Name of the Task. Required. + :type task_name: str + :param parameters: Command to execute. Is one of the following types: CommandProperties, JSON, + IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.CommandProperties or JSON or IO[bytes] + :return: CommandProperties. The CommandProperties is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.CommandProperties + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.CommandProperties] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_tasks_command_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + task_name=task_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.CommandProperties, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class FilesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`files` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def get( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> _models.ProjectFile: + """Get file information. + + The files resource is a nested, proxy-only resource representing a file stored under the + project resource. This method retrieves information about a file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) + + _request = build_files_get_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectFile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: _models.ProjectFile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def create_or_update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: Union[_models.ProjectFile, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectFile: + """Create a file resource. + + The PUT method creates a new file or updates an existing one. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Is one of the following types: ProjectFile, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or JSON or IO[bytes] + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_files_create_or_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectFile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: _models.ProjectFile, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: JSON, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Required. + :type parameters: IO[bytes] + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def update( + self, + group_name: str, + service_name: str, + project_name: str, + file_name: str, + parameters: Union[_models.ProjectFile, JSON, IO[bytes]], + **kwargs: Any + ) -> _models.ProjectFile: + """Update a file. + + This method updates an existing file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :param parameters: Information about the file. Is one of the following types: ProjectFile, + JSON, IO[bytes] Required. + :type parameters: ~azure.mgmt.datamigration.models.ProjectFile or JSON or IO[bytes] + :return: ProjectFile. The ProjectFile is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.ProjectFile + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.ProjectFile] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(parameters, (IOBase, bytes)): + _content = parameters + else: + _content = json.dumps(parameters, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_files_update_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + content_type=content_type, + api_version=self._config.api_version, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.ProjectFile, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> None: + """Delete file. + + This method deletes a file. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[None] = kwargs.pop("cls", None) + + _request = build_files_delete_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) # type: ignore + + @distributed_trace + def list( + self, group_name: str, service_name: str, project_name: str, **kwargs: Any + ) -> ItemPaged["_models.ProjectFile"]: + """Get files in a project. + + The project resource is a nested resource representing a stored migration project. This method + returns a list of files owned by a project resource. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :return: An iterator like instance of ProjectFile + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ProjectFile] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ProjectFile]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_files_list_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ProjectFile], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @distributed_trace + def read( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> _models.FileStorageInfo: + """Request storage information for downloading the file content. + + This method is used for requesting storage information using which contents of the file can be + downloaded. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: FileStorageInfo. The FileStorageInfo is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) + + _request = build_files_read_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FileStorageInfo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + @distributed_trace + def read_write( + self, group_name: str, service_name: str, project_name: str, file_name: str, **kwargs: Any + ) -> _models.FileStorageInfo: + """Request information for reading and writing file content. + + This method is used for requesting information for reading and writing the file content. + + :param group_name: Name of the resource group. Required. + :type group_name: str + :param service_name: Name of the service. Required. + :type service_name: str + :param project_name: Name of the project. Required. + :type project_name: str + :param file_name: Name of the File. Required. + :type file_name: str + :return: FileStorageInfo. The FileStorageInfo is compatible with MutableMapping + :rtype: ~azure.mgmt.datamigration.models.FileStorageInfo + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[_models.FileStorageInfo] = kwargs.pop("cls", None) + + _request = build_files_read_write_request( + group_name=group_name, + service_name=service_name, + project_name=project_name, + file_name=file_name, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + _decompress = kwargs.pop("decompress", True) + _stream = kwargs.pop("stream", False) + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + try: + response.read() # Load the body in memory and close the socket + except (StreamConsumedError, StreamClosedError): + pass + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if _stream: + deserialized = response.iter_bytes() if _decompress else response.iter_raw() + else: + deserialized = _deserialize(_models.FileStorageInfo, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + + +class ResourceSkusOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`resource_skus` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") + self._config: DataMigrationManagementClientConfiguration = ( + input_args.pop(0) if input_args else kwargs.pop("config") + ) + self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @distributed_trace + def list_skus(self, **kwargs: Any) -> ItemPaged["_models.ResourceSku"]: + """Get supported SKUs. + + The skus action returns the list of SKUs that DMS (classic) supports. + + :return: An iterator like instance of ResourceSku + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ResourceSku] + :raises ~azure.core.exceptions.HttpResponseError: + """ + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls: ClsType[List[_models.ResourceSku]] = kwargs.pop("cls", None) + + error_map: MutableMapping = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + def prepare_request(next_link=None): + if not next_link: + + _request = build_resource_skus_list_skus_request( + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + else: + # make call to next link with the client's api-version + _parsed_next_link = urllib.parse.urlparse(next_link) + _next_request_params = case_insensitive_dict( + { + key: [urllib.parse.quote(v) for v in value] + for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() + } + ) + _next_request_params["api-version"] = self._config.api_version + _request = HttpRequest( + "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params + ) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + + return _request + + def extract_data(pipeline_response): + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.ResourceSku], + deserialized.get("value", []), + ) + if cls: + list_of_elem = cls(list_of_elem) # type: ignore + return deserialized.get("nextLink") or None, iter(list_of_elem) + + def get_next(next_link=None): + _request = prepare_request(next_link) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + _request, stream=_stream, **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + +class UsagesOperations: """ + .. warning:: + **DO NOT** instantiate this class directly. - models = _models + Instead, you should access the following operations through + :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s + :attr:`usages` attribute. + """ def __init__(self, *args, **kwargs) -> None: input_args = list(args) @@ -78,19 +14175,22 @@ def __init__(self, *args, **kwargs) -> None: self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.OperationsDefinition"]: - """Lists all of the available SQL Migration REST API operations. + def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.Quota"]: + """Get resource quotas and usage information. - :return: An iterator like instance of either OperationsDefinition or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.OperationsDefinition] + This method returns region-specific quotas and resource usage information for the Azure + Database Migration Service (classic). + + :param location: The location name. Required. + :type location: str + :return: An iterator like instance of Quota + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.Quota] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + _params = kwargs.pop("params", {}) or {} - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) + cls: ClsType[List[_models.Quota]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -103,12 +14203,19 @@ def list(self, **kwargs: Any) -> ItemPaged["_models.OperationsDefinition"]: def prepare_request(next_link=None): if not next_link: - _request = build_list_request( - api_version=api_version, + _request = build_usages_list_request( + location=location, + subscription_id=self._config.subscription_id, + api_version=self._config.api_version, headers=_headers, params=_params, ) - _request.url = self._client.format_url(_request.url) + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) else: # make call to next link with the client's api-version @@ -123,16 +14230,24 @@ def prepare_request(next_link=None): _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" + path_format_arguments = { + "endpoint": self._serialize.url( + "self._config.base_url", self._config.base_url, "str", skip_quote=True + ), + } + _request.url = self._client.format_url(_request.url, **path_format_arguments) + return _request def extract_data(pipeline_response): - deserialized = self._deserialize("OperationListResult", pipeline_response) - list_of_elem = deserialized.value + deserialized = pipeline_response.http_response.json() + list_of_elem = _deserialize( + List[_models.Quota], + deserialized.get("value", []), + ) if cls: list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) + return deserialized.get("nextLink") or None, iter(list_of_elem) def get_next(next_link=None): _request = prepare_request(next_link) @@ -145,7 +14260,11 @@ def get_next(next_link=None): if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) + error = _failsafe_deserialize( + _models.ApiError, + response, + ) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_patch.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_patch.py index f7dd32510333..87676c65a8f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_patch.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_patch.py @@ -1,14 +1,15 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------- """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ -from typing import List -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +__all__: list[str] = [] # Add all objects you want publicly available to users at this package level def patch_sdk(): diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py deleted file mode 100644 index 3d2ede5a2057..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_projects_operations.py +++ /dev/null @@ -1,754 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - group_name: str, - service_name: str, - project_name: str, - subscription_id: str, - *, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if delete_running_tasks is not None: - _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - group_name: str, service_name: str, project_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class ProjectsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`projects` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, group_name: str, service_name: str, **kwargs: Any) -> ItemPaged["_models.Project"]: - """Get projects in a service. - - The project resource is a nested resource representing a stored migration project. This method - returns a list of projects owned by a service resource. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An iterator like instance of either Project or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.Project] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ProjectList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: _models.Project, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Create or update project. - - The project resource is a nested resource representing a stored migration project. The PUT - method creates a new project or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: ~azure.mgmt.datamigration.models.Project - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Create or update project. - - The project resource is a nested resource representing a stored migration project. The PUT - method creates a new project or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: Union[_models.Project, IO[bytes]], - **kwargs: Any - ) -> _models.Project: - """Create or update project. - - The project resource is a nested resource representing a stored migration project. The PUT - method creates a new project or updates an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Is either a Project type or a IO[bytes] type. - Required. - :type parameters: ~azure.mgmt.datamigration.models.Project or IO[bytes] - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Project] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "Project") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Project", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, group_name: str, service_name: str, project_name: str, **kwargs: Any) -> _models.Project: - """Get project information. - - The project resource is a nested resource representing a stored migration project. The GET - method retrieves information about a project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.Project] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Project", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, - group_name: str, - service_name: str, - project_name: str, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Delete project. - - The project resource is a nested resource representing a stored migration project. The DELETE - method deletes a project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: _models.Project, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Update project. - - The project resource is a nested resource representing a stored migration project. The PATCH - method updates an existing project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: ~azure.mgmt.datamigration.models.Project - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Project: - """Update project. - - The project resource is a nested resource representing a stored migration project. The PATCH - method updates an existing project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - group_name: str, - service_name: str, - project_name: str, - parameters: Union[_models.Project, IO[bytes]], - **kwargs: Any - ) -> _models.Project: - """Update project. - - The project resource is a nested resource representing a stored migration project. The PATCH - method updates an existing project. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param parameters: Information about the project. Is either a Project type or a IO[bytes] type. - Required. - :type parameters: ~azure.mgmt.datamigration.models.Project or IO[bytes] - :return: Project or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.Project - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Project] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "Project") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Project", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py deleted file mode 100644 index 65681f63da26..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_resource_skus_operations.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_skus_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ResourceSkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`resource_skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list_skus(self, **kwargs: Any) -> ItemPaged["_models.ResourceSku"]: - """Get supported SKUs. - - The skus action returns the list of SKUs that DMS (classic) supports. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ResourceSkusResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_skus_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkusResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py deleted file mode 100644 index c4eb5d858e9d..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_service_tasks_operations.py +++ /dev/null @@ -1,884 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - group_name: str, service_name: str, subscription_id: str, *, task_type: Optional[str] = None, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if task_type is not None: - _params["taskType"] = _SERIALIZER.query("task_type", task_type, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - group_name: str, service_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - group_name: str, - service_name: str, - task_name: str, - subscription_id: str, - *, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - group_name: str, - service_name: str, - task_name: str, - subscription_id: str, - *, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if delete_running_tasks is not None: - _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - group_name: str, service_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cancel_request( - group_name: str, service_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/serviceTasks/{taskName}/cancel", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceTasksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`service_tasks` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, group_name: str, service_name: str, task_type: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.ProjectTask"]: - """Get service level tasks for a service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of service level tasks owned by a service - resource. Some tasks may have a status of Unknown, which indicates that an error occurred while - querying the status of that task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_type: Filter tasks by task type. Default value is None. - :type task_type: str - :return: An iterator like instance of either ProjectTask or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ProjectTask] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TaskList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - task_type=task_type, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("TaskList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PUT method creates a new service task or updates an existing one, - although since service tasks have no mutable custom properties, there is little reason to - update an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PUT method creates a new service task or updates an existing one, - although since service tasks have no mutable custom properties, there is little reason to - update an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PUT method creates a new service task or updates an existing one, - although since service tasks have no mutable custom properties, there is little reason to - update an existing one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, group_name: str, service_name: str, task_name: str, expand: Optional[str] = None, **kwargs: Any - ) -> _models.ProjectTask: - """Get service task information. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The GET method retrieves information about a service task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param expand: Expand the response. Default value is None. - :type expand: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, - group_name: str, - service_name: str, - task_name: str, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Delete service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The DELETE method deletes a service task, canceling it first if it's - running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PATCH method updates an existing service task, but since service - tasks have no mutable custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PATCH method updates an existing service task, but since service - tasks have no mutable custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - group_name: str, - service_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. The PATCH method updates an existing service task, but since service - tasks have no mutable custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def cancel(self, group_name: str, service_name: str, task_name: str, **kwargs: Any) -> _models.ProjectTask: - """Cancel a service task. - - The service tasks resource is a nested, proxy-only resource representing work performed by a - DMS (classic) instance. This method cancels a service task if it's currently queued or running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_cancel_request( - group_name=group_name, - service_name=service_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py deleted file mode 100644 index 93c551694017..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_services_operations.py +++ /dev/null @@ -1,1826 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_create_or_update_request( - group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - group_name: str, - service_name: str, - subscription_id: str, - *, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if delete_running_tasks is not None: - _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_status_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkStatus", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/start", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_skus_request(group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/skus", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_children_name_availability_request( # pylint: disable=name-too-long - group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/checkNameAvailability", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/checkNameAvailability", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - def _create_or_update_initial( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DataMigrationService") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - group_name: str, - service_name: str, - parameters: _models.DataMigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PUT method creates a new service or updates an existing one. When a - service is updated, existing child resources (i.e. tasks) are unaffected. Services currently - support a single kind, "vm", which refers to a VM-based service, although other kinds may be - added in the future. This method can change the kind, SKU, and network of the service, but if - tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request - ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. - Long-running operations use the provisioningState property. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - group_name: str, - service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PUT method creates a new service or updates an existing one. When a - service is updated, existing child resources (i.e. tasks) are unaffected. Services currently - support a single kind, "vm", which refers to a VM-based service, although other kinds may be - added in the future. This method can change the kind, SKU, and network of the service, but if - tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request - ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. - Long-running operations use the provisioningState property. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PUT method creates a new service or updates an existing one. When a - service is updated, existing child resources (i.e. tasks) are unaffected. Services currently - support a single kind, "vm", which refers to a VM-based service, although other kinds may be - added in the future. This method can change the kind, SKU, and network of the service, but if - tasks are currently running (i.e. the service is busy), this will fail with 400 Bad Request - ("ServiceIsBusy"). The provider will reply when successful with 200 OK or 201 Created. - Long-running operations use the provisioningState property. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Is either a DataMigrationService type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or IO[bytes] - :return: An instance of LROPoller that returns either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - group_name=group_name, - service_name=service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DataMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DataMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get(self, group_name: str, service_name: str, **kwargs: Any) -> _models.DataMigrationService: - """Get DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The GET method retrieves information about a service instance. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: DataMigrationService or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DataMigrationService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_initial( - self, group_name: str, service_name: str, delete_running_tasks: Optional[bool] = None, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete( - self, group_name: str, service_name: str, delete_running_tasks: Optional[bool] = None, **kwargs: Any - ) -> LROPoller[None]: - """Delete DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The DELETE method deletes a service. Any running tasks will be canceled. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - group_name=group_name, - service_name=service_name, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DataMigrationService") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - group_name: str, - service_name: str, - parameters: _models.DataMigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PATCH method updates an existing service. This method can change the - kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is - busy), this will fail with 400 Bad Request ("ServiceIsBusy"). - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - group_name: str, - service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PATCH method updates an existing service. This method can change the - kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is - busy), this will fail with 400 Bad Request ("ServiceIsBusy"). - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - group_name: str, - service_name: str, - parameters: Union[_models.DataMigrationService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DataMigrationService]: - """Create or update DMS (classic) Service Instance. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). The PATCH method updates an existing service. This method can change the - kind, SKU, and network of the service, but if tasks are currently running (i.e. the service is - busy), this will fail with 400 Bad Request ("ServiceIsBusy"). - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Information about the service. Is either a DataMigrationService type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DataMigrationService or IO[bytes] - :return: An instance of LROPoller that returns either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DataMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - group_name=group_name, - service_name=service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DataMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DataMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DataMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def check_status( - self, group_name: str, service_name: str, **kwargs: Any - ) -> _models.DataMigrationServiceStatusResponse: - """Check service health status. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This action performs a health check and returns the status of the service - and virtual machine size. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: DataMigrationServiceStatusResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DataMigrationServiceStatusResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationServiceStatusResponse] = kwargs.pop("cls", None) - - _request = build_check_status_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DataMigrationServiceStatusResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _start_initial(self, group_name: str, service_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_start_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_start(self, group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This action starts the service and the service can be used for data - migration. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( - group_name=group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial(self, group_name: str, service_name: str, **kwargs: Any) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_stop_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_stop(self, group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This action stops the service and the service cannot be used for data - migration. The service owner won't be billed when the service is stopped. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( - group_name=group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_skus(self, group_name: str, service_name: str, **kwargs: Any) -> ItemPaged["_models.AvailableServiceSku"]: - """Get compatible SKUs. - - The services resource is the top-level resource that represents the Database Migration Service - (classic). The skus action returns the list of SKUs that a service resource can be updated to. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :return: An iterator like instance of either AvailableServiceSku or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.AvailableServiceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ServiceSkuList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_skus_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceSkuList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def check_children_name_availability( - self, - group_name: str, - service_name: str, - parameters: _models.NameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check nested resource name validity and availability. - - This method checks whether a proposed nested resource name is valid and available. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Requested name to validate. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_children_name_availability( - self, - group_name: str, - service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check nested resource name validity and availability. - - This method checks whether a proposed nested resource name is valid and available. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Requested name to validate. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_children_name_availability( - self, - group_name: str, - service_name: str, - parameters: Union[_models.NameAvailabilityRequest, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check nested resource name validity and availability. - - This method checks whether a proposed nested resource name is valid and available. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param parameters: Requested name to validate. Is either a NameAvailabilityRequest type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or IO[bytes] - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "NameAvailabilityRequest") - - _request = build_check_children_name_availability_request( - group_name=group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_resource_group(self, group_name: str, **kwargs: Any) -> ItemPaged["_models.DataMigrationService"]: - """Get services in resource group. - - The Services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of service resources in a resource group. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :return: An iterator like instance of either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationServiceList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - group_name=group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DataMigrationServiceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, **kwargs: Any) -> ItemPaged["_models.DataMigrationService"]: - """Get services in subscription. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of service resources in a subscription. - - :return: An iterator like instance of either DataMigrationService or the result of - cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DataMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DataMigrationServiceList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DataMigrationServiceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def check_name_availability( - self, - location: str, - parameters: _models.NameAvailabilityRequest, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check name validity and availability. - - This method checks whether a proposed top-level resource name is valid and available. - - :param location: The Azure region of the operation. Required. - :type location: str - :param parameters: Requested name to validate. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, location: str, parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check name validity and availability. - - This method checks whether a proposed top-level resource name is valid and available. - - :param location: The Azure region of the operation. Required. - :type location: str - :param parameters: Requested name to validate. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, location: str, parameters: Union[_models.NameAvailabilityRequest, IO[bytes]], **kwargs: Any - ) -> _models.NameAvailabilityResponse: - """Check name validity and availability. - - This method checks whether a proposed top-level resource name is valid and available. - - :param location: The Azure region of the operation. Required. - :type location: str - :param parameters: Requested name to validate. Is either a NameAvailabilityRequest type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.NameAvailabilityRequest or IO[bytes] - :return: NameAvailabilityResponse or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.NameAvailabilityResponse - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailabilityResponse] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "NameAvailabilityRequest") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailabilityResponse", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py deleted file mode 100644 index f07aa2a2dc0c..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_sql_migration_services_operations.py +++ /dev/null @@ -1,1560 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Iterator, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - StreamClosedError, - StreamConsumedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) - - -def build_update_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_resource_group_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_auth_keys_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_auth_keys_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_node_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_migrations_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_monitoring_data_request( - resource_group_name: str, sql_migration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData", - ) - path_format_arguments = { - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "sqlMigrationServiceName": _SERIALIZER.url("sql_migration_service_name", sql_migration_service_name, "str"), - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SqlMigrationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`sql_migration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def get( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> _models.SqlMigrationService: - """Retrieve the Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: SqlMigrationService or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.SqlMigrationService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SqlMigrationService", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationService, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "SqlMigrationService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.SqlMigrationService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SqlMigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SqlMigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.SqlMigrationService]: - """Create or Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a SqlMigrationService - type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationService or IO[bytes] - :return: An instance of LROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SqlMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.SqlMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.SqlMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any) -> LROPoller[None]: - """Delete Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> Iterator[bytes]: - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "SqlMigrationServiceUpdate") - - _request = build_update_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _decompress = kwargs.pop("decompress", True) - _stream = True - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - try: - response.read() # Load the body in memory and close the socket - except (StreamConsumedError, StreamClosedError): - pass - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = response.stream_download(self._client._pipeline, decompress=_decompress) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.SqlMigrationServiceUpdate, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SqlMigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.SqlMigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.SqlMigrationServiceUpdate, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.SqlMigrationService]: - """Update Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a - SqlMigrationServiceUpdate type or a IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.SqlMigrationServiceUpdate or IO[bytes] - :return: An instance of LROPoller that returns either SqlMigrationService or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.SqlMigrationService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - parameters=parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - raw_result.http_response.read() # type: ignore - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("SqlMigrationService", pipeline_response.http_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.SqlMigrationService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.SqlMigrationService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_by_resource_group( - self, resource_group_name: str, **kwargs: Any - ) -> ItemPaged["_models.SqlMigrationService"]: - """Retrieve all SQL migration services in the resource group. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either SqlMigrationService or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SqlMigrationListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_resource_group_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SqlMigrationListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_auth_keys( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> _models.AuthenticationKeys: - """Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: AuthenticationKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.AuthenticationKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.AuthenticationKeys] = kwargs.pop("cls", None) - - _request = build_list_auth_keys_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AuthenticationKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_auth_keys( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.RegenAuthKeys, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.RegenAuthKeys: - """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: RegenAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_auth_keys( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.RegenAuthKeys: - """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: RegenAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_auth_keys( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.RegenAuthKeys, IO[bytes]], - **kwargs: Any - ) -> _models.RegenAuthKeys: - """Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a RegenAuthKeys type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.RegenAuthKeys or IO[bytes] - :return: RegenAuthKeys or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.RegenAuthKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RegenAuthKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "RegenAuthKeys") - - _request = build_regenerate_auth_keys_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RegenAuthKeys", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def delete_node( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: _models.DeleteNode, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DeleteNode: - """Delete the integration runtime node. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: ~azure.mgmt.datamigration.models.DeleteNode - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: DeleteNode or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DeleteNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def delete_node( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.DeleteNode: - """Delete the integration runtime node. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: DeleteNode or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DeleteNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def delete_node( - self, - resource_group_name: str, - sql_migration_service_name: str, - parameters: Union[_models.DeleteNode, IO[bytes]], - **kwargs: Any - ) -> _models.DeleteNode: - """Delete the integration runtime node. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :param parameters: Details of SqlMigrationService resource. Is either a DeleteNode type or a - IO[bytes] type. Required. - :type parameters: ~azure.mgmt.datamigration.models.DeleteNode or IO[bytes] - :return: DeleteNode or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.DeleteNode - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeleteNode] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "DeleteNode") - - _request = build_delete_node_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeleteNode", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_migrations( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> ItemPaged["_models.DatabaseMigration"]: - """Retrieve the List of database migrations attached to the service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: An iterator like instance of either DatabaseMigration or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.DatabaseMigration] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.DatabaseMigrationListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_migrations_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DatabaseMigrationListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_monitoring_data( - self, resource_group_name: str, sql_migration_service_name: str, **kwargs: Any - ) -> _models.IntegrationRuntimeMonitoringData: - """Retrieve the registered Integration Runtime nodes and their monitoring data for a given - Database Migration Service. - - :param resource_group_name: Name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param sql_migration_service_name: Name of the SQL Migration Service. Required. - :type sql_migration_service_name: str - :return: IntegrationRuntimeMonitoringData or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.IntegrationRuntimeMonitoringData - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) - - _request = build_list_monitoring_data_request( - resource_group_name=resource_group_name, - sql_migration_service_name=sql_migration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("IntegrationRuntimeMonitoringData", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.SqlMigrationService"]: - """Retrieve all SQL migration services in the subscriptions. - - :return: An iterator like instance of either SqlMigrationService or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.SqlMigrationService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.SqlMigrationListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SqlMigrationListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py deleted file mode 100644 index 3fc69c5c90f6..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_tasks_operations.py +++ /dev/null @@ -1,1134 +0,0 @@ -# pylint: disable=line-too-long,useless-suppression,too-many-lines -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from io import IOBase -from typing import Any, Callable, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - group_name: str, - service_name: str, - project_name: str, - subscription_id: str, - *, - task_type: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if task_type is not None: - _params["taskType"] = _SERIALIZER.query("task_type", task_type, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - group_name: str, - service_name: str, - project_name: str, - task_name: str, - subscription_id: str, - *, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - group_name: str, - service_name: str, - project_name: str, - task_name: str, - subscription_id: str, - *, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if delete_running_tasks is not None: - _params["deleteRunningTasks"] = _SERIALIZER.query("delete_running_tasks", delete_running_tasks, "bool") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_cancel_request( - group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_command_request( - group_name: str, service_name: str, project_name: str, task_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command", - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "groupName": _SERIALIZER.url("group_name", group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "projectName": _SERIALIZER.url("project_name", project_name, "str"), - "taskName": _SERIALIZER.url("task_name", task_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class TasksOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`tasks` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list( - self, group_name: str, service_name: str, project_name: str, task_type: Optional[str] = None, **kwargs: Any - ) -> ItemPaged["_models.ProjectTask"]: - """Get tasks in a service. - - The services resource is the top-level resource that represents the Azure Database Migration - Service (classic). This method returns a list of tasks owned by a service resource. Some tasks - may have a status of Unknown, which indicates that an error occurred while querying the status - of that task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_type: Filter tasks by task type. Default value is None. - :type task_type: str - :return: An iterator like instance of either ProjectTask or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.ProjectTask] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.TaskList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - subscription_id=self._config.subscription_id, - task_type=task_type, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("TaskList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PUT method creates a new task or updates an existing one, although - since tasks have no mutable custom properties, there is little reason to update an existing - one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PUT method creates a new task or updates an existing one, although - since tasks have no mutable custom properties, there is little reason to update an existing - one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PUT method creates a new task or updates an existing one, although - since tasks have no mutable custom properties, there is little reason to update an existing - one. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_create_or_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - expand: Optional[str] = None, - **kwargs: Any - ) -> _models.ProjectTask: - """Get task information. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The GET method retrieves information about a task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param expand: Expand the response. Default value is None. - :type expand: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_get_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def delete( # pylint: disable=inconsistent-return-statements - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - delete_running_tasks: Optional[bool] = None, - **kwargs: Any - ) -> None: - """Delete task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The DELETE method deletes a task, canceling it first if it's running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param delete_running_tasks: Delete the resource even if it contains running tasks. Default - value is None. - :type delete_running_tasks: bool - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - delete_running_tasks=delete_running_tasks, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: _models.ProjectTask, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable - custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable - custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def update( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: Union[_models.ProjectTask, IO[bytes]], - **kwargs: Any - ) -> _models.ProjectTask: - """Create or update task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. The PATCH method updates an existing task, but since tasks have no mutable - custom properties, there is little reason to do so. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Information about the task. Is either a ProjectTask type or a IO[bytes] - type. Required. - :type parameters: ~azure.mgmt.datamigration.models.ProjectTask or IO[bytes] - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "ProjectTask") - - _request = build_update_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def cancel( - self, group_name: str, service_name: str, project_name: str, task_name: str, **kwargs: Any - ) -> _models.ProjectTask: - """Cancel a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method cancels a task if it's currently queued or running. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :return: ProjectTask or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.ProjectTask - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.ProjectTask] = kwargs.pop("cls", None) - - _request = build_cancel_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ProjectTask", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def command( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: _models.CommandProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CommandProperties: - """Execute a command on a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method executes a command on a running task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Command to execute. Required. - :type parameters: ~azure.mgmt.datamigration.models.CommandProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CommandProperties or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.CommandProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def command( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CommandProperties: - """Execute a command on a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method executes a command on a running task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Command to execute. Required. - :type parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CommandProperties or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.CommandProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def command( - self, - group_name: str, - service_name: str, - project_name: str, - task_name: str, - parameters: Union[_models.CommandProperties, IO[bytes]], - **kwargs: Any - ) -> _models.CommandProperties: - """Execute a command on a task. - - The tasks resource is a nested, proxy-only resource representing work performed by a DMS - (classic) instance. This method executes a command on a running task. - - :param group_name: Name of the resource group. Required. - :type group_name: str - :param service_name: Name of the service. Required. - :type service_name: str - :param project_name: Name of the project. Required. - :type project_name: str - :param task_name: Name of the Task. Required. - :type task_name: str - :param parameters: Command to execute. Is either a CommandProperties type or a IO[bytes] type. - Required. - :type parameters: ~azure.mgmt.datamigration.models.CommandProperties or IO[bytes] - :return: CommandProperties or the result of cls(response) - :rtype: ~azure.mgmt.datamigration.models.CommandProperties - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CommandProperties] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(parameters, (IOBase, bytes)): - _content = parameters - else: - _json = self._serialize.body(parameters, "CommandProperties") - - _request = build_command_request( - group_name=group_name, - service_name=service_name, - project_name=project_name, - task_name=task_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CommandProperties", pipeline_response.http_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py deleted file mode 100644 index 430fcdf3b01b..000000000000 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/operations/_usages_operations.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from collections.abc import MutableMapping -from typing import Any, Callable, Optional, TypeVar -import urllib.parse - -from azure.core import PipelineClient -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._configuration import DataMigrationManagementClientConfiguration -from .._utils.serialization import Deserializer, Serializer - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] -List = list - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages" - ) - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class UsagesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.datamigration.DataMigrationManagementClient`'s - :attr:`usages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client") - self._config: DataMigrationManagementClientConfiguration = ( - input_args.pop(0) if input_args else kwargs.pop("config") - ) - self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, location: str, **kwargs: Any) -> ItemPaged["_models.Quota"]: - """Get resource quotas and usage information. - - This method returns region-specific quotas and resource usage information for the Azure - Database Migration Service (classic). - - :param location: The Azure region of the operation. Required. - :type location: str - :return: An iterator like instance of either Quota or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datamigration.models.Quota] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.QuotaList] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("QuotaList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize( - _models.ApiError, - pipeline_response, - ) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/datamigration/azure-mgmt-datamigration/code_report_typespec.json b/sdk/datamigration/azure-mgmt-datamigration/code_report_typespec.json new file mode 100644 index 000000000000..43ebc028e893 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/code_report_typespec.json @@ -0,0 +1,84482 @@ +{ + "azure.mgmt.datamigration": { + "class_nodes": { + "DataMigrationManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "operations": { + "attr_type": "Operations" + }, + "database_migrations_mongo_to_cosmos_dbv_core_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations" + }, + "migration_services": { + "attr_type": "MigrationServicesOperations" + }, + "sql_migration_services": { + "attr_type": "SqlMigrationServicesOperations" + }, + "service_tasks": { + "attr_type": "ServiceTasksOperations" + }, + "projects": { + "attr_type": "ProjectsOperations" + }, + "database_migrations_mongo_to_cosmos_db_ru_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbRUMongoOperations" + }, + "database_migrations_sql_db": { + "attr_type": "DatabaseMigrationsSqlDbOperations" + }, + "database_migrations_sql_mi": { + "attr_type": "DatabaseMigrationsSqlMiOperations" + }, + "database_migrations_sql_vm": { + "attr_type": "DatabaseMigrationsSqlVmOperations" + }, + "services": { + "attr_type": "ServicesOperations" + }, + "tasks": { + "attr_type": "TasksOperations" + }, + "files": { + "attr_type": "FilesOperations" + }, + "resource_skus": { + "attr_type": "ResourceSkusOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.operations": { + "class_nodes": { + "DatabaseMigrationsMongoToCosmosDbRUMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlDbOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlDb", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_retry": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlMiOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlMi", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlVmOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlVm", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "FilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "read": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "read_write": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "MigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ProjectsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ResourceSkusOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ServiceTasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_children_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "check_status": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SqlMigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete_node": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DeleteNode", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_monitoring_data": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "regenerate_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "RegenAuthKeys", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "TasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "CommandProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.models": { + "class_nodes": { + "ApiError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "type": "Optional[_models.ODataError]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "system_data": "Optional" + } + }, + "AuthType": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCOUNT_KEY": "ACCOUNT_KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AuthenticationKeys": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_key1": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "auth_key2": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "auth_key1": "Optional", + "auth_key2": "Optional" + } + }, + "AuthenticationType": { + "type": "Enum", + "methods": {}, + "properties": { + "ACTIVE_DIRECTORY_INTEGRATED": "ACTIVE_DIRECTORY_INTEGRATED", + "ACTIVE_DIRECTORY_PASSWORD": "ACTIVE_DIRECTORY_PASSWORD", + "NONE": "NONE", + "SQL_AUTHENTICATION": "SQL_AUTHENTICATION", + "WINDOWS_AUTHENTICATION": "WINDOWS_AUTHENTICATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "AvailableServiceSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "type": "Optional[_models.AvailableServiceSkuSku]", + "default": null, + "param_type": "keyword_only" + }, + "capacity": { + "type": "Optional[_models.AvailableServiceSkuCapacity]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": "Optional", + "sku": "Optional", + "capacity": "Optional" + } + }, + "AvailableServiceSkuCapacity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "minimum": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "maximum": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "default": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "scale_type": { + "type": "Optional[Union[str, _models.ServiceScalability]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum": "Optional", + "maximum": "Optional", + "default": "Optional", + "scale_type": "Optional" + } + }, + "AvailableServiceSkuSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "family": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "size": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tier": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "family": "Optional", + "size": "Optional", + "tier": "Optional" + } + }, + "AzureActiveDirectoryApp": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "application_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "app_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tenant_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "ignore_azure_permissions": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "application_id": "Optional", + "app_key": "Optional", + "tenant_id": "Optional", + "ignore_azure_permissions": "Optional" + } + }, + "AzureBlob": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "auth_type": { + "type": "Optional[Union[str, _models.AuthType]]", + "default": null, + "param_type": "keyword_only" + }, + "identity": { + "type": "Optional[_models.ManagedServiceIdentity]", + "default": null, + "param_type": "keyword_only" + }, + "storage_account_resource_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "account_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "blob_container_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "auth_type": "Optional", + "identity": "Optional", + "storage_account_resource_id": "Optional", + "account_key": "Optional", + "blob_container_name": "Optional" + } + }, + "BackupConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_location": { + "type": "Optional[_models.SourceLocation]", + "default": null, + "param_type": "keyword_only" + }, + "target_location": { + "type": "Optional[_models.TargetLocation]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_location": "Optional", + "target_location": "Optional" + } + }, + "BackupFileInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "file_location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "family_sequence_number": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "status": { + "type": "Optional[Union[str, _models.BackupFileStatus]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_location": "Optional", + "family_sequence_number": "Optional", + "status": "Optional" + } + }, + "BackupFileStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "ARRIVED": "ARRIVED", + "CANCELLED": "CANCELLED", + "QUEUED": "QUEUED", + "RESTORED": "RESTORED", + "RESTORING": "RESTORING", + "UPLOADED": "UPLOADED", + "UPLOADING": "UPLOADING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BackupMode": { + "type": "Enum", + "methods": {}, + "properties": { + "CREATE_BACKUP": "CREATE_BACKUP", + "EXISTING_BACKUP": "EXISTING_BACKUP", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BackupSetInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "backup_set_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "first_lsn": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "last_lsn": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "backup_type": { + "type": "Optional[Union[str, _models.BackupType]]", + "default": null, + "param_type": "keyword_only" + }, + "list_of_backup_files": { + "type": "Optional[list[_models.BackupFileInfo]]", + "default": null, + "param_type": "keyword_only" + }, + "database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "backup_start_date": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "backup_finished_date": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "is_backup_restored": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "backup_set_id": "Optional", + "first_lsn": "Optional", + "last_lsn": "Optional", + "last_modified_time": "Optional", + "backup_type": "Optional", + "list_of_backup_files": "Optional", + "database_name": "Optional", + "backup_start_date": "Optional", + "backup_finished_date": "Optional", + "is_backup_restored": "Optional" + } + }, + "BackupType": { + "type": "Enum", + "methods": {}, + "properties": { + "DATABASE": "DATABASE", + "DIFFERENTIAL_DATABASE": "DIFFERENTIAL_DATABASE", + "DIFFERENTIAL_FILE": "DIFFERENTIAL_FILE", + "DIFFERENTIAL_PARTIAL": "DIFFERENTIAL_PARTIAL", + "FILE": "FILE", + "PARTIAL": "PARTIAL", + "TRANSACTION_LOG": "TRANSACTION_LOG", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "BlobShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "sas_uri": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "sas_uri": "Optional" + } + }, + "CheckOCIDriverTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server_version": "Optional" + } + }, + "CheckOCIDriverTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "installed_driver": { + "type": "Optional[_models.OracleOCIDriverInfo]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "installed_driver": "Optional", + "validation_errors": "Optional" + } + }, + "CheckOCIDriverTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.CheckOCIDriverTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "CommandProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_type": null, + "errors": "Optional", + "state": "Optional" + } + }, + "CommandState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "FAILED": "FAILED", + "RUNNING": "RUNNING", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "CommandType": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCEL": "CANCEL", + "FINISH": "FINISH", + "MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE": "MIGRATE_SQL_SERVER_AZURE_DB_SQL_MI_COMPLETE", + "MIGRATE_SYNC_COMPLETE_DATABASE": "MIGRATE_SYNC_COMPLETE_DATABASE", + "RESTART": "RESTART", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ConnectToMongoDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MongoDbConnectionInfo]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToSourceMySqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_platform": { + "type": "Optional[Union[str, _models.MySqlTargetPlatformType]]", + "default": null, + "param_type": "keyword_only" + }, + "check_permissions_group": { + "type": "Optional[Union[str, _models.ServerLevelPermissionsGroup]]", + "default": null, + "param_type": "keyword_only" + }, + "is_offline_migration": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_platform": "Optional", + "check_permissions_group": "Optional", + "is_offline_migration": "Optional" + } + }, + "ConnectToSourceMySqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToSourceMySqlTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToSourceNonSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "source_server_brand_version": "Optional", + "server_properties": "Optional", + "databases": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToSourceOracleSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.OracleConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null + } + }, + "ConnectToSourceOracleSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_server_version": "Optional", + "databases": "Optional", + "source_server_brand_version": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToSourceOracleSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToSourceOracleSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToSourcePostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null + } + }, + "ConnectToSourcePostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "source_server_version": "Optional", + "databases": "Optional", + "source_server_brand_version": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToSourcePostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToSourcePostgreSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToSourceSqlServerSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToSourceSqlServerTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToSourceSqlServerTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "check_permissions_group": { + "type": "Optional[Union[str, _models.ServerLevelPermissionsGroup]]", + "default": null, + "param_type": "keyword_only" + }, + "collect_databases": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "collect_logins": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "collect_agent_jobs": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "collect_tde_certificate_info": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "validate_ssis_catalog_only": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "check_permissions_group": "Optional", + "collect_databases": "Optional", + "collect_logins": "Optional", + "collect_agent_jobs": "Optional", + "collect_tde_certificate_info": "Optional", + "validate_ssis_catalog_only": "Optional", + "encrypted_key_for_secure_fields": "Optional" + } + }, + "ConnectToSourceSqlServerTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "ConnectToSourceSqlServerTaskOutputAgentJobLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "job_category": "Optional", + "is_enabled": "Optional", + "job_owner": "Optional", + "last_executed_on": "Optional", + "validation_errors": "Optional", + "migration_eligibility": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "ConnectToSourceSqlServerTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "size_mb": "Optional", + "database_files": "Optional", + "compatibility_level": "Optional", + "database_state": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "ConnectToSourceSqlServerTaskOutputLoginLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "login_type": "Optional", + "default_database": "Optional", + "is_enabled": "Optional", + "migration_eligibility": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "ConnectToSourceSqlServerTaskOutputTaskLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "databases": "Optional", + "logins": "Optional", + "agent_jobs": "Optional", + "database_tde_certificate_mapping": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "validation_errors": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "ConnectToSourceSqlServerTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToSourceSqlServerTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_id": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetAzureDbForMySqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "is_offline_migration": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null, + "is_offline_migration": "Optional" + } + }, + "ConnectToTargetAzureDbForMySqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "server_version": "Optional", + "databases": "Optional", + "target_server_brand_version": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToTargetAzureDbForMySqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetAzureDbForMySqlTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetAzureDbForPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null + } + }, + "ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "target_server_version": "Optional", + "databases": "Optional", + "target_server_brand_version": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": null + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "database_schema_map": { + "type": "Optional[list[_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_server_version": "Optional", + "databases": "Optional", + "target_server_brand_version": "Optional", + "validation_errors": "Optional", + "database_schema_map": "Optional" + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "database": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "schemas": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database": "Optional", + "schemas": "Optional" + } + }, + "ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetSqlDbSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null + } + }, + "ConnectToTargetSqlDbSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetSqlDbSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetSqlDbTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "query_object_counts": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": null, + "query_object_counts": "Optional" + } + }, + "ConnectToTargetSqlDbTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "databases": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional" + } + }, + "ConnectToTargetSqlDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetSqlDbTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "created_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "created_on": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "type": "_models.MiSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "type": "_models.AzureActiveDirectoryApp", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": null, + "azure_app": null + } + }, + "ConnectToTargetSqlMISyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToTargetSqlMISyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetSqlMISyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectToTargetSqlMITaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "collect_logins": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "collect_agent_jobs": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "validate_ssis_catalog_only": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "target_connection_info": null, + "collect_logins": "Optional", + "collect_agent_jobs": "Optional", + "validate_ssis_catalog_only": "Optional" + } + }, + "ConnectToTargetSqlMITaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "logins": "Optional", + "agent_jobs": "Optional", + "validation_errors": "Optional" + } + }, + "ConnectToTargetSqlMITaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ConnectToTargetSqlMITaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "CopyProgressDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": "Optional", + "status": "Optional", + "parallel_copy_type": "Optional", + "used_parallel_copies": "Optional", + "data_read": "Optional", + "data_written": "Optional", + "rows_read": "Optional", + "rows_copied": "Optional", + "copy_start": "Optional", + "copy_throughput": "Optional", + "copy_duration": "Optional" + } + }, + "CreatedByType": { + "type": "Enum", + "methods": {}, + "properties": { + "APPLICATION": "APPLICATION", + "KEY": "KEY", + "MANAGED_IDENTITY": "MANAGED_IDENTITY", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DataIntegrityValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "failed_objects": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "validation_errors": { + "type": "Optional[_models.ValidationError]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "failed_objects": "Optional", + "validation_errors": "Optional" + } + }, + "DataMigrationService": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DataMigrationServiceProperties]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "etag": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "kind": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sku": { + "type": "Optional[_models.ServiceSku]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": "Optional", + "etag": "Optional", + "kind": "Optional", + "sku": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DataMigrationServiceProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "public_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "virtual_subnet_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "virtual_nic_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "auto_stop_delay": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "delete_resources_on_stop": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "public_key": "Optional", + "virtual_subnet_id": "Optional", + "virtual_nic_id": "Optional", + "auto_stop_delay": "Optional", + "delete_resources_on_stop": "Optional" + } + }, + "DataMigrationServiceStatusResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "agent_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "agent_configuration": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "status": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "vm_size": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "supported_task_types": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "agent_version": "Optional", + "agent_configuration": "Optional", + "status": "Optional", + "vm_size": "Optional", + "supported_task_types": "Optional" + } + }, + "DatabaseBackupInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "backup_type": "Optional", + "backup_files": "Optional", + "position": "Optional", + "is_damaged": "Optional", + "is_compressed": "Optional", + "family_count": "Optional", + "backup_finish_date": "Optional" + } + }, + "DatabaseCompatLevel": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPAT_LEVEL100": "COMPAT_LEVEL100", + "COMPAT_LEVEL110": "COMPAT_LEVEL110", + "COMPAT_LEVEL120": "COMPAT_LEVEL120", + "COMPAT_LEVEL130": "COMPAT_LEVEL130", + "COMPAT_LEVEL140": "COMPAT_LEVEL140", + "COMPAT_LEVEL80": "COMPAT_LEVEL80", + "COMPAT_LEVEL90": "COMPAT_LEVEL90", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseFileInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "logical_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "physical_full_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "restore_full_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "file_type": { + "type": "Optional[Union[str, _models.DatabaseFileType]]", + "default": null, + "param_type": "keyword_only" + }, + "size_mb": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "id": "Optional", + "logical_name": "Optional", + "physical_full_name": "Optional", + "restore_full_name": "Optional", + "file_type": "Optional", + "size_mb": "Optional" + } + }, + "DatabaseFileType": { + "type": "Enum", + "methods": {}, + "properties": { + "FILESTREAM": "FILESTREAM", + "FULLTEXT": "FULLTEXT", + "LOG": "LOG", + "NOT_SUPPORTED": "NOT_SUPPORTED", + "ROWS": "ROWS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_database_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database_name": null + } + }, + "DatabaseMigration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DatabaseMigrationProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DatabaseMigrationBase": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DatabaseMigrationBaseProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DatabaseMigrationBaseProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": null, + "scope": "Optional", + "provisioning_state": "Optional", + "migration_status": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_service": "Optional", + "migration_operation_id": "Optional", + "migration_failure_error": "Optional", + "provisioning_error": "Optional" + } + }, + "DatabaseMigrationCosmosDbMongo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DatabaseMigrationPropertiesCosmosDbMongo]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DatabaseMigrationProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "kind": null, + "source_sql_connection": "Optional", + "source_database_name": "Optional", + "source_server_name": "Optional", + "target_database_collation": "Optional", + "sql_server_instance_id": "Optional", + "scope": "Optional", + "provisioning_state": "Optional", + "migration_status": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_service": "Optional", + "migration_operation_id": "Optional", + "migration_failure_error": "Optional", + "provisioning_error": "Optional" + } + }, + "DatabaseMigrationPropertiesCosmosDbMongo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_mongo_connection": { + "type": "Optional[_models.MongoConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "target_mongo_connection": { + "type": "Optional[_models.MongoConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "collection_list": { + "type": "Optional[list[_models.MongoMigrationCollection]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_mongo_connection": "Optional", + "target_mongo_connection": "Optional", + "collection_list": "Optional", + "kind": null, + "scope": "Optional", + "provisioning_state": "Optional", + "migration_status": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_service": "Optional", + "migration_operation_id": "Optional", + "migration_failure_error": "Optional", + "provisioning_error": "Optional" + } + }, + "DatabaseMigrationPropertiesSqlDb": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "table_list": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_status_details": "Optional", + "target_sql_connection": "Optional", + "offline_configuration": "Optional", + "table_list": "Optional", + "kind": null, + "source_sql_connection": "Optional", + "source_database_name": "Optional", + "source_server_name": "Optional", + "target_database_collation": "Optional", + "sql_server_instance_id": "Optional", + "scope": "Optional", + "provisioning_state": "Optional", + "migration_status": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_service": "Optional", + "migration_operation_id": "Optional", + "migration_failure_error": "Optional", + "provisioning_error": "Optional" + } + }, + "DatabaseMigrationPropertiesSqlMi": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "backup_configuration": { + "type": "Optional[_models.BackupConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "offline_configuration": { + "type": "Optional[_models.OfflineConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_status_details": "Optional", + "backup_configuration": "Optional", + "offline_configuration": "Optional", + "kind": null, + "source_sql_connection": "Optional", + "source_database_name": "Optional", + "source_server_name": "Optional", + "target_database_collation": "Optional", + "sql_server_instance_id": "Optional", + "scope": "Optional", + "provisioning_state": "Optional", + "migration_status": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_service": "Optional", + "migration_operation_id": "Optional", + "migration_failure_error": "Optional", + "provisioning_error": "Optional" + } + }, + "DatabaseMigrationPropertiesSqlVm": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "backup_configuration": { + "type": "Optional[_models.BackupConfiguration]", + "default": null, + "param_type": "keyword_only" + }, + "offline_configuration": { + "type": "Optional[_models.OfflineConfiguration]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_sql_connection": { + "type": "Optional[_models.SqlConnectionInformation]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_collation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "sql_server_instance_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "kind": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "scope": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_service": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "provisioning_error": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_status_details": "Optional", + "backup_configuration": "Optional", + "offline_configuration": "Optional", + "kind": null, + "source_sql_connection": "Optional", + "source_database_name": "Optional", + "source_server_name": "Optional", + "target_database_collation": "Optional", + "sql_server_instance_id": "Optional", + "scope": "Optional", + "provisioning_state": "Optional", + "migration_status": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_service": "Optional", + "migration_operation_id": "Optional", + "migration_failure_error": "Optional", + "provisioning_error": "Optional" + } + }, + "DatabaseMigrationSqlDb": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DatabaseMigrationPropertiesSqlDb]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DatabaseMigrationSqlMi": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DatabaseMigrationPropertiesSqlMi]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DatabaseMigrationSqlVm": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.DatabaseMigrationPropertiesSqlVm]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "DatabaseMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "BACKUP": "BACKUP", + "COMPLETED": "COMPLETED", + "FILE_COPY": "FILE_COPY", + "INITIALIZE": "INITIALIZE", + "NONE": "NONE", + "RESTORE": "RESTORE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELLED": "CANCELLED", + "COMPLETED": "COMPLETED", + "CUTOVER_START": "CUTOVER_START", + "FAILED": "FAILED", + "FULL_BACKUP_UPLOAD_START": "FULL_BACKUP_UPLOAD_START", + "INITIAL": "INITIAL", + "LOG_SHIPPING_START": "LOG_SHIPPING_START", + "POST_CUTOVER_COMPLETE": "POST_CUTOVER_COMPLETE", + "UNDEFINED": "UNDEFINED", + "UPLOAD_LOG_FILES_START": "UPLOAD_LOG_FILES_START", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseState": { + "type": "Enum", + "methods": {}, + "properties": { + "COPYING": "COPYING", + "EMERGENCY": "EMERGENCY", + "OFFLINE": "OFFLINE", + "OFFLINE_SECONDARY": "OFFLINE_SECONDARY", + "ONLINE": "ONLINE", + "RECOVERING": "RECOVERING", + "RECOVERY_PENDING": "RECOVERY_PENDING", + "RESTORING": "RESTORING", + "SUSPECT": "SUSPECT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "DatabaseTable": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "has_rows": "Optional", + "name": "Optional" + } + }, + "DeleteNode": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "node_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "integration_runtime_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "node_name": "Optional", + "integration_runtime_name": "Optional" + } + }, + "ErrorAdditionalInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "info": "Optional" + } + }, + "ErrorDetail": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "target": "Optional", + "details": "Optional", + "additional_info": "Optional" + } + }, + "ErrorInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional" + } + }, + "ErrorResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error": { + "type": "Optional[_models.ErrorDetail]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional" + } + }, + "ExecutionStatistics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "execution_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "cpu_time_ms": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time_ms": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "wait_stats": { + "type": "Optional[dict[str, _models.WaitStatistics]]", + "default": null, + "param_type": "keyword_only" + }, + "has_errors": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "sql_errors": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "execution_count": "Optional", + "cpu_time_ms": "Optional", + "elapsed_time_ms": "Optional", + "wait_stats": "Optional", + "has_errors": "Optional", + "sql_errors": "Optional" + } + }, + "FileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "path": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "user_name": "Optional", + "password": "Optional", + "path": null + } + }, + "FileStorageInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "uri": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "headers": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "uri": "Optional", + "headers": "Optional" + } + }, + "GetTdeCertificatesSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "_models.FileShare", + "default": null, + "param_type": "keyword_only" + }, + "selected_certificates": { + "type": "list[_models.SelectedCertificateInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": null, + "backup_file_share": null, + "selected_certificates": "list" + } + }, + "GetTdeCertificatesSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "base64_encoded_certificates": "Optional", + "validation_errors": "Optional" + } + }, + "GetTdeCertificatesSqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.GetTdeCertificatesSqlTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "GetUserTablesMySqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": null, + "selected_databases": "list" + } + }, + "GetUserTablesMySqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "databases_to_tables": "Optional", + "validation_errors": "Optional" + } + }, + "GetUserTablesMySqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.GetUserTablesMySqlTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "GetUserTablesOracleTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "type": "_models.OracleConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_schemas": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": null, + "selected_schemas": "list" + } + }, + "GetUserTablesOracleTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "schema_name": "Optional", + "tables": "Optional", + "validation_errors": "Optional" + } + }, + "GetUserTablesOracleTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.GetUserTablesOracleTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "GetUserTablesPostgreSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": null, + "selected_databases": "list" + } + }, + "GetUserTablesPostgreSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "tables": "Optional", + "validation_errors": "Optional" + } + }, + "GetUserTablesPostgreSqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.GetUserTablesPostgreSqlTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "GetUserTablesSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_source_databases": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + }, + "selected_target_databases": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null, + "selected_source_databases": "list", + "selected_target_databases": "list" + } + }, + "GetUserTablesSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "databases_to_source_tables": "Optional", + "databases_to_target_tables": "Optional", + "table_validation_errors": "Optional", + "validation_errors": "Optional" + } + }, + "GetUserTablesSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.GetUserTablesSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "GetUserTablesSqlTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_info": null, + "selected_databases": "list", + "encrypted_key_for_secure_fields": "Optional" + } + }, + "GetUserTablesSqlTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "databases_to_tables": "Optional", + "validation_errors": "Optional" + } + }, + "GetUserTablesSqlTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.GetUserTablesSqlTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_id": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "InstallOCIDriverTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "driver_package_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_package_name": "Optional" + } + }, + "InstallOCIDriverTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "validation_errors": "Optional" + } + }, + "InstallOCIDriverTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.InstallOCIDriverTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "IntegrationRuntimeMonitoringData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "nodes": "Optional" + } + }, + "LoginMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "ASSIGN_ROLE_MEMBERSHIP": "ASSIGN_ROLE_MEMBERSHIP", + "ASSIGN_ROLE_OWNERSHIP": "ASSIGN_ROLE_OWNERSHIP", + "COMPLETED": "COMPLETED", + "ESTABLISH_OBJECT_PERMISSIONS": "ESTABLISH_OBJECT_PERMISSIONS", + "ESTABLISH_SERVER_PERMISSIONS": "ESTABLISH_SERVER_PERMISSIONS", + "ESTABLISH_USER_MAPPING": "ESTABLISH_USER_MAPPING", + "INITIALIZE": "INITIALIZE", + "LOGIN_MIGRATION": "LOGIN_MIGRATION", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "LoginType": { + "type": "Enum", + "methods": {}, + "properties": { + "ASYMMETRIC_KEY": "ASYMMETRIC_KEY", + "CERTIFICATE": "CERTIFICATE", + "EXTERNAL_GROUP": "EXTERNAL_GROUP", + "EXTERNAL_USER": "EXTERNAL_USER", + "SQL_LOGIN": "SQL_LOGIN", + "WINDOWS_GROUP": "WINDOWS_GROUP", + "WINDOWS_USER": "WINDOWS_USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ManagedServiceIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "Union[str, _models.ManagedServiceIdentityType]", + "default": null, + "param_type": "keyword_only" + }, + "user_assigned_identities": { + "type": "Optional[dict[str, _models.UserAssignedIdentity]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": "Optional", + "tenant_id": "Optional", + "type": "Union", + "user_assigned_identities": "Optional" + } + }, + "ManagedServiceIdentityType": { + "type": "Enum", + "methods": {}, + "properties": { + "NONE": "NONE", + "SYSTEM_ASSIGNED": "SYSTEM_ASSIGNED", + "SYSTEM_ASSIGNED_USER_ASSIGNED": "SYSTEM_ASSIGNED_USER_ASSIGNED", + "USER_ASSIGNED": "USER_ASSIGNED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MiSqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "managed_instance_resource_id": null, + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "MigrateMISyncCompleteCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_database_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database_name": null + } + }, + "MigrateMISyncCompleteCommandOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "errors": { + "type": "Optional[list[_models.ReportableException]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "errors": "Optional" + } + }, + "MigrateMISyncCompleteCommandProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "type": "Optional[_models.MigrateMISyncCompleteCommandInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "command_type": null, + "errors": "Optional", + "state": "Optional" + } + }, + "MigrateMongoDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MongoDbMigrationSettings]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "table_map": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "target_database_name": "Optional", + "table_map": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateMySqlAzureDbForMySqlOfflineDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "make_source_server_read_only": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "started_on": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "optional_agent_settings": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null, + "selected_databases": "list", + "make_source_server_read_only": "Optional", + "started_on": "Optional", + "optional_agent_settings": "Optional", + "encrypted_key_for_secure_fields": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "state": "Optional", + "stage": "Optional", + "status_message": "Optional", + "message": "Optional", + "number_of_objects": "Optional", + "number_of_objects_completed": "Optional", + "error_count": "Optional", + "error_prefix": "Optional", + "result_prefix": "Optional", + "exceptions_and_warnings": "Optional", + "last_storage_update": "Optional", + "object_summary": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "databases": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_report_result": { + "type": "Optional[_models.MigrationReportResult]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "duration_in_seconds": "Optional", + "status": "Optional", + "status_message": "Optional", + "message": "Optional", + "databases": "Optional", + "database_summary": "Optional", + "migration_report_result": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "exceptions_and_warnings": "Optional", + "last_storage_update": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "object_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "state": "Optional", + "status_message": "Optional", + "items_count": "Optional", + "items_completed_count": "Optional", + "error_prefix": "Optional", + "result_prefix": "Optional", + "last_storage_update": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlOfflineTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateMySqlAzureDbForMySqlOfflineTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "is_cloneable": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "is_cloneable": "Optional", + "task_id": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "source_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "target_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "table_map": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "target_database_name": "Optional", + "migration_setting": "Optional", + "source_setting": "Optional", + "target_setting": "Optional", + "table_map": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MySqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null, + "selected_databases": "list" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "events": { + "type": "Optional[list[_models.SyncMigrationDatabaseErrorEvent]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error_message": "Optional", + "events": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_state": "Optional", + "incoming_changes": "Optional", + "applied_changes": "Optional", + "cdc_insert_counter": "Optional", + "cdc_delete_counter": "Optional", + "cdc_update_counter": "Optional", + "full_load_completed_tables": "Optional", + "full_load_loading_tables": "Optional", + "full_load_queued_tables": "Optional", + "full_load_errored_tables": "Optional", + "initialization_completed": "Optional", + "latency": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "source_server_version": "Optional", + "source_server": "Optional", + "target_server_version": "Optional", + "target_server": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": "Optional", + "database_name": "Optional", + "cdc_insert_counter": "Optional", + "cdc_update_counter": "Optional", + "cdc_delete_counter": "Optional", + "full_load_est_finish_time": "Optional", + "full_load_started_on": "Optional", + "full_load_ended_on": "Optional", + "full_load_total_rows": "Optional", + "state": "Optional", + "total_changes_applied": "Optional", + "data_errors_counter": "Optional", + "last_modified_time": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateMySqlAzureDbForMySqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateMySqlAzureDbForMySqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateOracleAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateOracleAzureDbPostgreSqlSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "case_manipulation": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "schema_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "table_map": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "source_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "target_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "case_manipulation": "Optional", + "name": "Optional", + "schema_name": "Optional", + "table_map": "Optional", + "target_database_name": "Optional", + "migration_setting": "Optional", + "source_setting": "Optional", + "target_setting": "Optional" + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.OracleConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "target_connection_info": null, + "source_connection_info": null + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "events": { + "type": "Optional[list[_models.SyncMigrationDatabaseErrorEvent]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error_message": "Optional", + "events": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_state": "Optional", + "incoming_changes": "Optional", + "applied_changes": "Optional", + "cdc_insert_counter": "Optional", + "cdc_delete_counter": "Optional", + "cdc_update_counter": "Optional", + "full_load_completed_tables": "Optional", + "full_load_loading_tables": "Optional", + "full_load_queued_tables": "Optional", + "full_load_errored_tables": "Optional", + "initialization_completed": "Optional", + "latency": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "source_server_version": "Optional", + "source_server": "Optional", + "target_server_version": "Optional", + "target_server": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": "Optional", + "database_name": "Optional", + "cdc_insert_counter": "Optional", + "cdc_update_counter": "Optional", + "cdc_delete_counter": "Optional", + "full_load_est_finish_time": "Optional", + "full_load_started_on": "Optional", + "full_load_ended_on": "Optional", + "full_load_total_rows": "Optional", + "state": "Optional", + "total_changes_applied": "Optional", + "data_errors_counter": "Optional", + "last_modified_time": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "migration_setting": { + "type": "Optional[dict[str, Any]]", + "default": null, + "param_type": "keyword_only" + }, + "source_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "target_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "selected_tables": { + "type": "Optional[list[_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "id": "Optional", + "target_database_name": "Optional", + "migration_setting": "Optional", + "source_setting": "Optional", + "target_setting": "Optional", + "selected_tables": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.PostgreSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "target_connection_info": null, + "source_connection_info": null, + "encrypted_key_for_secure_fields": "Optional", + "started_on": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "events": { + "type": "Optional[list[_models.SyncMigrationDatabaseErrorEvent]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error_message": "Optional", + "events": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_state": "Optional", + "incoming_changes": "Optional", + "applied_changes": "Optional", + "cdc_insert_counter": "Optional", + "cdc_delete_counter": "Optional", + "cdc_update_counter": "Optional", + "full_load_completed_tables": "Optional", + "full_load_loading_tables": "Optional", + "full_load_queued_tables": "Optional", + "full_load_errored_tables": "Optional", + "initialization_completed": "Optional", + "latency": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "events": { + "type": "Optional[list[_models.SyncMigrationDatabaseErrorEvent]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "events": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "database_count": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "source_server_version": "Optional", + "source_server": "Optional", + "target_server_version": "Optional", + "target_server": "Optional", + "source_server_type": "Optional", + "target_server_type": "Optional", + "state": "Optional", + "database_count": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": "Optional", + "database_name": "Optional", + "cdc_insert_counter": "Optional", + "cdc_update_counter": "Optional", + "cdc_delete_counter": "Optional", + "full_load_est_finish_time": "Optional", + "full_load_started_on": "Optional", + "full_load_ended_on": "Optional", + "full_load_total_rows": "Optional", + "state": "Optional", + "total_changes_applied": "Optional", + "data_errors_counter": "Optional", + "last_modified_time": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_cloneable": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_id": "Optional", + "created_on": "Optional", + "is_cloneable": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSchemaSqlServerSqlDbDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "schema_setting": { + "type": "Optional[_models.SchemaMigrationSetting]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "id": "Optional", + "target_database_name": "Optional", + "schema_setting": "Optional" + } + }, + "MigrateSchemaSqlServerSqlDbTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateSchemaSqlServerSqlDbDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "started_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "encrypted_key_for_secure_fields": "Optional", + "started_on": "Optional", + "source_connection_info": null, + "target_connection_info": null + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "state": "Optional", + "stage": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "database_error_result_prefix": "Optional", + "schema_error_result_prefix": "Optional", + "number_of_successful_operations": "Optional", + "number_of_failed_operations": "Optional", + "file_id": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "command_text": "Optional", + "error_text": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "state": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSchemaSqlServerSqlDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateSchemaSqlServerSqlDbTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "created_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_cloneable": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "created_on": "Optional", + "task_id": "Optional", + "is_cloneable": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSchemaSqlTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "make_source_db_read_only": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "table_map": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "schema_setting": { + "type": "Optional[Any]", + "default": null, + "param_type": "keyword_only" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "target_database_name": "Optional", + "make_source_db_read_only": "Optional", + "table_map": "Optional", + "schema_setting": "Optional", + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "schema_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "table_map": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "migration_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "source_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "target_setting": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "target_database_name": "Optional", + "schema_name": "Optional", + "table_map": "Optional", + "migration_setting": "Optional", + "source_setting": "Optional", + "target_setting": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlDbSyncDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "validation_options": { + "type": "Optional[_models.MigrationValidationOptions]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "validation_options": "Optional", + "source_connection_info": null, + "target_connection_info": null + } + }, + "MigrateSqlServerSqlDbSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputDatabaseError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "error_message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "events": { + "type": "Optional[list[_models.SyncMigrationDatabaseErrorEvent]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error_message": "Optional", + "events": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "migration_state": "Optional", + "incoming_changes": "Optional", + "applied_changes": "Optional", + "cdc_insert_counter": "Optional", + "cdc_delete_counter": "Optional", + "cdc_update_counter": "Optional", + "full_load_completed_tables": "Optional", + "full_load_loading_tables": "Optional", + "full_load_queued_tables": "Optional", + "full_load_errored_tables": "Optional", + "initialization_completed": "Optional", + "latency": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "source_server_version": "Optional", + "source_server": "Optional", + "target_server_version": "Optional", + "target_server": "Optional", + "database_count": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "table_name": "Optional", + "database_name": "Optional", + "cdc_insert_counter": "Optional", + "cdc_update_counter": "Optional", + "cdc_delete_counter": "Optional", + "full_load_est_finish_time": "Optional", + "full_load_started_on": "Optional", + "full_load_ended_on": "Optional", + "full_load_total_rows": "Optional", + "state": "Optional", + "total_changes_applied": "Optional", + "data_errors_counter": "Optional", + "last_modified_time": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateSqlServerSqlDbSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlDbDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "validation_options": { + "type": "Optional[_models.MigrationValidationOptions]", + "default": null, + "param_type": "keyword_only" + }, + "started_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "validation_options": "Optional", + "started_on": "Optional", + "encrypted_key_for_secure_fields": "Optional", + "source_connection_info": null, + "target_connection_info": null + } + }, + "MigrateSqlServerSqlDbTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateSqlServerSqlDbTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "state": "Optional", + "stage": "Optional", + "status_message": "Optional", + "message": "Optional", + "number_of_objects": "Optional", + "number_of_objects_completed": "Optional", + "error_count": "Optional", + "error_prefix": "Optional", + "result_prefix": "Optional", + "exceptions_and_warnings": "Optional", + "object_summary": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_id": "Optional", + "source_database_name": "Optional", + "target_database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "data_integrity_validation_result": "Optional", + "schema_validation_result": "Optional", + "query_analysis_validation_result": "Optional", + "status": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_validation_result": { + "type": "Optional[_models.MigrationValidationResult]", + "default": null, + "param_type": "keyword_only" + }, + "migration_report_result": { + "type": "Optional[_models.MigrationReportResult]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "duration_in_seconds": "Optional", + "status": "Optional", + "status_message": "Optional", + "message": "Optional", + "databases": "Optional", + "database_summary": "Optional", + "migration_validation_result": "Optional", + "migration_report_result": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskOutputTableLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "object_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "state": "Optional", + "status_message": "Optional", + "items_count": "Optional", + "items_completed_count": "Optional", + "error_prefix": "Optional", + "result_prefix": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskOutputValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "summary_results": { + "type": "Optional[dict[str, _models.MigrationValidationDatabaseSummaryResult]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_id": "Optional", + "summary_results": "Optional", + "status": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateSqlServerSqlDbTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_cloneable": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "created_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_id": "Optional", + "is_cloneable": "Optional", + "created_on": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSqlServerSqlMIDatabaseInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "restore_database_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_paths": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "restore_database_name": null, + "backup_file_share": "Optional", + "backup_file_paths": "Optional", + "id": "Optional" + } + }, + "MigrateSqlServerSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MiSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "type": "_models.AzureActiveDirectoryApp", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + }, + "number_of_parallel_database_migrations": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MiSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "type": "_models.AzureActiveDirectoryApp", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "number_of_parallel_database_migrations": "Optional", + "selected_databases": "list", + "backup_file_share": "Optional", + "storage_resource_id": null, + "source_connection_info": null, + "target_connection_info": null, + "azure_app": null + } + }, + "MigrateSqlServerSqlMISyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database_name": "Optional", + "migration_state": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "full_backup_set_info": "Optional", + "last_restored_backup_set_info": "Optional", + "active_backup_sets": "Optional", + "container_name": "Optional", + "error_prefix": "Optional", + "is_full_backup_restored": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMISyncTaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMISyncTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_count": "Optional", + "state": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "source_server_name": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "target_server_name": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "database_error_count": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMISyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateSqlServerSqlMISyncTaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "created_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "created_on": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSqlServerSqlMITaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "backup_blob_share": { + "type": "_models.BlobShare", + "default": null, + "param_type": "keyword_only" + }, + "started_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "selected_logins": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "selected_agent_jobs": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + }, + "backup_mode": { + "type": "Optional[Union[str, _models.BackupMode]]", + "default": null, + "param_type": "keyword_only" + }, + "aad_domain_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypted_key_for_secure_fields": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "started_on": "Optional", + "selected_logins": "Optional", + "selected_agent_jobs": "Optional", + "backup_file_share": "Optional", + "backup_blob_share": null, + "backup_mode": "Optional", + "aad_domain_name": "Optional", + "encrypted_key_for_secure_fields": "Optional", + "source_connection_info": null, + "target_connection_info": null + } + }, + "MigrateSqlServerSqlMITaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateSqlServerSqlMITaskOutputAgentJobLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "is_enabled": "Optional", + "state": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "message": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMITaskOutputDatabaseLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": "Optional", + "size_mb": "Optional", + "state": "Optional", + "stage": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "message": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMITaskOutputError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "error": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMITaskOutputLoginLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "login_name": "Optional", + "state": "Optional", + "stage": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "message": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMITaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "status": "Optional", + "state": "Optional", + "agent_jobs": "Optional", + "logins": "Optional", + "message": "Optional", + "server_role_results": "Optional", + "orphaned_users_info": "Optional", + "databases": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSqlServerSqlMITaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateSqlServerSqlMITaskInput]", + "default": null, + "param_type": "keyword_only" + }, + "task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_on": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "parent_task_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "is_cloneable": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_id": "Optional", + "created_on": "Optional", + "parent_task_id": "Optional", + "is_cloneable": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSsisTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "ssis_migration_info": { + "type": "_models.SsisMigrationInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ssis_migration_info": null, + "source_connection_info": null, + "target_connection_info": null + } + }, + "MigrateSsisTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "result_type": null + } + }, + "MigrateSsisTaskOutputMigrationLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "started_on": "Optional", + "ended_on": "Optional", + "status": "Optional", + "message": "Optional", + "source_server_version": "Optional", + "source_server_brand_version": "Optional", + "target_server_version": "Optional", + "target_server_brand_version": "Optional", + "exceptions_and_warnings": "Optional", + "stage": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSsisTaskOutputProjectLevel": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "folder_name": "Optional", + "project_name": "Optional", + "state": "Optional", + "stage": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "message": "Optional", + "exceptions_and_warnings": "Optional", + "result_type": null, + "id": "Optional" + } + }, + "MigrateSsisTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateSsisTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "MigrateSyncCompleteCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "database_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "commit_time_stamp": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": null, + "commit_time_stamp": "Optional" + } + }, + "MigrateSyncCompleteCommandOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "errors": "Optional" + } + }, + "MigrateSyncCompleteCommandProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "type": "Optional[_models.MigrateSyncCompleteCommandInput]", + "default": null, + "param_type": "keyword_only" + }, + "command_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "command_id": "Optional", + "command_type": null, + "errors": "Optional", + "state": "Optional" + } + }, + "MigrationEligibilityInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "is_eligible_for_migration": "Optional", + "validation_messages": "Optional" + } + }, + "MigrationOperationInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_operation_id": "Optional" + } + }, + "MigrationReportResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "report_url": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "report_url": "Optional" + } + }, + "MigrationService": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "properties": { + "type": "Optional[_models.MigrationServiceProperties]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "MigrationServiceProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "integration_runtime_state": "Optional" + } + }, + "MigrationServiceUpdate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "MigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "NONE": "NONE", + "SKIPPED": "SKIPPED", + "STOPPED": "STOPPED", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MigrationStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "COMPLETED_WITH_WARNINGS": "COMPLETED_WITH_WARNINGS", + "CONFIGURED": "CONFIGURED", + "CONNECTING": "CONNECTING", + "DEFAULT": "DEFAULT", + "ERROR": "ERROR", + "RUNNING": "RUNNING", + "SELECT_LOGINS": "SELECT_LOGINS", + "SOURCE_AND_TARGET_SELECTED": "SOURCE_AND_TARGET_SELECTED", + "STOPPED": "STOPPED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MigrationStatusDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_state": "Optional", + "full_backup_set_info": "Optional", + "last_restored_backup_set_info": "Optional", + "active_backup_sets": "Optional", + "invalid_files": "Optional", + "blob_container_name": "Optional", + "is_full_backup_restored": "Optional", + "restore_blocking_reason": "Optional", + "complete_restore_error_message": "Optional", + "file_upload_blocking_errors": "Optional", + "current_restoring_filename": "Optional", + "last_restored_filename": "Optional", + "pending_log_backups_count": "Optional" + } + }, + "MigrationValidationDatabaseSummaryResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "migration_id": "Optional", + "source_database_name": "Optional", + "target_database_name": "Optional", + "started_on": "Optional", + "ended_on": "Optional", + "status": "Optional" + } + }, + "MigrationValidationOptions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "enable_schema_validation": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "enable_data_integrity_validation": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "enable_query_analysis_validation": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "enable_schema_validation": "Optional", + "enable_data_integrity_validation": "Optional", + "enable_query_analysis_validation": "Optional" + } + }, + "MigrationValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "summary_results": { + "type": "Optional[dict[str, _models.MigrationValidationDatabaseSummaryResult]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "migration_id": "Optional", + "summary_results": "Optional", + "status": "Optional" + } + }, + "MongoConnectionInformation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "host": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "use_ssl": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "connection_string": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "host": "Optional", + "port": "Optional", + "user_name": "Optional", + "password": "Optional", + "use_ssl": "Optional", + "connection_string": "Optional" + } + }, + "MongoDbCancelCommand": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "type": "Optional[_models.MongoDbCommandInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "command_type": null, + "errors": "Optional", + "state": "Optional" + } + }, + "MongoDbClusterInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "databases": { + "type": "list[_models.MongoDbDatabaseInfo]", + "default": null, + "param_type": "keyword_only" + }, + "supports_sharding": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Union[str, _models.MongoDbClusterType]", + "default": null, + "param_type": "keyword_only" + }, + "version": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "databases": "list", + "supports_sharding": null, + "type": "Union", + "version": null + } + }, + "MongoDbClusterType": { + "type": "Enum", + "methods": {}, + "properties": { + "BLOB_CONTAINER": "BLOB_CONTAINER", + "COSMOS_DB": "COSMOS_DB", + "MONGO_DB": "MONGO_DB", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbCollectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "database_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "is_capped": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "is_system_collection": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "is_view": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "supports_sharding": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "shard_key": { + "type": "Optional[_models.MongoDbShardKeyInfo]", + "default": null, + "param_type": "keyword_only" + }, + "view_of": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "database_name": null, + "is_capped": null, + "is_system_collection": null, + "is_view": null, + "shard_key": "Optional", + "supports_sharding": null, + "view_of": "Optional", + "average_document_size": null, + "data_size": null, + "document_count": null, + "name": null, + "qualified_name": null + } + }, + "MongoDbCollectionProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "result_type": null, + "bytes_copied": null, + "documents_copied": null, + "elapsed_time": null, + "errors": "dict", + "events_pending": null, + "events_replayed": null, + "last_event_time": "Optional", + "last_replay_time": "Optional", + "name": "Optional", + "qualified_name": "Optional", + "state": "Union", + "total_bytes": null, + "total_documents": null + } + }, + "MongoDbCollectionSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "can_delete": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "shard_key": { + "type": "Optional[_models.MongoDbShardKeySetting]", + "default": null, + "param_type": "keyword_only" + }, + "target_r_us": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "can_delete": "Optional", + "shard_key": "Optional", + "target_r_us": "Optional" + } + }, + "MongoDbCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "object_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "object_name": "Optional" + } + }, + "MongoDbConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "connection_string": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "data_source": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypt_connection": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "server_brand_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "enforce_ssl": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "additional_settings": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "authentication": { + "type": "Optional[Union[str, _models.AuthenticationType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "connection_string": null, + "data_source": "Optional", + "encrypt_connection": "Optional", + "server_brand_version": "Optional", + "server_version": "Optional", + "server_name": "Optional", + "trust_server_certificate": "Optional", + "enforce_ssl": "Optional", + "port": "Optional", + "additional_settings": "Optional", + "authentication": "Optional", + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "MongoDbDatabaseInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "collections": { + "type": "list[_models.MongoDbCollectionInfo]", + "default": null, + "param_type": "keyword_only" + }, + "supports_sharding": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "collections": "list", + "supports_sharding": null, + "average_document_size": null, + "data_size": null, + "document_count": null, + "name": null, + "qualified_name": null + } + }, + "MongoDbDatabaseProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "collections": { + "type": "Optional[dict[str, _models.MongoDbCollectionProgress]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "collections": "Optional", + "result_type": null, + "bytes_copied": null, + "documents_copied": null, + "elapsed_time": null, + "errors": "dict", + "events_pending": null, + "events_replayed": null, + "last_event_time": "Optional", + "last_replay_time": "Optional", + "name": "Optional", + "qualified_name": "Optional", + "state": "Union", + "total_bytes": null, + "total_documents": null + } + }, + "MongoDbDatabaseSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "collections": { + "type": "dict[str, _models.MongoDbCollectionSettings]", + "default": null, + "param_type": "keyword_only" + }, + "target_r_us": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "collections": "dict", + "target_r_us": "Optional" + } + }, + "MongoDbError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Optional[Union[str, _models.MongoDbErrorType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "count": "Optional", + "message": "Optional", + "type": "Optional" + } + }, + "MongoDbErrorType": { + "type": "Enum", + "methods": {}, + "properties": { + "ERROR": "ERROR", + "VALIDATION_ERROR": "VALIDATION_ERROR", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbFinishCommand": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "type": "Optional[_models.MongoDbFinishCommandInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "command_type": null, + "errors": "Optional", + "state": "Optional" + } + }, + "MongoDbFinishCommandInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "immediate": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + }, + "object_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "object_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "immediate": null, + "object_name": "Optional" + } + }, + "MongoDbMigrationProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "databases": { + "type": "Optional[dict[str, _models.MongoDbDatabaseProgress]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "databases": "Optional", + "result_type": null, + "bytes_copied": null, + "documents_copied": null, + "elapsed_time": null, + "errors": "dict", + "events_pending": null, + "events_replayed": null, + "last_event_time": "Optional", + "last_replay_time": "Optional", + "name": "Optional", + "qualified_name": "Optional", + "state": "Union", + "total_bytes": null, + "total_documents": null + } + }, + "MongoDbMigrationSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "databases": { + "type": "dict[str, _models.MongoDbDatabaseSettings]", + "default": null, + "param_type": "keyword_only" + }, + "source": { + "type": "_models.MongoDbConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target": { + "type": "_models.MongoDbConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "boost_r_us": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "replication": { + "type": "Optional[Union[str, _models.MongoDbReplication]]", + "default": null, + "param_type": "keyword_only" + }, + "throttling": { + "type": "Optional[_models.MongoDbThrottlingSettings]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "boost_r_us": "Optional", + "databases": "dict", + "replication": "Optional", + "source": null, + "target": null, + "throttling": "Optional" + } + }, + "MongoDbMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "COMPLETE": "COMPLETE", + "COPYING": "COPYING", + "FAILED": "FAILED", + "FINALIZING": "FINALIZING", + "INITIALIZING": "INITIALIZING", + "INITIAL_REPLAY": "INITIAL_REPLAY", + "NOT_STARTED": "NOT_STARTED", + "REPLAYING": "REPLAYING", + "RESTARTING": "RESTARTING", + "VALIDATING_INPUT": "VALIDATING_INPUT", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbObjectInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "average_document_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "data_size": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "document_count": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "average_document_size": null, + "data_size": null, + "document_count": null, + "name": null, + "qualified_name": null + } + }, + "MongoDbProgress": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "bytes_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "documents_copied": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "elapsed_time": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "errors": { + "type": "dict[str, _models.MongoDbError]", + "default": null, + "param_type": "keyword_only" + }, + "events_pending": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "events_replayed": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "result_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "state": { + "type": "Union[str, _models.MongoDbMigrationState]", + "default": null, + "param_type": "keyword_only" + }, + "total_bytes": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "total_documents": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "last_event_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_replay_time": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "qualified_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "bytes_copied": null, + "documents_copied": null, + "elapsed_time": null, + "errors": "dict", + "events_pending": null, + "events_replayed": null, + "last_event_time": "Optional", + "last_replay_time": "Optional", + "name": "Optional", + "qualified_name": "Optional", + "result_type": null, + "state": "Union", + "total_bytes": null, + "total_documents": null + } + }, + "MongoDbProgressResultType": { + "type": "Enum", + "methods": {}, + "properties": { + "COLLECTION": "COLLECTION", + "DATABASE": "DATABASE", + "MIGRATION": "MIGRATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbReplication": { + "type": "Enum", + "methods": {}, + "properties": { + "CONTINUOUS": "CONTINUOUS", + "DISABLED": "DISABLED", + "ONE_TIME": "ONE_TIME", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbRestartCommand": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "input": { + "type": "Optional[_models.MongoDbCommandInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "command_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "command_type": null, + "errors": "Optional", + "state": "Optional" + } + }, + "MongoDbShardKeyField": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "order": { + "type": "Union[str, _models.MongoDbShardKeyOrder]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": null, + "order": "Union" + } + }, + "MongoDbShardKeyInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "fields": { + "type": "list[_models.MongoDbShardKeyField]", + "default": null, + "param_type": "keyword_only" + }, + "is_unique": { + "type": "bool", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fields": "list", + "is_unique": null + } + }, + "MongoDbShardKeyOrder": { + "type": "Enum", + "methods": {}, + "properties": { + "FORWARD": "FORWARD", + "HASHED": "HASHED", + "REVERSE": "REVERSE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MongoDbShardKeySetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "fields": { + "type": "list[_models.MongoDbShardKeyField]", + "default": null, + "param_type": "keyword_only" + }, + "is_unique": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "fields": "list", + "is_unique": "Optional" + } + }, + "MongoDbThrottlingSettings": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "min_free_cpu": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "min_free_memory_mb": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "max_parallelism": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "min_free_cpu": "Optional", + "min_free_memory_mb": "Optional", + "max_parallelism": "Optional" + } + }, + "MongoMigrationCollection": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_database": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "source_collection": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_database": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "target_collection": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_database": "Optional", + "source_collection": "Optional", + "target_database": "Optional", + "target_collection": "Optional", + "migration_progress_details": "Optional" + } + }, + "MongoMigrationProgressDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_status": "Optional", + "migration_error": "Optional", + "source_document_count": "Optional", + "processed_document_count": "Optional", + "duration_in_seconds": "Optional" + } + }, + "MongoMigrationStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "COMPLETED": "COMPLETED", + "FAILED": "FAILED", + "IN_PROGRESS": "IN_PROGRESS", + "NOT_STARTED": "NOT_STARTED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "MySqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "data_source": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypt_connection": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "authentication": { + "type": "Optional[Union[str, _models.AuthenticationType]]", + "default": null, + "param_type": "keyword_only" + }, + "additional_settings": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server_name": null, + "data_source": "Optional", + "port": null, + "encrypt_connection": "Optional", + "authentication": "Optional", + "additional_settings": "Optional", + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "MySqlTargetPlatformType": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DB_FOR_MY_SQL": "AZURE_DB_FOR_MY_SQL", + "SQL_SERVER": "SQL_SERVER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NameAvailabilityRequest": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "type": "Optional" + } + }, + "NameAvailabilityResponse": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name_available": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "reason": { + "type": "Optional[Union[str, _models.NameCheckFailureReason]]", + "default": null, + "param_type": "keyword_only" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name_available": "Optional", + "reason": "Optional", + "message": "Optional" + } + }, + "NameCheckFailureReason": { + "type": "Enum", + "methods": {}, + "properties": { + "ALREADY_EXISTS": "ALREADY_EXISTS", + "INVALID": "INVALID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "NodeMonitoringData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "additional_properties": "Optional", + "node_name": "Optional", + "available_memory_in_mb": "Optional", + "cpu_utilization": "Optional", + "concurrent_jobs_limit": "Optional", + "concurrent_jobs_running": "Optional", + "max_concurrent_jobs": "Optional", + "sent_bytes": "Optional", + "received_bytes": "Optional" + } + }, + "ODataError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "code": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "details": { + "type": "Optional[list[_models.ODataError]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "code": "Optional", + "message": "Optional", + "details": "Optional" + } + }, + "ObjectType": { + "type": "Enum", + "methods": {}, + "properties": { + "FUNCTION": "FUNCTION", + "STORED_PROCEDURES": "STORED_PROCEDURES", + "TABLE": "TABLE", + "USER": "USER", + "VIEW": "VIEW", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "OfflineConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "offline": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "last_backup_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "offline": "Optional", + "last_backup_name": "Optional" + } + }, + "OperationOrigin": { + "type": "Enum", + "methods": {}, + "properties": { + "SYSTEM": "SYSTEM", + "USER": "USER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "OperationsDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "is_data_action": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "is_data_action": "Optional", + "display": "Optional", + "origin": "Optional", + "properties": "Optional" + } + }, + "OperationsDisplayDefinition": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provider": "Optional", + "resource": "Optional", + "operation": "Optional", + "description": "Optional" + } + }, + "OracleConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "data_source": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "authentication": { + "type": "Optional[Union[str, _models.AuthenticationType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "data_source": null, + "server_name": "Optional", + "server_version": "Optional", + "port": "Optional", + "authentication": "Optional", + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "OracleOCIDriverInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_name": "Optional", + "driver_size": "Optional", + "archive_checksum": "Optional", + "oracle_checksum": "Optional", + "assembly_version": "Optional", + "supported_oracle_versions": "Optional" + } + }, + "OrphanedUserInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "database_name": "Optional" + } + }, + "PostgreSqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "server_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "port": { + "type": "int", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "data_source": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "database_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypt_connection": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "additional_settings": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_brand_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "authentication": { + "type": "Optional[Union[str, _models.AuthenticationType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server_name": null, + "data_source": "Optional", + "server_version": "Optional", + "database_name": "Optional", + "port": null, + "encrypt_connection": "Optional", + "trust_server_certificate": "Optional", + "additional_settings": "Optional", + "server_brand_version": "Optional", + "authentication": "Optional", + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "Project": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ProjectProperties]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "etag": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": "Optional", + "etag": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ProjectFile": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ProjectFileProperties]", + "default": null, + "param_type": "keyword_only" + }, + "etag": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "etag": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ProjectFileProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "extension": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "file_path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "media_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "extension": "Optional", + "file_path": "Optional", + "last_modified": "Optional", + "media_type": "Optional", + "size": "Optional" + } + }, + "ProjectProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_platform": { + "type": "Union[str, _models.ProjectSourcePlatform]", + "default": null, + "param_type": "keyword_only" + }, + "target_platform": { + "type": "Union[str, _models.ProjectTargetPlatform]", + "default": null, + "param_type": "keyword_only" + }, + "azure_authentication_info": { + "type": "Optional[_models.AzureActiveDirectoryApp]", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "Optional[_models.ConnectionInfo]", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "Optional[_models.ConnectionInfo]", + "default": null, + "param_type": "keyword_only" + }, + "databases_info": { + "type": "Optional[list[_models.DatabaseInfo]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_platform": "Union", + "azure_authentication_info": "Optional", + "target_platform": "Union", + "creation_time": "Optional", + "source_connection_info": "Optional", + "target_connection_info": "Optional", + "databases_info": "Optional", + "provisioning_state": "Optional" + } + }, + "ProjectProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "DELETING": "DELETING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProjectSourcePlatform": { + "type": "Enum", + "methods": {}, + "properties": { + "MONGO_DB": "MONGO_DB", + "MY_SQL": "MY_SQL", + "POSTGRE_SQL": "POSTGRE_SQL", + "SQL": "SQL", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProjectTargetPlatform": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DB_FOR_MY_SQL": "AZURE_DB_FOR_MY_SQL", + "AZURE_DB_FOR_POSTGRE_SQL": "AZURE_DB_FOR_POSTGRE_SQL", + "MONGO_DB": "MONGO_DB", + "SQLDB": "SQLDB", + "SQLMI": "SQLMI", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProjectTask": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.ProjectTaskProperties]", + "default": null, + "param_type": "keyword_only" + }, + "etag": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "etag": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ProjectTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "PROVISIONING": "PROVISIONING", + "SUCCEEDED": "SUCCEEDED", + "UPDATING": "UPDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ProxyResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "QueryAnalysisValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "query_results": { + "type": "Optional[_models.QueryExecutionResult]", + "default": null, + "param_type": "keyword_only" + }, + "validation_errors": { + "type": "Optional[_models.ValidationError]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "query_results": "Optional", + "validation_errors": "Optional" + } + }, + "QueryExecutionResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "query_text": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "statements_in_batch": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "source_result": { + "type": "Optional[_models.ExecutionStatistics]", + "default": null, + "param_type": "keyword_only" + }, + "target_result": { + "type": "Optional[_models.ExecutionStatistics]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "query_text": "Optional", + "statements_in_batch": "Optional", + "source_result": "Optional", + "target_result": "Optional" + } + }, + "Quota": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "current_value": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "limit": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "name": { + "type": "Optional[_models.QuotaName]", + "default": null, + "param_type": "keyword_only" + }, + "unit": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "current_value": "Optional", + "id": "Optional", + "limit": "Optional", + "name": "Optional", + "unit": "Optional" + } + }, + "QuotaName": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "localized_value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "value": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "localized_value": "Optional", + "value": "Optional" + } + }, + "RegenAuthKeys": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "key_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "auth_key1": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "auth_key2": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "key_name": "Optional", + "auth_key1": "Optional", + "auth_key2": "Optional" + } + }, + "ReplicateMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACTION_REQUIRED": "ACTION_REQUIRED", + "COMPLETE": "COMPLETE", + "FAILED": "FAILED", + "PENDING": "PENDING", + "UNDEFINED": "UNDEFINED", + "VALIDATING": "VALIDATING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ReportableException": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "actionable_message": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "file_path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "line_number": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "h_result": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "stack_trace": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "message": "Optional", + "actionable_message": "Optional", + "file_path": "Optional", + "line_number": "Optional", + "h_result": "Optional", + "stack_trace": "Optional" + } + }, + "Resource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "ResourceSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "resource_type": "Optional", + "name": "Optional", + "tier": "Optional", + "size": "Optional", + "family": "Optional", + "kind": "Optional", + "capacity": "Optional", + "locations": "Optional", + "api_versions": "Optional", + "costs": "Optional", + "capabilities": "Optional", + "restrictions": "Optional" + } + }, + "ResourceSkuCapabilities": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "value": "Optional" + } + }, + "ResourceSkuCapacity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "minimum": "Optional", + "maximum": "Optional", + "default": "Optional", + "scale_type": "Optional" + } + }, + "ResourceSkuCapacityScaleType": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTOMATIC": "AUTOMATIC", + "MANUAL": "MANUAL", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceSkuCosts": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "meter_id": "Optional", + "quantity": "Optional", + "extended_unit": "Optional" + } + }, + "ResourceSkuRestrictions": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "type": "Optional", + "values_property": "Optional", + "reason_code": "Optional" + } + }, + "ResourceSkuRestrictionsReasonCode": { + "type": "Enum", + "methods": {}, + "properties": { + "NOT_AVAILABLE_FOR_SUBSCRIPTION": "NOT_AVAILABLE_FOR_SUBSCRIPTION", + "QUOTA_ID": "QUOTA_ID", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceSkuRestrictionsType": { + "type": "Enum", + "methods": {}, + "properties": { + "LOCATION": "LOCATION", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ResourceType": { + "type": "Enum", + "methods": {}, + "properties": { + "MONGO_TO_COSMOS_DB_MONGO": "MONGO_TO_COSMOS_DB_MONGO", + "SQL_DB": "SQL_DB", + "SQL_MI": "SQL_MI", + "SQL_VM": "SQL_VM", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ScenarioSource": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCESS": "ACCESS", + "DB2": "DB2", + "MONGO_DB": "MONGO_DB", + "MY_SQL": "MY_SQL", + "MY_SQLRDS": "MY_SQLRDS", + "ORACLE": "ORACLE", + "POSTGRE_SQL": "POSTGRE_SQL", + "POSTGRE_SQLRDS": "POSTGRE_SQLRDS", + "SQL": "SQL", + "SQLRDS": "SQLRDS", + "SYBASE": "SYBASE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ScenarioTarget": { + "type": "Enum", + "methods": {}, + "properties": { + "AZURE_DB_FOR_MY_SQL": "AZURE_DB_FOR_MY_SQL", + "AZURE_DB_FOR_POSTGRES_SQL": "AZURE_DB_FOR_POSTGRES_SQL", + "MONGO_DB": "MONGO_DB", + "SQLDB": "SQLDB", + "SQLDW": "SQLDW", + "SQLMI": "SQLMI", + "SQL_SERVER": "SQL_SERVER", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SchemaComparisonValidationResult": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "schema_differences": { + "type": "Optional[_models.SchemaComparisonValidationResultType]", + "default": null, + "param_type": "keyword_only" + }, + "validation_errors": { + "type": "Optional[_models.ValidationError]", + "default": null, + "param_type": "keyword_only" + }, + "source_database_object_count": { + "type": "Optional[dict[str, int]]", + "default": null, + "param_type": "keyword_only" + }, + "target_database_object_count": { + "type": "Optional[dict[str, int]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "schema_differences": "Optional", + "validation_errors": "Optional", + "source_database_object_count": "Optional", + "target_database_object_count": "Optional" + } + }, + "SchemaComparisonValidationResultType": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "object_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "object_type": { + "type": "Optional[Union[str, _models.ObjectType]]", + "default": null, + "param_type": "keyword_only" + }, + "update_action": { + "type": "Optional[Union[str, _models.UpdateActionType]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "object_name": "Optional", + "object_type": "Optional", + "update_action": "Optional" + } + }, + "SchemaMigrationOption": { + "type": "Enum", + "methods": {}, + "properties": { + "EXTRACT_FROM_SOURCE": "EXTRACT_FROM_SOURCE", + "NONE": "NONE", + "USE_STORAGE_FILE": "USE_STORAGE_FILE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SchemaMigrationSetting": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "schema_option": { + "type": "Optional[Union[str, _models.SchemaMigrationOption]]", + "default": null, + "param_type": "keyword_only" + }, + "file_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "file_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "schema_option": "Optional", + "file_id": "Optional", + "file_name": "Optional" + } + }, + "SchemaMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "COLLECTING_OBJECTS": "COLLECTING_OBJECTS", + "COMPLETED": "COMPLETED", + "COMPLETED_WITH_WARNINGS": "COMPLETED_WITH_WARNINGS", + "DEPLOYING_SCHEMA": "DEPLOYING_SCHEMA", + "DOWNLOADING_SCRIPT": "DOWNLOADING_SCRIPT", + "FAILED": "FAILED", + "GENERATING_SCRIPT": "GENERATING_SCRIPT", + "NOT_STARTED": "NOT_STARTED", + "UPLOADING_SCRIPT": "UPLOADING_SCRIPT", + "VALIDATING_INPUTS": "VALIDATING_INPUTS", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SelectedCertificateInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "certificate_name": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "str", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "certificate_name": null, + "password": null + } + }, + "ServerLevelPermissionsGroup": { + "type": "Enum", + "methods": {}, + "properties": { + "DEFAULT": "DEFAULT", + "MIGRATION_FROM_MY_SQL_TO_AZURE_DB_FOR_MY_SQL": "MIGRATION_FROM_MY_SQL_TO_AZURE_DB_FOR_MY_SQL", + "MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB": "MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB", + "MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI": "MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI", + "MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM": "MIGRATION_FROM_SQL_SERVER_TO_AZURE_VM", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ServerProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "server_platform": "Optional", + "server_name": "Optional", + "server_version": "Optional", + "server_edition": "Optional", + "server_operating_system_version": "Optional", + "server_database_count": "Optional" + } + }, + "ServiceProvisioningState": { + "type": "Enum", + "methods": {}, + "properties": { + "ACCEPTED": "ACCEPTED", + "DELETING": "DELETING", + "DEPLOYING": "DEPLOYING", + "FAILED": "FAILED", + "FAILED_TO_START": "FAILED_TO_START", + "FAILED_TO_STOP": "FAILED_TO_STOP", + "STARTING": "STARTING", + "STOPPED": "STOPPED", + "STOPPING": "STOPPING", + "SUCCEEDED": "SUCCEEDED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ServiceScalability": { + "type": "Enum", + "methods": {}, + "properties": { + "AUTOMATIC": "AUTOMATIC", + "MANUAL": "MANUAL", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "ServiceSku": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "tier": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "family": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "size": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "capacity": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "name": "Optional", + "tier": "Optional", + "family": "Optional", + "size": "Optional", + "capacity": "Optional" + } + }, + "Severity": { + "type": "Enum", + "methods": {}, + "properties": { + "ERROR": "ERROR", + "MESSAGE": "MESSAGE", + "WARNING": "WARNING", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SourceLocation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "file_share": { + "type": "Optional[_models.SqlFileShare]", + "default": null, + "param_type": "keyword_only" + }, + "azure_blob": { + "type": "Optional[_models.AzureBlob]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_share": "Optional", + "azure_blob": "Optional", + "file_storage_type": "Optional" + } + }, + "SqlBackupFileInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "file_name": "Optional", + "status": "Optional", + "total_size": "Optional", + "data_read": "Optional", + "data_written": "Optional", + "copy_throughput": "Optional", + "copy_duration": "Optional", + "family_sequence_number": "Optional" + } + }, + "SqlBackupSetInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "backup_set_id": "Optional", + "first_lsn": "Optional", + "last_lsn": "Optional", + "backup_type": "Optional", + "list_of_backup_files": "Optional", + "backup_start_date": "Optional", + "backup_finish_date": "Optional", + "is_backup_restored": "Optional", + "has_backup_checksums": "Optional", + "family_count": "Optional", + "ignore_reasons": "Optional" + } + }, + "SqlConnectionInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "data_source": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "port": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + }, + "server_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "server_brand_version": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "resource_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "authentication": { + "type": "Optional[Union[str, _models.AuthenticationType]]", + "default": null, + "param_type": "keyword_only" + }, + "encrypt_connection": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "additional_settings": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "platform": { + "type": "Optional[Union[str, _models.SqlSourcePlatform]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "data_source": null, + "server_name": "Optional", + "port": "Optional", + "server_version": "Optional", + "server_brand_version": "Optional", + "resource_id": "Optional", + "authentication": "Optional", + "encrypt_connection": "Optional", + "additional_settings": "Optional", + "trust_server_certificate": "Optional", + "platform": "Optional", + "type": null, + "user_name": "Optional", + "password": "Optional" + } + }, + "SqlConnectionInformation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "data_source": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "authentication": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "user_name": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "encrypt_connection": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + }, + "trust_server_certificate": { + "type": "Optional[bool]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "data_source": "Optional", + "authentication": "Optional", + "user_name": "Optional", + "password": "Optional", + "encrypt_connection": "Optional", + "trust_server_certificate": "Optional" + } + }, + "SqlDbMigrationStatusDetails": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "migration_state": "Optional", + "sql_data_copy_errors": "Optional", + "list_of_copy_progress_details": "Optional" + } + }, + "SqlDbOfflineConfiguration": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "offline": "Optional" + } + }, + "SqlFileShare": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "path": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "username": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "password": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "path": "Optional", + "username": "Optional", + "password": "Optional" + } + }, + "SqlMigrationService": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "properties": { + "type": "Optional[_models.SqlMigrationServiceProperties]", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "location": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "properties": "Optional", + "tags": "Optional", + "location": "Optional", + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "SqlMigrationServiceProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "provisioning_state": "Optional", + "integration_runtime_state": "Optional" + } + }, + "SqlMigrationServiceUpdate": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional" + } + }, + "SqlMigrationTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null + } + }, + "SqlServerSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MiSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "type": "_models.AzureActiveDirectoryApp", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "backup_file_share": "Optional", + "storage_resource_id": null, + "source_connection_info": null, + "target_connection_info": null, + "azure_app": null + } + }, + "SqlSourcePlatform": { + "type": "Enum", + "methods": {}, + "properties": { + "SQL_ON_PREM": "SQL_ON_PREM", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SsisMigrationInfo": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "ssis_store_type": { + "type": "Optional[Union[str, _models.SsisStoreType]]", + "default": null, + "param_type": "keyword_only" + }, + "project_overwrite_option": { + "type": "Optional[Union[str, _models.SsisMigrationOverwriteOption]]", + "default": null, + "param_type": "keyword_only" + }, + "environment_overwrite_option": { + "type": "Optional[Union[str, _models.SsisMigrationOverwriteOption]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "ssis_store_type": "Optional", + "project_overwrite_option": "Optional", + "environment_overwrite_option": "Optional" + } + }, + "SsisMigrationOverwriteOption": { + "type": "Enum", + "methods": {}, + "properties": { + "IGNORE": "IGNORE", + "OVERWRITE": "OVERWRITE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SsisMigrationStage": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "INITIALIZE": "INITIALIZE", + "IN_PROGRESS": "IN_PROGRESS", + "NONE": "NONE", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SsisStoreType": { + "type": "Enum", + "methods": {}, + "properties": { + "SSIS_CATALOG": "SSIS_CATALOG", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SyncDatabaseMigrationReportingState": { + "type": "Enum", + "methods": {}, + "properties": { + "BACKUP_COMPLETED": "BACKUP_COMPLETED", + "BACKUP_IN_PROGRESS": "BACKUP_IN_PROGRESS", + "CANCELLED": "CANCELLED", + "CANCELLING": "CANCELLING", + "COMPLETE": "COMPLETE", + "COMPLETING": "COMPLETING", + "CONFIGURING": "CONFIGURING", + "FAILED": "FAILED", + "INITIALIAZING": "INITIALIAZING", + "READY_TO_COMPLETE": "READY_TO_COMPLETE", + "RESTORE_COMPLETED": "RESTORE_COMPLETED", + "RESTORE_IN_PROGRESS": "RESTORE_IN_PROGRESS", + "RUNNING": "RUNNING", + "STARTING": "STARTING", + "UNDEFINED": "UNDEFINED", + "VALIDATING": "VALIDATING", + "VALIDATION_COMPLETE": "VALIDATION_COMPLETE", + "VALIDATION_FAILED": "VALIDATION_FAILED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SyncMigrationDatabaseErrorEvent": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "timestamp_string": "Optional", + "event_type_string": "Optional", + "event_text": "Optional" + } + }, + "SyncTableMigrationState": { + "type": "Enum", + "methods": {}, + "properties": { + "BEFORE_LOAD": "BEFORE_LOAD", + "CANCELED": "CANCELED", + "COMPLETED": "COMPLETED", + "ERROR": "ERROR", + "FAILED": "FAILED", + "FULL_LOAD": "FULL_LOAD", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "SystemData": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "created_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "created_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "created_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_by_type": { + "type": "Optional[Union[str, _models.CreatedByType]]", + "default": null, + "param_type": "keyword_only" + }, + "last_modified_at": { + "type": "Optional[datetime]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "created_by": "Optional", + "created_by_type": "Optional", + "created_at": "Optional", + "last_modified_by": "Optional", + "last_modified_by_type": "Optional", + "last_modified_at": "Optional" + } + }, + "TargetLocation": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "storage_account_resource_id": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "account_key": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "storage_account_resource_id": "Optional", + "account_key": "Optional" + } + }, + "TaskState": { + "type": "Enum", + "methods": {}, + "properties": { + "CANCELED": "CANCELED", + "FAILED": "FAILED", + "FAILED_INPUT_VALIDATION": "FAILED_INPUT_VALIDATION", + "FAULTED": "FAULTED", + "QUEUED": "QUEUED", + "RUNNING": "RUNNING", + "SUCCEEDED": "SUCCEEDED", + "UNKNOWN": "UNKNOWN", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "TaskType": { + "type": "Enum", + "methods": {}, + "properties": { + "CONNECT_MONGO_DB": "CONNECT_MONGO_DB", + "CONNECT_TO_SOURCE_MY_SQL": "CONNECT_TO_SOURCE_MY_SQL", + "CONNECT_TO_SOURCE_ORACLE_SYNC": "CONNECT_TO_SOURCE_ORACLE_SYNC", + "CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC": "CONNECT_TO_SOURCE_POSTGRE_SQL_SYNC", + "CONNECT_TO_SOURCE_SQL_SERVER": "CONNECT_TO_SOURCE_SQL_SERVER", + "CONNECT_TO_SOURCE_SQL_SERVER_SYNC": "CONNECT_TO_SOURCE_SQL_SERVER_SYNC", + "CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL": "CONNECT_TO_TARGET_AZURE_DB_FOR_MY_SQL", + "CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC": "CONNECT_TO_TARGET_AZURE_DB_FOR_POSTGRE_SQL_SYNC", + "CONNECT_TO_TARGET_AZURE_SQL_DB_MI": "CONNECT_TO_TARGET_AZURE_SQL_DB_MI", + "CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS": "CONNECT_TO_TARGET_AZURE_SQL_DB_MI_SYNC_LRS", + "CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC": "CONNECT_TO_TARGET_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC", + "CONNECT_TO_TARGET_SQL_DB": "CONNECT_TO_TARGET_SQL_DB", + "CONNECT_TO_TARGET_SQL_DB_SYNC": "CONNECT_TO_TARGET_SQL_DB_SYNC", + "GET_TDE_CERTIFICATES_SQL": "GET_TDE_CERTIFICATES_SQL", + "GET_USER_TABLES_AZURE_SQL_DB_SYNC": "GET_USER_TABLES_AZURE_SQL_DB_SYNC", + "GET_USER_TABLES_MY_SQL": "GET_USER_TABLES_MY_SQL", + "GET_USER_TABLES_ORACLE": "GET_USER_TABLES_ORACLE", + "GET_USER_TABLES_POSTGRE_SQL": "GET_USER_TABLES_POSTGRE_SQL", + "GET_USER_TABLES_SQL": "GET_USER_TABLES_SQL", + "MIGRATE_MONGO_DB": "MIGRATE_MONGO_DB", + "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL": "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL", + "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC": "MIGRATE_MY_SQL_AZURE_DB_FOR_MY_SQL_SYNC", + "MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC": "MIGRATE_ORACLE_AZURE_DB_FOR_POSTGRE_SQL_SYNC", + "MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2": "MIGRATE_POSTGRE_SQL_AZURE_DB_FOR_POSTGRE_SQL_SYNC_V2", + "MIGRATE_SCHEMA_SQL_SERVER_SQL_DB": "MIGRATE_SCHEMA_SQL_SERVER_SQL_DB", + "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI": "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI", + "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS": "MIGRATE_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS", + "MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC": "MIGRATE_SQL_SERVER_AZURE_SQL_DB_SYNC", + "MIGRATE_SQL_SERVER_SQL_DB": "MIGRATE_SQL_SERVER_SQL_DB", + "MIGRATE_SSIS": "MIGRATE_SSIS", + "SERVICE_CHECK_OCI": "SERVICE_CHECK_OCI", + "SERVICE_INSTALL_OCI": "SERVICE_INSTALL_OCI", + "SERVICE_UPLOAD_OCI": "SERVICE_UPLOAD_OCI", + "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI": "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI", + "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS": "VALIDATE_MIGRATION_INPUT_SQL_SERVER_AZURE_SQL_DB_MI_SYNC_LRS", + "VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC": "VALIDATE_MIGRATION_INPUT_SQL_SERVER_SQL_DB_SYNC", + "VALIDATE_MONGO_DB": "VALIDATE_MONGO_DB", + "VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC": "VALIDATE_ORACLE_AZURE_DB_POSTGRE_SQL_SYNC", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "TrackedResource": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "tags": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "tags": "Optional", + "location": null, + "id": "Optional", + "name": "Optional", + "type": "Optional", + "system_data": "Optional" + } + }, + "UpdateActionType": { + "type": "Enum", + "methods": {}, + "properties": { + "ADDED_ON_TARGET": "ADDED_ON_TARGET", + "CHANGED_ON_TARGET": "CHANGED_ON_TARGET", + "DELETED_ON_TARGET": "DELETED_ON_TARGET", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "UploadOCIDriverTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "driver_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_share": "Optional" + } + }, + "UploadOCIDriverTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "driver_package_name": "Optional", + "validation_errors": "Optional" + } + }, + "UploadOCIDriverTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.UploadOCIDriverTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "UserAssignedIdentity": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "principal_id": "Optional", + "client_id": "Optional" + } + }, + "ValidateMigrationInputSqlServerSqlDbSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ValidateSyncMigrationInputSqlServerTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ValidateMigrationInputSqlServerSqlMISyncTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MiSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "type": "_models.AzureActiveDirectoryApp", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "storage_resource_id": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.MiSqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "azure_app": { + "type": "_models.AzureActiveDirectoryApp", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "selected_databases": "list", + "backup_file_share": "Optional", + "storage_resource_id": null, + "source_connection_info": null, + "target_connection_info": null, + "azure_app": null + } + }, + "ValidateMigrationInputSqlServerSqlMISyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "validation_errors": "Optional" + } + }, + "ValidateMigrationInputSqlServerSqlMISyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ValidateMigrationInputSqlServerSqlMISyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ValidateMigrationInputSqlServerSqlMITaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlMIDatabaseInput]", + "default": null, + "param_type": "keyword_only" + }, + "backup_blob_share": { + "type": "_models.BlobShare", + "default": null, + "param_type": "keyword_only" + }, + "selected_logins": { + "type": "Optional[list[str]]", + "default": null, + "param_type": "keyword_only" + }, + "backup_file_share": { + "type": "Optional[_models.FileShare]", + "default": null, + "param_type": "keyword_only" + }, + "backup_mode": { + "type": "Optional[Union[str, _models.BackupMode]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null, + "selected_databases": "list", + "selected_logins": "Optional", + "backup_file_share": "Optional", + "backup_blob_share": null, + "backup_mode": "Optional" + } + }, + "ValidateMigrationInputSqlServerSqlMITaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "database_backup_info": { + "type": "Optional[_models.DatabaseBackupInfo]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "restore_database_name_errors": "Optional", + "backup_folder_errors": "Optional", + "backup_share_credentials_errors": "Optional", + "backup_storage_account_errors": "Optional", + "existing_backup_errors": "Optional", + "database_backup_info": "Optional" + } + }, + "ValidateMigrationInputSqlServerSqlMITaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.ValidateMigrationInputSqlServerSqlMITaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ValidateMongoDbTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MongoDbMigrationSettings]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ValidateOracleAzureDbForPostgreSqlSyncTaskProperties": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + }, + "input": { + "type": "Optional[_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "type": "str", + "default": null, + "param_type": "keyword_only" + }, + "client_data": { + "type": "Optional[dict[str, str]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "input": "Optional", + "output": "Optional", + "task_type": null, + "errors": "Optional", + "state": "Optional", + "commands": "Optional", + "client_data": "Optional" + } + }, + "ValidateOracleAzureDbPostgreSqlSyncTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "validation_errors": "Optional" + } + }, + "ValidateSyncMigrationInputSqlServerTaskInput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "source_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "target_connection_info": { + "type": "_models.SqlConnectionInfo", + "default": null, + "param_type": "keyword_only" + }, + "selected_databases": { + "type": "list[_models.MigrateSqlServerSqlDbSyncDatabaseInput]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "source_connection_info": null, + "target_connection_info": null, + "selected_databases": "list" + } + }, + "ValidateSyncMigrationInputSqlServerTaskOutput": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "id": "Optional", + "name": "Optional", + "validation_errors": "Optional" + } + }, + "ValidationError": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "text": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "severity": { + "type": "Optional[Union[str, _models.Severity]]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "text": "Optional", + "severity": "Optional" + } + }, + "ValidationStatus": { + "type": "Enum", + "methods": {}, + "properties": { + "COMPLETED": "COMPLETED", + "COMPLETED_WITH_ISSUES": "COMPLETED_WITH_ISSUES", + "DEFAULT": "DEFAULT", + "FAILED": "FAILED", + "INITIALIZED": "INITIALIZED", + "IN_PROGRESS": "IN_PROGRESS", + "NOT_STARTED": "NOT_STARTED", + "STOPPED": "STOPPED", + "capitalize": "capitalize", + "casefold": "casefold", + "center": "center", + "count": "count", + "encode": "encode", + "endswith": "endswith", + "expandtabs": "expandtabs", + "find": "find", + "format": "format", + "format_map": "format_map", + "index": "index", + "isalnum": "isalnum", + "isalpha": "isalpha", + "isascii": "isascii", + "isdecimal": "isdecimal", + "isdigit": "isdigit", + "isidentifier": "isidentifier", + "islower": "islower", + "isnumeric": "isnumeric", + "isprintable": "isprintable", + "isspace": "isspace", + "istitle": "istitle", + "isupper": "isupper", + "join": "join", + "ljust": "ljust", + "lower": "lower", + "lstrip": "lstrip", + "maketrans": "maketrans", + "partition": "partition", + "removeprefix": "removeprefix", + "removesuffix": "removesuffix", + "replace": "replace", + "rfind": "rfind", + "rindex": "rindex", + "rjust": "rjust", + "rpartition": "rpartition", + "rsplit": "rsplit", + "rstrip": "rstrip", + "split": "split", + "splitlines": "splitlines", + "startswith": "startswith", + "strip": "strip", + "swapcase": "swapcase", + "title": "title", + "translate": "translate", + "upper": "upper", + "zfill": "zfill" + } + }, + "WaitStatistics": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "wait_type": { + "type": "Optional[str]", + "default": null, + "param_type": "keyword_only" + }, + "wait_time_ms": { + "type": "Optional[float]", + "default": null, + "param_type": "keyword_only" + }, + "wait_count": { + "type": "Optional[int]", + "default": null, + "param_type": "keyword_only" + } + }, + "is_async": false, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "mapping": { + "type": "Mapping[str, Any]", + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "return_type": null + } + ] + }, + "as_dict": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "exclude_readonly": { + "default": "bool", + "param_type": "keyword_only" + } + }, + "is_async": false, + "overloads": [] + }, + "clear": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "copy": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "none", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "items": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "pop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "popitem": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "setdefault": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "key": { + "default": null, + "param_type": "positional_or_keyword" + }, + "default": { + "default": "object", + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "values": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "wait_type": "Optional", + "wait_time_ms": "Optional", + "wait_count": "Optional" + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.aio": { + "class_nodes": { + "DataMigrationManagementClient": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "credential": { + "default": null, + "param_type": "positional_or_keyword" + }, + "subscription_id": { + "default": null, + "param_type": "positional_or_keyword" + }, + "base_url": { + "default": "none", + "param_type": "positional_or_keyword" + }, + "cloud_setting": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "close": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "send_request": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "request": { + "default": null, + "param_type": "positional_or_keyword" + }, + "stream": { + "default": "bool", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": { + "client_side_validation": { + "attr_type": false + }, + "operations": { + "attr_type": "Operations" + }, + "database_migrations_mongo_to_cosmos_dbv_core_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations" + }, + "migration_services": { + "attr_type": "MigrationServicesOperations" + }, + "sql_migration_services": { + "attr_type": "SqlMigrationServicesOperations" + }, + "service_tasks": { + "attr_type": "ServiceTasksOperations" + }, + "projects": { + "attr_type": "ProjectsOperations" + }, + "database_migrations_mongo_to_cosmos_db_ru_mongo": { + "attr_type": "DatabaseMigrationsMongoToCosmosDbRUMongoOperations" + }, + "database_migrations_sql_db": { + "attr_type": "DatabaseMigrationsSqlDbOperations" + }, + "database_migrations_sql_mi": { + "attr_type": "DatabaseMigrationsSqlMiOperations" + }, + "database_migrations_sql_vm": { + "attr_type": "DatabaseMigrationsSqlVmOperations" + }, + "services": { + "attr_type": "ServicesOperations" + }, + "tasks": { + "attr_type": "TasksOperations" + }, + "files": { + "attr_type": "FilesOperations" + }, + "resource_skus": { + "attr_type": "ResourceSkusOperations" + }, + "usages": { + "attr_type": "UsagesOperations" + } + } + } + }, + "function_nodes": {} + }, + "azure.mgmt.datamigration.aio.operations": { + "class_nodes": { + "DatabaseMigrationsMongoToCosmosDbRUMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationCosmosDbMongo", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get_for_scope": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_resource_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlDbOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlDb", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_retry": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_input": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_db_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlMiOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlMi", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "managed_instance_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "DatabaseMigrationsSqlVmOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DatabaseMigrationSqlVm", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_cutover": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationOperationInput", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "force": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_virtual_machine_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "target_db_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_operation_id": { + "default": "none", + "param_type": "keyword_only" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + } + }, + "properties": {} + }, + "FilesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "read": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "read_write": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectFile", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "file_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "MigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "MigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "Operations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ProjectsOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "Project", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ResourceSkusOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "ServiceTasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "ServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_start": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_stop": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DataMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_children_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_name_availability": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "NameAvailabilityRequest", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "check_status": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_skus": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + }, + "SqlMigrationServicesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "begin_create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationService", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "begin_delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "begin_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "SqlMigrationServiceUpdate", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete_node": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "DeleteNode", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list_by_resource_group": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_by_subscription": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_migrations": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list_monitoring_data": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "regenerate_auth_keys": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "RegenAuthKeys", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "resource_group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "sql_migration_service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "TasksOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "cancel": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "command": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "CommandProperties", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "create_or_update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + }, + "delete": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "delete_running_tasks": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "get": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "expand": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_type": { + "default": "none", + "param_type": "keyword_only" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "update": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": true, + "overloads": [ + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "ProjectTask", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "JSON", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + }, + { + "parameters": { + "self": { + "type": null, + "default": null, + "param_type": "positional_or_keyword" + }, + "group_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "service_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "project_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "task_name": { + "type": "str", + "default": null, + "param_type": "positional_or_keyword" + }, + "parameters": { + "type": "IO[bytes]", + "default": null, + "param_type": "positional_or_keyword" + }, + "content_type": { + "type": "str", + "default": "application/json", + "param_type": "keyword_only" + } + }, + "is_async": true, + "return_type": null + } + ] + } + }, + "properties": {} + }, + "UsagesOperations": { + "type": null, + "methods": { + "__init__": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "args": { + "default": null, + "param_type": "var_positional" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + }, + "list": { + "parameters": { + "self": { + "default": null, + "param_type": "positional_or_keyword" + }, + "location": { + "default": null, + "param_type": "positional_or_keyword" + }, + "kwargs": { + "default": null, + "param_type": "var_keyword" + } + }, + "is_async": false, + "overloads": [] + } + }, + "properties": {} + } + }, + "function_nodes": {} + } +} \ No newline at end of file diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py index 289ddc3fbedb..fc96f1d54a9e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_mongo_to_cosmos_db_ru_mongo.begin_create( @@ -74,6 +74,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max1.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max1.py new file mode 100644 index 000000000000..486ed4168521 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_max1.py @@ -0,0 +1,79 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_create_or_update_database_migration_max1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_dbv_core_mongo.begin_create( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + migration_name="migrationRequest", + parameters={ + "properties": { + "collectionList": [ + { + "sourceCollection": "sourceCol1", + "sourceDatabase": "sourceDb1", + "targetCollection": "targetCol1", + "targetDatabase": "targetDb1", + }, + { + "sourceCollection": "sourceCol2", + "sourceDatabase": "sourceDb2", + "targetCollection": "sourceCol2", + "targetDatabase": "sourceDb2", + }, + ], + "kind": "MongoToCosmosDbMongo", + "migrationService": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService", + "scope": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName", + "sourceMongoConnection": { + "host": "abc.mongodb.com", + "password": "placeholder", + "port": 88, + "useSsl": True, + "userName": "abc", + }, + "targetMongoConnection": { + "host": "xyz.mongocluster.cosmos.azure.com", + "password": "placeholder", + "port": 10255, + "useSsl": True, + "userName": "def", + }, + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoCreateOrUpdateDatabaseMigrationMAX1.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py index 941ec3155508..bd8d0d174b7b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_mongo_to_cosmos_db_ru_mongo.begin_create( @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min1.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min1.py new file mode 100644 index 000000000000..5f51830e53e4 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_create_or_update_database_migration_min1.py @@ -0,0 +1,68 @@ +# pylint: disable=line-too-long,useless-suppression +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_create_or_update_database_migration_min1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_dbv_core_mongo.begin_create( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + migration_name="migrationRequest", + parameters={ + "properties": { + "collectionList": [ + { + "sourceCollection": "sourceCol1", + "sourceDatabase": "sourceDb1", + "targetCollection": "targetCol1", + "targetDatabase": "targetDb1", + }, + {"sourceCollection": "sourceCol2", "sourceDatabase": "sourceDb2"}, + ], + "kind": "MongoToCosmosDbMongo", + "migrationService": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DataMigration/MigrationServices/testMigrationService", + "scope": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.DocumentDB/mongoClusters/targetCosmosDbClusterName", + "sourceMongoConnection": { + "host": "abc.mongodb.com", + "password": "placeholder", + "port": 88, + "useSsl": True, + "userName": "abc", + }, + "targetMongoConnection": {"connectionString": "placeholder"}, + } + }, + ).result() + print(response) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoCreateOrUpdateDatabaseMigrationMIN1.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py index b3b9055a1797..dbd2545157ca 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_mongo_to_cosmos_db_ru_mongo.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoDeleteDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration1.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration1.py new file mode 100644 index 000000000000..33673fc00dea --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_delete_database_migration1.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_delete_database_migration1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.database_migrations_mongo_to_cosmos_dbv_core_mongo.begin_delete( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + migration_name="migrationRequest", + ).result() + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoDeleteDatabaseMigration1.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py index d0937ee5bac9..f23497116893 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_mongo_to_cosmos_db_ru_mongo.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoGetDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration1.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration1.py new file mode 100644 index 000000000000..2fd685fa6dfc --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration1.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_get_database_migration1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + migration_name="migrationRequest", + ) + print(response) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoGetDatabaseMigration1.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py index 1e982871edbd..099c18e54e1d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_mongo_to_cosmos_db_ru_mongo.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoGetDatabaseMigrationExpanded.json +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded1.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded1.py new file mode 100644 index 000000000000..41590f89b423 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_get_database_migration_expanded1.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_get_database_migration_expanded1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + migration_name="migrationRequest", + ) + print(response) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoGetDatabaseMigrationExpanded1.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py index 165a40ae9586..889cfc3dbf9c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_mongo_to_cosmos_db_ru_mongo.get_for_scope( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CosmosDbMongoListByScopeDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoListByScopeDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration1.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration1.py new file mode 100644 index 000000000000..c9786498be3c --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration1.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_list_by_scope_database_migration1.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_db_ru_mongo.get_for_scope( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoListByScopeDatabaseMigration1.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration2.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration2.py new file mode 100644 index 000000000000..d5c937493265 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration2.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_list_by_scope_database_migration2.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get_for_scope( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoListByScopeDatabaseMigration2.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration3.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration3.py new file mode 100644 index 000000000000..40b78d3ece70 --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/cosmos_db_mongo_list_by_scope_database_migration3.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.datamigration import DataMigrationManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-datamigration +# USAGE + python cosmos_db_mongo_list_by_scope_database_migration3.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = DataMigrationManagementClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + response = client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get_for_scope( + resource_group_name="testrg", + target_resource_name="targetCosmosDbClusterName", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2025-09-01-preview/CosmosDbMongoListByScopeDatabaseMigration3.json +if __name__ == "__main__": + main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py index 231b7a536569..66f22a6be8df 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_max.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.begin_create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateMigrationServiceMAX.json +# x-ms-original-file: 2025-09-01-preview/CreateOrUpdateMigrationServiceMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py index fc8b7a2bb19e..9ec0485d04fb 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_migration_service_min.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.begin_create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateMigrationServiceMIN.json +# x-ms-original-file: 2025-09-01-preview/CreateOrUpdateMigrationServiceMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py index 78630b61ec9d..8ba3f8d901d9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_max.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.begin_create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateSqlMigrationServiceMAX.json +# x-ms-original-file: 2025-09-01-preview/CreateOrUpdateSqlMigrationServiceMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py index f7d3be6fd09d..bff5dd664f75 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/create_or_update_sql_migration_service_min.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.begin_create_or_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/CreateOrUpdateSqlMigrationServiceMIN.json +# x-ms-original-file: 2025-09-01-preview/CreateOrUpdateSqlMigrationServiceMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py index 53fdba2b06b6..f244c2050424 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_integration_runtime_node.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.delete_node( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/DeleteIntegrationRuntimeNode.json +# x-ms-original-file: 2025-09-01-preview/DeleteIntegrationRuntimeNode.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py index 18377bc3dbce..18a5aa09bbf0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.migration_services.begin_delete( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/DeleteMigrationService.json +# x-ms-original-file: 2025-09-01-preview/DeleteMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py index 1991617b336b..42efca751fff 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/delete_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.sql_migration_services.begin_delete( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/DeleteSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/DeleteSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py index 61011532e9d9..0d18cd32d7b6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.files.create_or_update( @@ -41,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_CreateOrUpdate.json +# x-ms-original-file: 2025-09-01-preview/Files_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py index 90f4eef9fc42..1e915ab4274c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.files.delete( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Delete.json +# x-ms-original-file: 2025-09-01-preview/Files_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py index ac5accf9fb8d..bcbe10f6fd3e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.files.get( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Get.json +# x-ms-original-file: 2025-09-01-preview/Files_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py index 4b917cf1b92a..a8d02ccc5601 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.files.list( @@ -40,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_List.json +# x-ms-original-file: 2025-09-01-preview/Files_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py index 85827cf4cc46..bbc7d345ac27 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.files.read( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Read.json +# x-ms-original-file: 2025-09-01-preview/Files_Read.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py index 7a91aed76201..c90642696817 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_read_write.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.files.read_write( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_ReadWrite.json +# x-ms-original-file: 2025-09-01-preview/Files_ReadWrite.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py index 21a520b28ab1..83f3a90eb7e2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/files_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.files.update( @@ -41,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Files_Update.json +# x-ms-original-file: 2025-09-01-preview/Files_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py index caf6f0827dd1..3ff62f544cd3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/GetMigrationService.json +# x-ms-original-file: 2025-09-01-preview/GetMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py index 5ffe936fe0ce..ea322a14733b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_monitor_data_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.list_monitoring_data( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/GetMonitorDataSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/GetMonitorDataSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py index e983ee8d89c3..c146e6532d54 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/get_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/GetSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/GetSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py index ffe805a5fa02..8e69930a5aa2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_auth_keys_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.list_auth_keys( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListAuthKeysSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListAuthKeysSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py index 3dcec8d1a7d6..91bb6bc4bd53 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListByResourceGroupMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListByResourceGroupMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py index bf74376eb8e0..2794086550a7 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_resource_group_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListByResourceGroupSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListByResourceGroupSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py index b7aa3be33526..1e093527363e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListBySubscriptionMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListBySubscriptionMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py index e04c7850f241..c67b4c2a74c9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_by_subscription_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.list_by_subscription() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListBySubscriptionSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListBySubscriptionSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py index 61861da5ebd1..0f09db82b44a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.list_migrations( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListMigrationsByMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListMigrationsByMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py index 95b488956bcc..9b2d10ea1855 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_migrations_by_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.list_migrations( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListMigrationsBySqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/ListMigrationsBySqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py index 27e9b4cb4448..fca9e09f27ab 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/list_operation.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ListOperation.json +# x-ms-original-file: 2025-09-01-preview/ListOperation.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py index c4b72cc9d22e..cfb6f9ed3712 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.projects.create_or_update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_CreateOrUpdate.json +# x-ms-original-file: 2025-09-01-preview/Projects_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py index d54003d9a1e2..748c4d96f672 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.projects.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_Delete.json +# x-ms-original-file: 2025-09-01-preview/Projects_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py index 6a196a904f2c..b5aa6b4ab26e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.projects.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_Get.json +# x-ms-original-file: 2025-09-01-preview/Projects_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py index 88f716203597..de18bebcd5c5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.projects.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_List.json +# x-ms-original-file: 2025-09-01-preview/Projects_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py index 17f6ecb6f766..84570ddc36f0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/projects_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.projects.update( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Projects_Update.json +# x-ms-original-file: 2025-09-01-preview/Projects_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py index 33dcea39283f..71bb233c533e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/regen_auth_keys_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.regenerate_auth_keys( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/RegenAuthKeysSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/RegenAuthKeysSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py index f81df8309d95..0dadbae17d77 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/resource_skus_list_skus.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="subid", + subscription_id="SUBSCRIPTION_ID", ) response = client.resource_skus.list_skus() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ResourceSkus_ListSkus.json +# x-ms-original-file: 2025-09-01-preview/ResourceSkus_ListSkus.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py index 94a8b00382d3..b2e6838a2763 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_cancel.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.service_tasks.cancel( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Cancel.json +# x-ms-original-file: 2025-09-01-preview/ServiceTasks_Cancel.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py index a5e5580101da..6f0e8154db77 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.service_tasks.create_or_update( @@ -47,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_CreateOrUpdate.json +# x-ms-original-file: 2025-09-01-preview/ServiceTasks_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py index c7dc202debc2..40159e733af2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.service_tasks.delete( @@ -38,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Delete.json +# x-ms-original-file: 2025-09-01-preview/ServiceTasks_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py index bcf3b636795f..7465f7d48389 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.service_tasks.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Get.json +# x-ms-original-file: 2025-09-01-preview/ServiceTasks_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py index b30980f28415..22f1b6eb8df5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.service_tasks.list( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_List.json +# x-ms-original-file: 2025-09-01-preview/ServiceTasks_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py index a0519a222150..167dfd5822cb 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/service_tasks_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.service_tasks.update( @@ -47,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/ServiceTasks_Update.json +# x-ms-original-file: 2025-09-01-preview/ServiceTasks_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py index 0ad581ef5a59..ecdc35e9ffc7 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_children_name_availability.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.check_children_name_availability( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CheckChildrenNameAvailability.json +# x-ms-original-file: 2025-09-01-preview/Services_CheckChildrenNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py index cd32ef3e6b8f..9de89fcee157 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_name_availability.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.check_name_availability( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CheckNameAvailability.json +# x-ms-original-file: 2025-09-01-preview/Services_CheckNameAvailability.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py index f1d8dd90cb2c..eeff00dd4d31 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_check_status.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.check_status( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CheckStatus.json +# x-ms-original-file: 2025-09-01-preview/Services_CheckStatus.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py index 7cc894fbc073..16bda8745130 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_create_or_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.begin_create_or_update( @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_CreateOrUpdate.json +# x-ms-original-file: 2025-09-01-preview/Services_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py index 38968e83859e..6771857ea648 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.services.begin_delete( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Delete.json +# x-ms-original-file: 2025-09-01-preview/Services_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py index ef2b2dba61a2..b8bfbcd7484f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.get( @@ -38,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Get.json +# x-ms-original-file: 2025-09-01-preview/Services_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py index 90267e62e1b8..6e5d2c51fdfa 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.list() @@ -36,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_List.json +# x-ms-original-file: 2025-09-01-preview/Services_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py index 1972ad95bf75..d43d2706ea4b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_by_resource_group.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.list_by_resource_group( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_ListByResourceGroup.json +# x-ms-original-file: 2025-09-01-preview/Services_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py index 875c73517c87..67eb7fab0b6a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_list_skus.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.list_skus( @@ -39,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_ListSkus.json +# x-ms-original-file: 2025-09-01-preview/Services_ListSkus.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py index 6ce2cfaf05f5..f158eb56519e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_start.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.services.begin_start( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Start.json +# x-ms-original-file: 2025-09-01-preview/Services_Start.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py index 13c2fddad1f6..cc2268653126 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_stop.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.services.begin_stop( @@ -37,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Stop.json +# x-ms-original-file: 2025-09-01-preview/Services_Stop.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py index ae302698ef84..b5a20f4ba351 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/services_update.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.services.begin_update( @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Services_Update.json +# x-ms-original-file: 2025-09-01-preview/Services_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py index 118884465c37..20b438d7a427 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_cancel_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_sql_db.begin_cancel( @@ -39,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbCancelDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlDbCancelDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py index ec4846afd4ab..ad3878eb208b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_max.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_db.begin_create_or_update( @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: 2025-09-01-preview/SqlDbCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py index 377f1a4ca9ea..9b58795daa45 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_create_or_update_database_migration_min.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_db.begin_create_or_update( @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: 2025-09-01-preview/SqlDbCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py index 2caf0547cc06..959a380dcc7c 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_delete_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_sql_db.begin_delete( @@ -38,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbDeleteDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlDbDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py index 513d5472fda6..73b567b3efaf 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_db.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbGetDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlDbGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py index 8f9c3449f885..8fd89bcbb50e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_get_database_migration_expanded.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_db.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbGetDatabaseMigrationExpanded.json +# x-ms-original-file: 2025-09-01-preview/SqlDbGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py index 3309fe7a185b..05826b117b1b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_db_retry_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,18 +27,17 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) - response = client.database_migrations_sql_db.begin_retry( + client.database_migrations_sql_db.begin_retry( resource_group_name="testrg", sql_db_instance_name="sqldbinstance", target_db_name="db1", migration_operation_input={"migrationOperationId": "9a90bb84-e70f-46f7-b0ae-1aef5b3b9f07"}, ).result() - print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlDbRetryDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlDbRetryDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py index 4b2f6969bc33..c865ede8d0b7 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cancel_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_sql_mi.begin_cancel( @@ -39,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCancelDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlMiCancelDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py index 0461fa671bf7..e29558b6c3c3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_blob_managed_identity.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_mi.begin_create_or_update( @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json +# x-ms-original-file: 2025-09-01-preview/SqlMiCreateOrUpdateDatabaseMigrationBlobManagedIdentity.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py index 84068959181a..70eb43a2d36d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_max.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_mi.begin_create_or_update( @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: 2025-09-01-preview/SqlMiCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py index 4d4d567688b3..ed1a48e92371 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_create_or_update_database_migration_min.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_mi.begin_create_or_update( @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: 2025-09-01-preview/SqlMiCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py index ca9488d70099..9418bcec465e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_cutover_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_sql_mi.begin_cutover( @@ -39,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiCutoverDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlMiCutoverDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py index e86c763168a8..cd7262515c29 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_delete_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_mi.begin_delete( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiDeleteDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlMiDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py index f3c59e67e081..64fae9f30c43 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_mi.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiGetDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlMiGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py index b453adbd82f3..e2ec0b163a69 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_mi_get_database_migration_expanded.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_mi.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlMiGetDatabaseMigrationExpanded.json +# x-ms-original-file: 2025-09-01-preview/SqlMiGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py index fb70a3582411..cc9da866e474 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cancel_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_sql_vm.begin_cancel( @@ -39,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCancelDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlVmCancelDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py index 7128c5340828..e51fe62fe2a0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_max.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_vm.begin_create_or_update( @@ -66,6 +66,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMAX.json +# x-ms-original-file: 2025-09-01-preview/SqlVmCreateOrUpdateDatabaseMigrationMAX.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py index b910e2af8eb8..07bef4b57fd2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_create_or_update_database_migration_min.py @@ -3,7 +3,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +28,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_vm.begin_create_or_update( @@ -65,6 +65,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCreateOrUpdateDatabaseMigrationMIN.json +# x-ms-original-file: 2025-09-01-preview/SqlVmCreateOrUpdateDatabaseMigrationMIN.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py index 4a504ac75ca5..ab5ed15c1824 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_cutover_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) client.database_migrations_sql_vm.begin_cutover( @@ -39,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmCutoverDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlVmCutoverDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py index 87663286fd81..1500282d783f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_delete_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_vm.begin_delete( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmDeleteDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlVmDeleteDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py index dad99d497e02..91231a7fd5da 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_vm.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmGetDatabaseMigration.json +# x-ms-original-file: 2025-09-01-preview/SqlVmGetDatabaseMigration.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py index ae2390ea9bab..8e2aabf816d3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/sql_vm_get_database_migration_expanded.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.database_migrations_sql_vm.get( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/SqlVmGetDatabaseMigrationExpanded.json +# x-ms-original-file: 2025-09-01-preview/SqlVmGetDatabaseMigrationExpanded.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py index 5d7a45ab2e6a..0963725e6267 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_cancel.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.tasks.cancel( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Cancel.json +# x-ms-original-file: 2025-09-01-preview/Tasks_Cancel.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py index ee9220266f58..cf99da326b7a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_command.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.tasks.command( @@ -41,6 +40,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Command.json +# x-ms-original-file: 2025-09-01-preview/Tasks_Command.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py index 90c9d48871dd..12c2f8cce739 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_create_or_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.tasks.create_or_update( @@ -56,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_CreateOrUpdate.json +# x-ms-original-file: 2025-09-01-preview/Tasks_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py index 03545f814c01..a8756a3079b1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_delete.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) client.tasks.delete( @@ -39,6 +38,6 @@ def main(): ) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Delete.json +# x-ms-original-file: 2025-09-01-preview/Tasks_Delete.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py index 45f6b4080661..020599ff61a5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_get.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.tasks.get( @@ -40,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Get.json +# x-ms-original-file: 2025-09-01-preview/Tasks_Get.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py index dfa8e45d3d82..0dcf88561cc1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.tasks.list( @@ -40,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_List.json +# x-ms-original-file: 2025-09-01-preview/Tasks_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py index 9c9d4e68c26b..90b9e0684fcf 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/tasks_update.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="fc04246f-04c5-437e-ac5e-206a19e7193f", + subscription_id="SUBSCRIPTION_ID", ) response = client.tasks.update( @@ -56,6 +55,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Tasks_Update.json +# x-ms-original-file: 2025-09-01-preview/Tasks_Update.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py index 2e100b169b0f..a6de5d77f779 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.migration_services.begin_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/UpdateMigrationService.json +# x-ms-original-file: 2025-09-01-preview/UpdateMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py index 5a4694930fa2..099b09b7afe5 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/update_sql_migration_service.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="00000000-1111-2222-3333-444444444444", + subscription_id="SUBSCRIPTION_ID", ) response = client.sql_migration_services.begin_update( @@ -39,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/UpdateSqlMigrationService.json +# x-ms-original-file: 2025-09-01-preview/UpdateSqlMigrationService.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py index 0ba69faf2c0b..98039065dfe8 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_samples/usages_list.py @@ -1,9 +1,8 @@ -# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -28,7 +27,7 @@ def main(): client = DataMigrationManagementClient( credential=DefaultAzureCredential(), - subscription_id="90fb80a6-0f71-4761-8f03-921e7396f3c0", + subscription_id="SUBSCRIPTION_ID", ) response = client.usages.list( @@ -38,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration/preview/2025-09-01-preview/examples/Usages_List.json +# x-ms-original-file: 2025-09-01-preview/Usages_List.json if __name__ == "__main__": main() diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/conftest.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/conftest.py index aeeaf83d5dde..a2d04e441c35 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/conftest.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/conftest.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import os diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py index cdfacd6727a2..acb082dd52aa 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get(self, resource_grou resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -39,40 +38,51 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_create(self, reso target_resource_name="str", migration_name="str", parameters={ - "collectionList": [ - { - "migrationProgressDetails": { - "durationInSeconds": 0, - "migrationError": "str", - "migrationStatus": "str", - "processedDocumentCount": 0, - "sourceDocumentCount": 0, - }, - "sourceCollection": "str", - "sourceDatabase": "str", - "targetCollection": "str", - "targetDatabase": "str", - } - ], - "endedOn": "2020-02-20 00:00:00", "id": "str", - "migrationFailureError": {"code": "str", "message": "str"}, - "migrationOperationId": "str", - "migrationService": "str", - "migrationStatus": "str", "name": "str", - "provisioningError": "str", - "provisioningState": "str", - "scope": "str", - "sourceMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", + "properties": { + "kind": "MongoToCosmosDbMongo", + "collectionList": [ + { + "migrationProgressDetails": { + "durationInSeconds": 0, + "migrationError": "str", + "migrationStatus": "str", + "processedDocumentCount": 0, + "sourceDocumentCount": 0, + }, + "sourceCollection": "str", + "sourceDatabase": "str", + "targetCollection": "str", + "targetDatabase": "str", + } + ], + "endedOn": "2020-02-20 00:00:00", + "migrationFailureError": {"code": "str", "message": "str"}, + "migrationOperationId": "str", + "migrationService": "str", + "migrationStatus": "str", + "provisioningError": "str", + "provisioningState": "str", + "scope": "str", + "sourceMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, + "startedOn": "2020-02-20 00:00:00", + "targetMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, }, - "startedOn": "2020-02-20 00:00:00", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -81,17 +91,8 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_create(self, reso "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "targetMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", - }, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,7 +105,6 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_delete(self, reso resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -116,7 +116,6 @@ def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope(self, res response = self.client.database_migrations_mongo_to_cosmos_db_ru_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py index 9ada16980408..f3a481839d6d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_db_ru_mongo_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get(self, resourc resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -41,40 +40,51 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_create(self target_resource_name="str", migration_name="str", parameters={ - "collectionList": [ - { - "migrationProgressDetails": { - "durationInSeconds": 0, - "migrationError": "str", - "migrationStatus": "str", - "processedDocumentCount": 0, - "sourceDocumentCount": 0, - }, - "sourceCollection": "str", - "sourceDatabase": "str", - "targetCollection": "str", - "targetDatabase": "str", - } - ], - "endedOn": "2020-02-20 00:00:00", "id": "str", - "migrationFailureError": {"code": "str", "message": "str"}, - "migrationOperationId": "str", - "migrationService": "str", - "migrationStatus": "str", "name": "str", - "provisioningError": "str", - "provisioningState": "str", - "scope": "str", - "sourceMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", + "properties": { + "kind": "MongoToCosmosDbMongo", + "collectionList": [ + { + "migrationProgressDetails": { + "durationInSeconds": 0, + "migrationError": "str", + "migrationStatus": "str", + "processedDocumentCount": 0, + "sourceDocumentCount": 0, + }, + "sourceCollection": "str", + "sourceDatabase": "str", + "targetCollection": "str", + "targetDatabase": "str", + } + ], + "endedOn": "2020-02-20 00:00:00", + "migrationFailureError": {"code": "str", "message": "str"}, + "migrationOperationId": "str", + "migrationService": "str", + "migrationStatus": "str", + "provisioningError": "str", + "provisioningState": "str", + "scope": "str", + "sourceMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, + "startedOn": "2020-02-20 00:00:00", + "targetMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, }, - "startedOn": "2020-02-20 00:00:00", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -83,17 +93,8 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_create(self "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "targetMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", - }, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -108,7 +109,6 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_begin_delete(self resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,6 @@ async def test_database_migrations_mongo_to_cosmos_db_ru_mongo_get_for_scope(sel response = self.client.database_migrations_mongo_to_cosmos_db_ru_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py index 52b98e731a96..e249a3e93904 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get(self, resource_g resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -39,40 +38,51 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_create(self, r target_resource_name="str", migration_name="str", parameters={ - "collectionList": [ - { - "migrationProgressDetails": { - "durationInSeconds": 0, - "migrationError": "str", - "migrationStatus": "str", - "processedDocumentCount": 0, - "sourceDocumentCount": 0, - }, - "sourceCollection": "str", - "sourceDatabase": "str", - "targetCollection": "str", - "targetDatabase": "str", - } - ], - "endedOn": "2020-02-20 00:00:00", "id": "str", - "migrationFailureError": {"code": "str", "message": "str"}, - "migrationOperationId": "str", - "migrationService": "str", - "migrationStatus": "str", "name": "str", - "provisioningError": "str", - "provisioningState": "str", - "scope": "str", - "sourceMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", + "properties": { + "kind": "MongoToCosmosDbMongo", + "collectionList": [ + { + "migrationProgressDetails": { + "durationInSeconds": 0, + "migrationError": "str", + "migrationStatus": "str", + "processedDocumentCount": 0, + "sourceDocumentCount": 0, + }, + "sourceCollection": "str", + "sourceDatabase": "str", + "targetCollection": "str", + "targetDatabase": "str", + } + ], + "endedOn": "2020-02-20 00:00:00", + "migrationFailureError": {"code": "str", "message": "str"}, + "migrationOperationId": "str", + "migrationService": "str", + "migrationStatus": "str", + "provisioningError": "str", + "provisioningState": "str", + "scope": "str", + "sourceMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, + "startedOn": "2020-02-20 00:00:00", + "targetMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, }, - "startedOn": "2020-02-20 00:00:00", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -81,17 +91,8 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_create(self, r "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "targetMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", - }, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -104,7 +105,6 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_delete(self, r resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -116,7 +116,6 @@ def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope(self, response = self.client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py index dc29c797163a..d8b88cfdeca6 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_mongo_to_cosmos_dbv_core_mongo_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get(self, reso resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -41,40 +40,51 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_create(s target_resource_name="str", migration_name="str", parameters={ - "collectionList": [ - { - "migrationProgressDetails": { - "durationInSeconds": 0, - "migrationError": "str", - "migrationStatus": "str", - "processedDocumentCount": 0, - "sourceDocumentCount": 0, - }, - "sourceCollection": "str", - "sourceDatabase": "str", - "targetCollection": "str", - "targetDatabase": "str", - } - ], - "endedOn": "2020-02-20 00:00:00", "id": "str", - "migrationFailureError": {"code": "str", "message": "str"}, - "migrationOperationId": "str", - "migrationService": "str", - "migrationStatus": "str", "name": "str", - "provisioningError": "str", - "provisioningState": "str", - "scope": "str", - "sourceMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", + "properties": { + "kind": "MongoToCosmosDbMongo", + "collectionList": [ + { + "migrationProgressDetails": { + "durationInSeconds": 0, + "migrationError": "str", + "migrationStatus": "str", + "processedDocumentCount": 0, + "sourceDocumentCount": 0, + }, + "sourceCollection": "str", + "sourceDatabase": "str", + "targetCollection": "str", + "targetDatabase": "str", + } + ], + "endedOn": "2020-02-20 00:00:00", + "migrationFailureError": {"code": "str", "message": "str"}, + "migrationOperationId": "str", + "migrationService": "str", + "migrationStatus": "str", + "provisioningError": "str", + "provisioningState": "str", + "scope": "str", + "sourceMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, + "startedOn": "2020-02-20 00:00:00", + "targetMongoConnection": { + "connectionString": "str", + "host": "str", + "password": "str", + "port": 0, + "useSsl": bool, + "userName": "str", + }, }, - "startedOn": "2020-02-20 00:00:00", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -83,17 +93,8 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_create(s "lastModifiedBy": "str", "lastModifiedByType": "str", }, - "targetMongoConnection": { - "connectionString": "str", - "host": "str", - "password": "str", - "port": 0, - "useSsl": bool, - "userName": "str", - }, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -108,7 +109,6 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_begin_delete(s resource_group_name=resource_group.name, target_resource_name="str", migration_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +121,6 @@ async def test_database_migrations_mongo_to_cosmos_dbv_core_mongo_get_for_scope( response = self.client.database_migrations_mongo_to_cosmos_dbv_core_mongo.get_for_scope( resource_group_name=resource_group.name, target_resource_name="str", - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py index 408347c68ca2..22298bef1b00 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_database_migrations_sql_db_get(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -104,7 +103,6 @@ def test_database_migrations_sql_db_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -117,7 +115,6 @@ def test_database_migrations_sql_db_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -131,7 +128,6 @@ def test_database_migrations_sql_db_begin_cancel(self, resource_group): sql_db_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -145,7 +141,6 @@ def test_database_migrations_sql_db_begin_retry(self, resource_group): sql_db_instance_name="str", target_db_name="str", migration_operation_input={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py index 3df50ca15b08..7bd0985bd3a9 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_db_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_database_migrations_sql_db_get(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -106,7 +105,6 @@ async def test_database_migrations_sql_db_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -121,7 +119,6 @@ async def test_database_migrations_sql_db_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_db_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -137,7 +134,6 @@ async def test_database_migrations_sql_db_begin_cancel(self, resource_group): sql_db_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -153,7 +149,6 @@ async def test_database_migrations_sql_db_begin_retry(self, resource_group): sql_db_instance_name="str", target_db_name="str", migration_operation_input={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py index 6579d152b335..8bcb015fa1d2 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_database_migrations_sql_mi_get(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -181,7 +180,6 @@ def test_database_migrations_sql_mi_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -194,7 +192,6 @@ def test_database_migrations_sql_mi_begin_delete(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -208,7 +205,6 @@ def test_database_migrations_sql_mi_begin_cancel(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -222,7 +218,6 @@ def test_database_migrations_sql_mi_begin_cutover(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py index 156261e95297..26ba2361637d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_mi_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_database_migrations_sql_mi_get(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -183,7 +182,6 @@ async def test_database_migrations_sql_mi_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -198,7 +196,6 @@ async def test_database_migrations_sql_mi_begin_delete(self, resource_group): resource_group_name=resource_group.name, managed_instance_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -214,7 +211,6 @@ async def test_database_migrations_sql_mi_begin_cancel(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -230,7 +226,6 @@ async def test_database_migrations_sql_mi_begin_cutover(self, resource_group): managed_instance_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py index f4ca8799d940..1ab5b9a7b80b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ def test_database_migrations_sql_vm_get(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -181,7 +180,6 @@ def test_database_migrations_sql_vm_begin_create_or_update(self, resource_group) }, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -194,7 +192,6 @@ def test_database_migrations_sql_vm_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -208,7 +205,6 @@ def test_database_migrations_sql_vm_begin_cancel(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -222,7 +218,6 @@ def test_database_migrations_sql_vm_begin_cutover(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py index 287b5643d8db..e287181523b3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_database_migrations_sql_vm_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -26,7 +26,6 @@ async def test_database_migrations_sql_vm_get(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -183,7 +182,6 @@ async def test_database_migrations_sql_vm_begin_create_or_update(self, resource_ }, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -198,7 +196,6 @@ async def test_database_migrations_sql_vm_begin_delete(self, resource_group): resource_group_name=resource_group.name, sql_virtual_machine_name="str", target_db_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -214,7 +211,6 @@ async def test_database_migrations_sql_vm_begin_cancel(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -230,7 +226,6 @@ async def test_database_migrations_sql_vm_begin_cutover(self, resource_group): sql_virtual_machine_name="str", target_db_name="str", parameters={"migrationOperationId": "str"}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py index bf7d8b944631..c46e2fc9dd88 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,19 +18,6 @@ class TestDataMigrationManagementFilesOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(DataMigrationManagementClient) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_files_list(self, resource_group): - response = self.client.files.list( - group_name="str", - service_name="str", - project_name="str", - api_version="2025-09-01-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_files_get(self, resource_group): @@ -39,7 +26,6 @@ def test_files_get(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -74,21 +60,6 @@ def test_files_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_files_delete(self, resource_group): - response = self.client.files.delete( - group_name="str", - service_name="str", - project_name="str", - file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -123,12 +94,36 @@ def test_files_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_files_delete(self, resource_group): + response = self.client.files.delete( + group_name="str", + service_name="str", + project_name="str", + file_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_files_list(self, resource_group): + response = self.client.files.list( + group_name="str", + service_name="str", + project_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_files_read(self, resource_group): @@ -137,7 +132,6 @@ def test_files_read(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -151,7 +145,6 @@ def test_files_read_write(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py index fb42d61e2ee5..469276742fb0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_files_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,19 +19,6 @@ class TestDataMigrationManagementFilesOperationsAsync(AzureMgmtRecordedTestCase) def setup_method(self, method): self.client = self.create_mgmt_client(DataMigrationManagementClient, is_async=True) - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_files_list(self, resource_group): - response = self.client.files.list( - group_name="str", - service_name="str", - project_name="str", - api_version="2025-09-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_files_get(self, resource_group): @@ -40,7 +27,6 @@ async def test_files_get(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -75,21 +61,6 @@ async def test_files_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_files_delete(self, resource_group): - response = await self.client.files.delete( - group_name="str", - service_name="str", - project_name="str", - file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -124,12 +95,36 @@ async def test_files_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_files_delete(self, resource_group): + response = await self.client.files.delete( + group_name="str", + service_name="str", + project_name="str", + file_name="str", + ) + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_files_list(self, resource_group): + response = self.client.files.list( + group_name="str", + service_name="str", + project_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_files_read(self, resource_group): @@ -138,7 +133,6 @@ async def test_files_read(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -152,7 +146,6 @@ async def test_files_read_write(self, resource_group): service_name="str", project_name="str", file_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py index 9f8e9f0a4c13..7fb062b24dad 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_migration_services_get(self, resource_group): response = self.client.migration_services.get( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -39,9 +38,8 @@ def test_migration_services_begin_create_or_update(self, resource_group): parameters={ "location": "str", "id": "str", - "integrationRuntimeState": "str", "name": "str", - "provisioningState": "str", + "properties": {"integrationRuntimeState": "str", "provisioningState": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -53,7 +51,6 @@ def test_migration_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -61,11 +58,11 @@ def test_migration_services_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_migration_services_begin_delete(self, resource_group): - response = self.client.migration_services.begin_delete( + def test_migration_services_begin_update(self, resource_group): + response = self.client.migration_services.begin_update( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-09-01-preview", + parameters={"tags": {"str": "str"}}, ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -73,12 +70,10 @@ def test_migration_services_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_migration_services_begin_update(self, resource_group): - response = self.client.migration_services.begin_update( + def test_migration_services_begin_delete(self, resource_group): + response = self.client.migration_services.begin_delete( resource_group_name=resource_group.name, migration_service_name="str", - parameters={"tags": {"str": "str"}}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,7 +84,6 @@ def test_migration_services_begin_update(self, resource_group): def test_migration_services_list_by_resource_group(self, resource_group): response = self.client.migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -98,9 +92,7 @@ def test_migration_services_list_by_resource_group(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_migration_services_list_by_subscription(self, resource_group): - response = self.client.migration_services.list_by_subscription( - api_version="2025-09-01-preview", - ) + response = self.client.migration_services.list_by_subscription() result = [r for r in response] # please add some check logic here by yourself # ... @@ -111,7 +103,6 @@ def test_migration_services_list_migrations(self, resource_group): response = self.client.migration_services.list_migrations( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py index 79dde40d9c16..ca0fb8b4ab47 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_migration_services_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_migration_services_get(self, resource_group): response = await self.client.migration_services.get( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -41,9 +40,8 @@ async def test_migration_services_begin_create_or_update(self, resource_group): parameters={ "location": "str", "id": "str", - "integrationRuntimeState": "str", "name": "str", - "provisioningState": "str", + "properties": {"integrationRuntimeState": "str", "provisioningState": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -55,7 +53,6 @@ async def test_migration_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -64,12 +61,12 @@ async def test_migration_services_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_migration_services_begin_delete(self, resource_group): + async def test_migration_services_begin_update(self, resource_group): response = await ( - await self.client.migration_services.begin_delete( + await self.client.migration_services.begin_update( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-09-01-preview", + parameters={"tags": {"str": "str"}}, ) ).result() # call '.result()' to poll until service return final result @@ -78,13 +75,11 @@ async def test_migration_services_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_migration_services_begin_update(self, resource_group): + async def test_migration_services_begin_delete(self, resource_group): response = await ( - await self.client.migration_services.begin_update( + await self.client.migration_services.begin_delete( resource_group_name=resource_group.name, migration_service_name="str", - parameters={"tags": {"str": "str"}}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -96,7 +91,6 @@ async def test_migration_services_begin_update(self, resource_group): async def test_migration_services_list_by_resource_group(self, resource_group): response = self.client.migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -105,9 +99,7 @@ async def test_migration_services_list_by_resource_group(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_migration_services_list_by_subscription(self, resource_group): - response = self.client.migration_services.list_by_subscription( - api_version="2025-09-01-preview", - ) + response = self.client.migration_services.list_by_subscription() result = [r async for r in response] # please add some check logic here by yourself # ... @@ -118,7 +110,6 @@ async def test_migration_services_list_migrations(self, resource_group): response = self.client.migration_services.list_migrations( resource_group_name=resource_group.name, migration_service_name="str", - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py index 1047b35abeae..7974291fd263 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,9 +21,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2025-09-01-preview", - ) + response = self.client.operations.list() result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py index 560889709958..9573e7864f6b 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -22,9 +22,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_operations_list(self, resource_group): - response = self.client.operations.list( - api_version="2025-09-01-preview", - ) + response = self.client.operations.list() result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py index 19c77ae7afba..06d7444eca6d 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_projects_list(self, resource_group): - response = self.client.projects.list( + def test_projects_get(self, resource_group): + response = self.client.projects.get( group_name="str", service_name="str", - api_version="2025-09-01-preview", + project_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -38,21 +38,25 @@ def test_projects_create_or_update(self, resource_group): service_name="str", project_name="str", parameters={ - "azureAuthenticationInfo": { - "appKey": "str", - "applicationId": "str", - "ignoreAzurePermissions": bool, - "tenantId": "str", - }, - "creationTime": "2020-02-20 00:00:00", - "databasesInfo": [{"sourceDatabaseName": "str"}], "etag": "str", "id": "str", "location": "str", "name": "str", - "provisioningState": "str", - "sourceConnectionInfo": "connection_info", - "sourcePlatform": "str", + "properties": { + "sourcePlatform": "str", + "targetPlatform": "str", + "azureAuthenticationInfo": { + "appKey": "str", + "applicationId": "str", + "ignoreAzurePermissions": bool, + "tenantId": "str", + }, + "creationTime": "2020-02-20 00:00:00", + "databasesInfo": [{"sourceDatabaseName": "str"}], + "provisioningState": "str", + "sourceConnectionInfo": "connection_info", + "targetConnectionInfo": "connection_info", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -62,11 +66,8 @@ def test_projects_create_or_update(self, resource_group): "lastModifiedByType": "str", }, "tags": {"str": "str"}, - "targetConnectionInfo": "connection_info", - "targetPlatform": "str", "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -74,12 +75,42 @@ def test_projects_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_projects_get(self, resource_group): - response = self.client.projects.get( + def test_projects_update(self, resource_group): + response = self.client.projects.update( group_name="str", service_name="str", project_name="str", - api_version="2025-09-01-preview", + parameters={ + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "sourcePlatform": "str", + "targetPlatform": "str", + "azureAuthenticationInfo": { + "appKey": "str", + "applicationId": "str", + "ignoreAzurePermissions": bool, + "tenantId": "str", + }, + "creationTime": "2020-02-20 00:00:00", + "databasesInfo": [{"sourceDatabaseName": "str"}], + "provisioningState": "str", + "sourceConnectionInfo": "connection_info", + "targetConnectionInfo": "connection_info", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, ) # please add some check logic here by yourself @@ -92,7 +123,6 @@ def test_projects_delete(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -100,42 +130,11 @@ def test_projects_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_projects_update(self, resource_group): - response = self.client.projects.update( + def test_projects_list(self, resource_group): + response = self.client.projects.list( group_name="str", service_name="str", - project_name="str", - parameters={ - "azureAuthenticationInfo": { - "appKey": "str", - "applicationId": "str", - "ignoreAzurePermissions": bool, - "tenantId": "str", - }, - "creationTime": "2020-02-20 00:00:00", - "databasesInfo": [{"sourceDatabaseName": "str"}], - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "provisioningState": "str", - "sourceConnectionInfo": "connection_info", - "sourcePlatform": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "targetConnectionInfo": "connection_info", - "targetPlatform": "str", - "type": "str", - }, - api_version="2025-09-01-preview", ) - + result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py index dce836e871c6..e6e7ab1bca8f 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_projects_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_projects_list(self, resource_group): - response = self.client.projects.list( + async def test_projects_get(self, resource_group): + response = await self.client.projects.get( group_name="str", service_name="str", - api_version="2025-09-01-preview", + project_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -39,21 +39,25 @@ async def test_projects_create_or_update(self, resource_group): service_name="str", project_name="str", parameters={ - "azureAuthenticationInfo": { - "appKey": "str", - "applicationId": "str", - "ignoreAzurePermissions": bool, - "tenantId": "str", - }, - "creationTime": "2020-02-20 00:00:00", - "databasesInfo": [{"sourceDatabaseName": "str"}], "etag": "str", "id": "str", "location": "str", "name": "str", - "provisioningState": "str", - "sourceConnectionInfo": "connection_info", - "sourcePlatform": "str", + "properties": { + "sourcePlatform": "str", + "targetPlatform": "str", + "azureAuthenticationInfo": { + "appKey": "str", + "applicationId": "str", + "ignoreAzurePermissions": bool, + "tenantId": "str", + }, + "creationTime": "2020-02-20 00:00:00", + "databasesInfo": [{"sourceDatabaseName": "str"}], + "provisioningState": "str", + "sourceConnectionInfo": "connection_info", + "targetConnectionInfo": "connection_info", + }, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -63,11 +67,8 @@ async def test_projects_create_or_update(self, resource_group): "lastModifiedByType": "str", }, "tags": {"str": "str"}, - "targetConnectionInfo": "connection_info", - "targetPlatform": "str", "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -75,12 +76,42 @@ async def test_projects_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_projects_get(self, resource_group): - response = await self.client.projects.get( + async def test_projects_update(self, resource_group): + response = await self.client.projects.update( group_name="str", service_name="str", project_name="str", - api_version="2025-09-01-preview", + parameters={ + "etag": "str", + "id": "str", + "location": "str", + "name": "str", + "properties": { + "sourcePlatform": "str", + "targetPlatform": "str", + "azureAuthenticationInfo": { + "appKey": "str", + "applicationId": "str", + "ignoreAzurePermissions": bool, + "tenantId": "str", + }, + "creationTime": "2020-02-20 00:00:00", + "databasesInfo": [{"sourceDatabaseName": "str"}], + "provisioningState": "str", + "sourceConnectionInfo": "connection_info", + "targetConnectionInfo": "connection_info", + }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "tags": {"str": "str"}, + "type": "str", + }, ) # please add some check logic here by yourself @@ -93,7 +124,6 @@ async def test_projects_delete(self, resource_group): group_name="str", service_name="str", project_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -101,42 +131,11 @@ async def test_projects_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_projects_update(self, resource_group): - response = await self.client.projects.update( + async def test_projects_list(self, resource_group): + response = self.client.projects.list( group_name="str", service_name="str", - project_name="str", - parameters={ - "azureAuthenticationInfo": { - "appKey": "str", - "applicationId": "str", - "ignoreAzurePermissions": bool, - "tenantId": "str", - }, - "creationTime": "2020-02-20 00:00:00", - "databasesInfo": [{"sourceDatabaseName": "str"}], - "etag": "str", - "id": "str", - "location": "str", - "name": "str", - "provisioningState": "str", - "sourceConnectionInfo": "connection_info", - "sourcePlatform": "str", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "tags": {"str": "str"}, - "targetConnectionInfo": "connection_info", - "targetPlatform": "str", - "type": "str", - }, - api_version="2025-09-01-preview", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py index fa896c998888..2564c7927ef1 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,9 +21,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_resource_skus_list_skus(self, resource_group): - response = self.client.resource_skus.list_skus( - api_version="2025-09-01-preview", - ) + response = self.client.resource_skus.list_skus() result = [r for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py index 9aa616b646d9..d828468da3c3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_resource_skus_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -22,9 +22,7 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_resource_skus_list_skus(self, resource_group): - response = self.client.resource_skus.list_skus( - api_version="2025-09-01-preview", - ) + response = self.client.resource_skus.list_skus() result = [r async for r in response] # please add some check logic here by yourself # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py index 3a542b0e95e3..e27a4dea0cca 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,13 +20,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_service_tasks_list(self, resource_group): - response = self.client.service_tasks.list( + def test_service_tasks_get(self, resource_group): + response = self.client.service_tasks.get( group_name="str", service_name="str", - api_version="2025-09-01-preview", + task_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -52,7 +52,6 @@ def test_service_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -60,12 +59,26 @@ def test_service_tasks_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_service_tasks_get(self, resource_group): - response = self.client.service_tasks.get( + def test_service_tasks_update(self, resource_group): + response = self.client.service_tasks.update( group_name="str", service_name="str", task_name="str", - api_version="2025-09-01-preview", + parameters={ + "etag": "str", + "id": "str", + "name": "str", + "properties": "project_task_properties", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -78,7 +91,6 @@ def test_service_tasks_delete(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -86,29 +98,12 @@ def test_service_tasks_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_service_tasks_update(self, resource_group): - response = self.client.service_tasks.update( + def test_service_tasks_list(self, resource_group): + response = self.client.service_tasks.list( group_name="str", service_name="str", - task_name="str", - parameters={ - "etag": "str", - "id": "str", - "name": "str", - "properties": "project_task_properties", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "type": "str", - }, - api_version="2025-09-01-preview", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -119,7 +114,6 @@ def test_service_tasks_cancel(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py index fcc5cb92176e..12b8a0277045 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_service_tasks_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,13 +21,13 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_service_tasks_list(self, resource_group): - response = self.client.service_tasks.list( + async def test_service_tasks_get(self, resource_group): + response = await self.client.service_tasks.get( group_name="str", service_name="str", - api_version="2025-09-01-preview", + task_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -53,7 +53,6 @@ async def test_service_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -61,12 +60,26 @@ async def test_service_tasks_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_service_tasks_get(self, resource_group): - response = await self.client.service_tasks.get( + async def test_service_tasks_update(self, resource_group): + response = await self.client.service_tasks.update( group_name="str", service_name="str", task_name="str", - api_version="2025-09-01-preview", + parameters={ + "etag": "str", + "id": "str", + "name": "str", + "properties": "project_task_properties", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -79,7 +92,6 @@ async def test_service_tasks_delete(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -87,29 +99,12 @@ async def test_service_tasks_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_service_tasks_update(self, resource_group): - response = await self.client.service_tasks.update( + async def test_service_tasks_list(self, resource_group): + response = self.client.service_tasks.list( group_name="str", service_name="str", - task_name="str", - parameters={ - "etag": "str", - "id": "str", - "name": "str", - "properties": "project_task_properties", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "type": "str", - }, - api_version="2025-09-01-preview", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -120,7 +115,6 @@ async def test_service_tasks_cancel(self, resource_group): group_name="str", service_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py index 1056b0018fbb..4b91a1db91ac 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -18,6 +18,17 @@ class TestDataMigrationManagementServicesOperations(AzureMgmtRecordedTestCase): def setup_method(self, method): self.client = self.create_mgmt_client(DataMigrationManagementClient) + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_services_get(self, resource_group): + response = self.client.services.get( + group_name="str", + service_name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_services_begin_create_or_update(self, resource_group): @@ -25,15 +36,19 @@ def test_services_begin_create_or_update(self, resource_group): group_name="str", service_name="str", parameters={ - "autoStopDelay": "str", - "deleteResourcesOnStop": bool, "etag": "str", "id": "str", "kind": "str", "location": "str", "name": "str", - "provisioningState": "str", - "publicKey": "str", + "properties": { + "autoStopDelay": "str", + "deleteResourcesOnStop": bool, + "provisioningState": "str", + "publicKey": "str", + "virtualNicId": "str", + "virtualSubnetId": "str", + }, "sku": {"capacity": 0, "family": "str", "name": "str", "size": "str", "tier": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -45,34 +60,7 @@ def test_services_begin_create_or_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "virtualNicId": "str", - "virtualSubnetId": "str", }, - api_version="2025-09-01-preview", - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_services_get(self, resource_group): - response = self.client.services.get( - group_name="str", - service_name="str", - api_version="2025-09-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_services_begin_delete(self, resource_group): - response = self.client.services.begin_delete( - group_name="str", - service_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -85,15 +73,19 @@ def test_services_begin_update(self, resource_group): group_name="str", service_name="str", parameters={ - "autoStopDelay": "str", - "deleteResourcesOnStop": bool, "etag": "str", "id": "str", "kind": "str", "location": "str", "name": "str", - "provisioningState": "str", - "publicKey": "str", + "properties": { + "autoStopDelay": "str", + "deleteResourcesOnStop": bool, + "provisioningState": "str", + "publicKey": "str", + "virtualNicId": "str", + "virtualSubnetId": "str", + }, "sku": {"capacity": 0, "family": "str", "name": "str", "size": "str", "tier": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -105,22 +97,47 @@ def test_services_begin_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "virtualNicId": "str", - "virtualSubnetId": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_services_begin_delete(self, resource_group): + response = self.client.services.begin_delete( + group_name="str", + service_name="str", + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_services_list_by_resource_group(self, resource_group): + response = self.client.services.list_by_resource_group( + group_name="str", + ) + result = [r for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_services_list(self, resource_group): + response = self.client.services.list() + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_services_check_status(self, resource_group): response = self.client.services.check_status( group_name="str", service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -132,7 +149,6 @@ def test_services_begin_start(self, resource_group): response = self.client.services.begin_start( group_name="str", service_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -144,7 +160,6 @@ def test_services_begin_stop(self, resource_group): response = self.client.services.begin_stop( group_name="str", service_name="str", - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -156,7 +171,6 @@ def test_services_list_skus(self, resource_group): response = self.client.services.list_skus( group_name="str", service_name="str", - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -169,30 +183,8 @@ def test_services_check_children_name_availability(self, resource_group): group_name="str", service_name="str", parameters={"name": "str", "type": "str"}, - api_version="2025-09-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_services_list_by_resource_group(self, resource_group): - response = self.client.services.list_by_resource_group( - group_name="str", - api_version="2025-09-01-preview", ) - result = [r for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_services_list(self, resource_group): - response = self.client.services.list( - api_version="2025-09-01-preview", - ) - result = [r for r in response] # please add some check logic here by yourself # ... @@ -202,7 +194,6 @@ def test_services_check_name_availability(self, resource_group): response = self.client.services.check_name_availability( location="str", parameters={"name": "str", "type": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py index 60dcefb0e554..ad9538631de3 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_services_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -19,6 +19,17 @@ class TestDataMigrationManagementServicesOperationsAsync(AzureMgmtRecordedTestCa def setup_method(self, method): self.client = self.create_mgmt_client(DataMigrationManagementClient, is_async=True) + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_services_get(self, resource_group): + response = await self.client.services.get( + group_name="str", + service_name="str", + ) + + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_services_begin_create_or_update(self, resource_group): @@ -27,15 +38,19 @@ async def test_services_begin_create_or_update(self, resource_group): group_name="str", service_name="str", parameters={ - "autoStopDelay": "str", - "deleteResourcesOnStop": bool, "etag": "str", "id": "str", "kind": "str", "location": "str", "name": "str", - "provisioningState": "str", - "publicKey": "str", + "properties": { + "autoStopDelay": "str", + "deleteResourcesOnStop": bool, + "provisioningState": "str", + "publicKey": "str", + "virtualNicId": "str", + "virtualSubnetId": "str", + }, "sku": {"capacity": 0, "family": "str", "name": "str", "size": "str", "tier": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -47,36 +62,7 @@ async def test_services_begin_create_or_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "virtualNicId": "str", - "virtualSubnetId": "str", }, - api_version="2025-09-01-preview", - ) - ).result() # call '.result()' to poll until service return final result - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_services_get(self, resource_group): - response = await self.client.services.get( - group_name="str", - service_name="str", - api_version="2025-09-01-preview", - ) - - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_services_begin_delete(self, resource_group): - response = await ( - await self.client.services.begin_delete( - group_name="str", - service_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -91,15 +77,19 @@ async def test_services_begin_update(self, resource_group): group_name="str", service_name="str", parameters={ - "autoStopDelay": "str", - "deleteResourcesOnStop": bool, "etag": "str", "id": "str", "kind": "str", "location": "str", "name": "str", - "provisioningState": "str", - "publicKey": "str", + "properties": { + "autoStopDelay": "str", + "deleteResourcesOnStop": bool, + "provisioningState": "str", + "publicKey": "str", + "virtualNicId": "str", + "virtualSubnetId": "str", + }, "sku": {"capacity": 0, "family": "str", "name": "str", "size": "str", "tier": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", @@ -111,23 +101,50 @@ async def test_services_begin_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "virtualNicId": "str", - "virtualSubnetId": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_services_begin_delete(self, resource_group): + response = await ( + await self.client.services.begin_delete( + group_name="str", + service_name="str", + ) + ).result() # call '.result()' to poll until service return final result + + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_services_list_by_resource_group(self, resource_group): + response = self.client.services.list_by_resource_group( + group_name="str", + ) + result = [r async for r in response] + # please add some check logic here by yourself + # ... + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_services_list(self, resource_group): + response = self.client.services.list() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_services_check_status(self, resource_group): response = await self.client.services.check_status( group_name="str", service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -140,7 +157,6 @@ async def test_services_begin_start(self, resource_group): await self.client.services.begin_start( group_name="str", service_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -154,7 +170,6 @@ async def test_services_begin_stop(self, resource_group): await self.client.services.begin_stop( group_name="str", service_name="str", - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -167,7 +182,6 @@ async def test_services_list_skus(self, resource_group): response = self.client.services.list_skus( group_name="str", service_name="str", - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -180,40 +194,17 @@ async def test_services_check_children_name_availability(self, resource_group): group_name="str", service_name="str", parameters={"name": "str", "type": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_services_list_by_resource_group(self, resource_group): - response = self.client.services.list_by_resource_group( - group_name="str", - api_version="2025-09-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_services_list(self, resource_group): - response = self.client.services.list( - api_version="2025-09-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_services_check_name_availability(self, resource_group): response = await self.client.services.check_name_availability( location="str", parameters={"name": "str", "type": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py index 9d4e0e6c552c..0e7a7470ee79 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def test_sql_migration_services_get(self, resource_group): response = self.client.sql_migration_services.get( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -38,10 +37,9 @@ def test_sql_migration_services_begin_create_or_update(self, resource_group): sql_migration_service_name="str", parameters={ "id": "str", - "integrationRuntimeState": "str", "location": "str", "name": "str", - "provisioningState": "str", + "properties": {"integrationRuntimeState": "str", "provisioningState": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -53,7 +51,6 @@ def test_sql_migration_services_begin_create_or_update(self, resource_group): "tags": {"str": "str"}, "type": "str", }, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -61,11 +58,11 @@ def test_sql_migration_services_begin_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sql_migration_services_begin_delete(self, resource_group): - response = self.client.sql_migration_services.begin_delete( + def test_sql_migration_services_begin_update(self, resource_group): + response = self.client.sql_migration_services.begin_update( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", + parameters={"tags": {"str": "str"}}, ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -73,12 +70,10 @@ def test_sql_migration_services_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_sql_migration_services_begin_update(self, resource_group): - response = self.client.sql_migration_services.begin_update( + def test_sql_migration_services_begin_delete(self, resource_group): + response = self.client.sql_migration_services.begin_delete( resource_group_name=resource_group.name, sql_migration_service_name="str", - parameters={"tags": {"str": "str"}}, - api_version="2025-09-01-preview", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -89,19 +84,25 @@ def test_sql_migration_services_begin_update(self, resource_group): def test_sql_migration_services_list_by_resource_group(self, resource_group): response = self.client.sql_migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_sql_migration_services_list_by_subscription(self, resource_group): + response = self.client.sql_migration_services.list_by_subscription() + result = [r for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy def test_sql_migration_services_list_auth_keys(self, resource_group): response = self.client.sql_migration_services.list_auth_keys( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -114,7 +115,6 @@ def test_sql_migration_services_regenerate_auth_keys(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"authKey1": "str", "authKey2": "str", "keyName": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -127,7 +127,6 @@ def test_sql_migration_services_delete_node(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"integrationRuntimeName": "str", "nodeName": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -139,7 +138,6 @@ def test_sql_migration_services_list_migrations(self, resource_group): response = self.client.sql_migration_services.list_migrations( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself @@ -151,18 +149,7 @@ def test_sql_migration_services_list_monitoring_data(self, resource_group): response = self.client.sql_migration_services.list_monitoring_data( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy - def test_sql_migration_services_list_by_subscription(self, resource_group): - response = self.client.sql_migration_services.list_by_subscription( - api_version="2025-09-01-preview", - ) - result = [r for r in response] - # please add some check logic here by yourself - # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py index 1958408b39f3..ea126c106703 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_sql_migration_services_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -25,7 +25,6 @@ async def test_sql_migration_services_get(self, resource_group): response = await self.client.sql_migration_services.get( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -40,10 +39,9 @@ async def test_sql_migration_services_begin_create_or_update(self, resource_grou sql_migration_service_name="str", parameters={ "id": "str", - "integrationRuntimeState": "str", "location": "str", "name": "str", - "provisioningState": "str", + "properties": {"integrationRuntimeState": "str", "provisioningState": "str"}, "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", @@ -55,7 +53,6 @@ async def test_sql_migration_services_begin_create_or_update(self, resource_grou "tags": {"str": "str"}, "type": "str", }, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -64,12 +61,12 @@ async def test_sql_migration_services_begin_create_or_update(self, resource_grou @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sql_migration_services_begin_delete(self, resource_group): + async def test_sql_migration_services_begin_update(self, resource_group): response = await ( - await self.client.sql_migration_services.begin_delete( + await self.client.sql_migration_services.begin_update( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", + parameters={"tags": {"str": "str"}}, ) ).result() # call '.result()' to poll until service return final result @@ -78,13 +75,11 @@ async def test_sql_migration_services_begin_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_sql_migration_services_begin_update(self, resource_group): + async def test_sql_migration_services_begin_delete(self, resource_group): response = await ( - await self.client.sql_migration_services.begin_update( + await self.client.sql_migration_services.begin_delete( resource_group_name=resource_group.name, sql_migration_service_name="str", - parameters={"tags": {"str": "str"}}, - api_version="2025-09-01-preview", ) ).result() # call '.result()' to poll until service return final result @@ -96,19 +91,25 @@ async def test_sql_migration_services_begin_update(self, resource_group): async def test_sql_migration_services_list_by_resource_group(self, resource_group): response = self.client.sql_migration_services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_sql_migration_services_list_by_subscription(self, resource_group): + response = self.client.sql_migration_services.list_by_subscription() + result = [r async for r in response] + # please add some check logic here by yourself + # ... + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async async def test_sql_migration_services_list_auth_keys(self, resource_group): response = await self.client.sql_migration_services.list_auth_keys( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -121,7 +122,6 @@ async def test_sql_migration_services_regenerate_auth_keys(self, resource_group) resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"authKey1": "str", "authKey2": "str", "keyName": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -134,7 +134,6 @@ async def test_sql_migration_services_delete_node(self, resource_group): resource_group_name=resource_group.name, sql_migration_service_name="str", parameters={"integrationRuntimeName": "str", "nodeName": "str"}, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -146,7 +145,6 @@ async def test_sql_migration_services_list_migrations(self, resource_group): response = self.client.sql_migration_services.list_migrations( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself @@ -158,18 +156,7 @@ async def test_sql_migration_services_list_monitoring_data(self, resource_group) response = await self.client.sql_migration_services.list_monitoring_data( resource_group_name=resource_group.name, sql_migration_service_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself # ... - - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) - @recorded_by_proxy_async - async def test_sql_migration_services_list_by_subscription(self, resource_group): - response = self.client.sql_migration_services.list_by_subscription( - api_version="2025-09-01-preview", - ) - result = [r async for r in response] - # please add some check logic here by yourself - # ... diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py index 0b0862a7cc68..d56e7f99e064 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -20,14 +20,14 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_tasks_list(self, resource_group): - response = self.client.tasks.list( + def test_tasks_get(self, resource_group): + response = self.client.tasks.get( group_name="str", service_name="str", project_name="str", - api_version="2025-09-01-preview", + task_name="str", ) - result = [r for r in response] + # please add some check logic here by yourself # ... @@ -54,7 +54,6 @@ def test_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -62,13 +61,27 @@ def test_tasks_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_tasks_get(self, resource_group): - response = self.client.tasks.get( + def test_tasks_update(self, resource_group): + response = self.client.tasks.update( group_name="str", service_name="str", project_name="str", task_name="str", - api_version="2025-09-01-preview", + parameters={ + "etag": "str", + "id": "str", + "name": "str", + "properties": "project_task_properties", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -82,7 +95,6 @@ def test_tasks_delete(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -90,30 +102,13 @@ def test_tasks_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy - def test_tasks_update(self, resource_group): - response = self.client.tasks.update( + def test_tasks_list(self, resource_group): + response = self.client.tasks.list( group_name="str", service_name="str", project_name="str", - task_name="str", - parameters={ - "etag": "str", - "id": "str", - "name": "str", - "properties": "project_task_properties", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "type": "str", - }, - api_version="2025-09-01-preview", ) - + result = [r for r in response] # please add some check logic here by yourself # ... @@ -125,7 +120,6 @@ def test_tasks_cancel(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -157,7 +151,6 @@ def test_tasks_command(self, resource_group): }, "state": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py index 7f2cb2e04bcc..5d2bd08a3313 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_tasks_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -21,14 +21,14 @@ def setup_method(self, method): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_tasks_list(self, resource_group): - response = self.client.tasks.list( + async def test_tasks_get(self, resource_group): + response = await self.client.tasks.get( group_name="str", service_name="str", project_name="str", - api_version="2025-09-01-preview", + task_name="str", ) - result = [r async for r in response] + # please add some check logic here by yourself # ... @@ -55,7 +55,6 @@ async def test_tasks_create_or_update(self, resource_group): }, "type": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -63,13 +62,27 @@ async def test_tasks_create_or_update(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_tasks_get(self, resource_group): - response = await self.client.tasks.get( + async def test_tasks_update(self, resource_group): + response = await self.client.tasks.update( group_name="str", service_name="str", project_name="str", task_name="str", - api_version="2025-09-01-preview", + parameters={ + "etag": "str", + "id": "str", + "name": "str", + "properties": "project_task_properties", + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, + "type": "str", + }, ) # please add some check logic here by yourself @@ -83,7 +96,6 @@ async def test_tasks_delete(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -91,30 +103,13 @@ async def test_tasks_delete(self, resource_group): @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async - async def test_tasks_update(self, resource_group): - response = await self.client.tasks.update( + async def test_tasks_list(self, resource_group): + response = self.client.tasks.list( group_name="str", service_name="str", project_name="str", - task_name="str", - parameters={ - "etag": "str", - "id": "str", - "name": "str", - "properties": "project_task_properties", - "systemData": { - "createdAt": "2020-02-20 00:00:00", - "createdBy": "str", - "createdByType": "str", - "lastModifiedAt": "2020-02-20 00:00:00", - "lastModifiedBy": "str", - "lastModifiedByType": "str", - }, - "type": "str", - }, - api_version="2025-09-01-preview", ) - + result = [r async for r in response] # please add some check logic here by yourself # ... @@ -126,7 +121,6 @@ async def test_tasks_cancel(self, resource_group): service_name="str", project_name="str", task_name="str", - api_version="2025-09-01-preview", ) # please add some check logic here by yourself @@ -158,7 +152,6 @@ async def test_tasks_command(self, resource_group): }, "state": "str", }, - api_version="2025-09-01-preview", ) # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py index 477b2cd2fe38..85a68f088cac 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -23,7 +23,6 @@ def setup_method(self, method): def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-09-01-preview", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py index 78ecb4725584..f8079b861fee 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py +++ b/sdk/datamigration/azure-mgmt-datamigration/generated_tests/test_data_migration_management_usages_operations_async.py @@ -2,7 +2,7 @@ # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. +# Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import pytest @@ -24,7 +24,6 @@ def setup_method(self, method): async def test_usages_list(self, resource_group): response = self.client.usages.list( location="str", - api_version="2025-09-01-preview", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/datamigration/azure-mgmt-datamigration/tsp-location.yaml b/sdk/datamigration/azure-mgmt-datamigration/tsp-location.yaml new file mode 100644 index 000000000000..9ee81dde09be --- /dev/null +++ b/sdk/datamigration/azure-mgmt-datamigration/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/datamigration/resource-manager/Microsoft.DataMigration/DataMigration +commit: 18420c08307c8e20d55aa42b47178d571f9d0b44 +repo: Azure/azure-rest-api-specs +additionalDirectories: From 1bd0c73add7fb5cb0f368e57484f53d853a29820 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 Date: Fri, 10 Apr 2026 14:39:36 +0800 Subject: [PATCH 3/3] changelog from report comparison --- .../azure-mgmt-datamigration/CHANGELOG.md | 74 ++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md b/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md index 2e27bce37893..0b1823a241d0 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md +++ b/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md @@ -2,7 +2,79 @@ ## 10.2.0b1 (2026-04-10) -skip changelog generation +### Features Added + + - Client `DataMigrationManagementClient` added method `send_request` + - Model `DatabaseMigrationCosmosDbMongo` added property `properties` + - Model `ResourceSkuRestrictions` added property `values_property` + +### Breaking Changes + + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `kind` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `scope` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `provisioning_state` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `migration_status` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `started_on` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `ended_on` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `migration_service` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `migration_operation_id` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `migration_failure_error` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `provisioning_error` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `source_mongo_connection` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `target_mongo_connection` + - Model `DatabaseMigrationCosmosDbMongo` deleted or renamed its instance variable `collection_list` + - Model `ResourceSkuRestrictions` deleted or renamed its instance variable `values` + - Deleted or renamed model `DataItemMigrationSummaryResult` + - Deleted or renamed model `DataMigrationError` + - Deleted or renamed model `DataMigrationProjectMetadata` + - Deleted or renamed model `DataMigrationResultCode` + - Deleted or renamed model `DataMigrationServiceList` + - Deleted or renamed model `Database` + - Deleted or renamed model `DatabaseFileInput` + - Deleted or renamed model `DatabaseObjectName` + - Deleted or renamed model `DatabaseSummaryResult` + - Deleted or renamed model `ErrorType` + - Deleted or renamed model `FileList` + - Deleted or renamed model `GetProjectDetailsNonSqlTaskInput` + - Deleted or renamed model `MigrateSqlServerDatabaseInput` + - Deleted or renamed model `MigrationTableMetadata` + - Deleted or renamed model `MigrationValidationDatabaseLevelResult` + - Deleted or renamed model `NonSqlDataMigrationTable` + - Deleted or renamed model `NonSqlDataMigrationTableResult` + - Deleted or renamed model `NonSqlMigrationTaskInput` + - Deleted or renamed model `NonSqlMigrationTaskOutput` + - Deleted or renamed model `ProjectList` + - Deleted or renamed model `ProxyResourceAutoGenerated` + - Deleted or renamed model `QuotaList` + - Deleted or renamed model `ResourceAutoGenerated` + - Deleted or renamed model `ResourceSkusResult` + - Deleted or renamed model `ServiceOperation` + - Deleted or renamed model `ServiceOperationDisplay` + - Deleted or renamed model `ServiceOperationList` + - Deleted or renamed model `ServiceSkuList` + - Deleted or renamed model `StartMigrationScenarioServerRoleResult` + - Deleted or renamed model `SystemDataAutoGenerated` + - Deleted or renamed model `TaskList` + - Deleted or renamed model `TrackedResourceAutoGenerated` + - Method `DatabaseMigrationsMongoToCosmosDbRUMongoOperations.begin_delete` changed its parameter `force` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsMongoToCosmosDbvCoreMongoOperations.begin_delete` changed its parameter `force` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlDbOperations.begin_delete` changed its parameter `force` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlDbOperations.get` changed its parameter `migration_operation_id` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlDbOperations.get` changed its parameter `expand` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlMiOperations.begin_delete` changed its parameter `force` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlMiOperations.get` changed its parameter `migration_operation_id` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlMiOperations.get` changed its parameter `expand` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlVmOperations.begin_delete` changed its parameter `force` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlVmOperations.get` changed its parameter `migration_operation_id` from `positional_or_keyword` to `keyword_only` + - Method `DatabaseMigrationsSqlVmOperations.get` changed its parameter `expand` from `positional_or_keyword` to `keyword_only` + - Method `ProjectsOperations.delete` changed its parameter `delete_running_tasks` from `positional_or_keyword` to `keyword_only` + - Method `ServiceTasksOperations.delete` changed its parameter `delete_running_tasks` from `positional_or_keyword` to `keyword_only` + - Method `ServiceTasksOperations.get` changed its parameter `expand` from `positional_or_keyword` to `keyword_only` + - Method `ServiceTasksOperations.list` changed its parameter `task_type` from `positional_or_keyword` to `keyword_only` + - Method `ServicesOperations.begin_delete` changed its parameter `delete_running_tasks` from `positional_or_keyword` to `keyword_only` + - Method `TasksOperations.delete` changed its parameter `delete_running_tasks` from `positional_or_keyword` to `keyword_only` + - Method `TasksOperations.get` changed its parameter `expand` from `positional_or_keyword` to `keyword_only` + - Method `TasksOperations.list` changed its parameter `task_type` from `positional_or_keyword` to `keyword_only` ## 10.1.0 (2025-09-22)